Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install in headless Vortex86 CPU: disable MMX && SSE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Wed Feb 17, 2021 8:22 pm    Post subject: Install in headless Vortex86 CPU: disable MMX && SSE Reply with quote

Hello,

I am compiling gentoo for a chinese board with this "beauty" as CPU.

In short words, it is a headless i486, 32 bits compatible system.

So I grabbed an stage3 for i486, configured a Virtualbox VM on my i7 desktop, installed and compiled there a gentoo. Later I rsynced the resulting system to a HD and booted the board.

The result does boot but it is not stable. For example, emerge does not work because of python issues, and especially sshd: I am able to login, but some time later the ssh client sees a "problem" and cuts the connection. Well, obviously this is not desirable on a headless machine.

I am thinking that *maybe* the problem comes from the fact that the VM has the modern cpu instruction sets enabled: SSE, MMX, etc. Hence I am looking how to specifically disable them in make.conf, and was not able. I was playing with CPU_FLAGS_X86 but they are created to enable the support, not the oposite.

Is there a way to do that?

Here my make.conf as reference:

Code:

COMMON_FLAGS="-O2 -march=i586 -pipe" # -mmmx -msse -msse2 -msse3"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

CHOST="i486-pc-linux-gnu"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# The compiling options
MAKEOPTS="-j5"
USE="-X -ipv6"

LC_MESSAGES=C


Thank you.
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Wed Feb 17, 2021 9:04 pm    Post subject: Reply with quote

BlackLodge,

CPU_FLAGS_X86 only enables hand optimised code where its provided by upstream.
CPU_FLAGS_X86="" turns off all such code.
It has no effect on code output by gcc.

Exactly which chip do you have? The SX, like the original 486SX is missing the FPU. The DX has the FPU. A long time ago the kernel provided FPU emulation but that's long gone.

Reading your link, I can't see any reference. to what flavour x86 CPU in might be but from the SX/DX variants it may well be a 486DX.
If you have the SX, you will need a kernel with the FPU Emulation.

Code:
COMMON_FLAGS="-O2 -march=i586 -pipe" # -mmmx -msse -msse2 -msse3"

Is it a 486 or a 566?
That -march=i586 builds code that will not run on a 486.

This Wiki Page says its a 568.
What errors appear in dmesg?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Wed Feb 17, 2021 9:36 pm    Post subject: Reply with quote

Hello Neddy,

It is the DX version. I can confirm that it comes with a real fpu, it is showed in /proc/cpuinfo.

From what I understood in different sources in the internet (for instance), it is a 586 compatible CPU with the only absence of the CMOV instruction. Hence I changed the march flag to i586, but I don't see a stable system.

So, if I understood your answer well, I am going to change march back to i486, then recompile whole system (emerge -e @world) and see if that improves things.

Quote:
What errors appear in dmesg?

dmesg does not show any errors at the moment, the kernel is behaving well. I did a lot of test / retry, as the board comes with PXE it was "easy" to recompile a new kernel, then boot it. Gentoo life :)
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Wed Feb 17, 2021 10:48 pm    Post subject: Reply with quote

BlackLodge,

Stay with i585 an thats what /proc/cpuinfo says.

How much current margin do you have on the PSU?
Poor/inadequate PSUs are a cause of irratic hard to diagnose problems. Its the dynamic regulation that matters.

You could try booting into memtest86 and running a few cycles.
Prime95 will stress test the CPU.

I suspect that its not a software issue.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Thu Feb 18, 2021 12:44 pm    Post subject: Reply with quote

Hello Neddy,

The PSU I am using is the adaptator that came with the board. The board is the same one that you are seeing in the site (No, it is not me who created it :))

When you say "current margin", you mean the difference between the maximum that the PSU can provide and the consomption of Vortex86DX?

Anyway, I will take a look as soon as I arrive home, to see if I can find an adaptator wich can provide more current and see how it works.

Thanks!
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Thu Feb 18, 2021 1:34 pm    Post subject: Reply with quote

BlackLodge,

That's exactly right.

As the PSU load increases, so the dynamic regulation gets worse and ripple voltage on the output often increases.
When the voltage falls, just for one clock cycle, below the minimum that the borad can actually work with, it begins to make mistakes.
That's only a problem that becomes apparent when the voltage recovers. It has no effect on a controlled shutdown.

PSU substitution is a good test.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Sat Feb 20, 2021 11:15 pm    Post subject: Reply with quote

Hello Neddy,

An update on the situation. Sorry for taking so long, it is not always easy to find a free second with the children around :)

I've tested with a more powerful PSU (3.5A, vs previous 1A). The situation improves (=less crashes) but I keep having issues.

For the sshd issue, I saw a crash in dmesg:

Code:

[    0.000000] Linux version 5.4.80-gentoo-r1x86 (root@BTPlug) (gcc version 9.3.0 (Gentoo 9.3.0-r2 p4)) #15 SMP Wed Feb 10 23:12:07 CET 2021
[    0.000000] CPU: vendor_id 'Vortex86 SoC' unknown, using generic init.
               CPU: Your system may be unstable.
[    0.000000] x86/fpu: x87 FPU will use FSAVE
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] Notice: NX (Execute Disable) protection missing in CPU!
[    0.000000] DMI not present or invalid.
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 933.338 MHz processor
[    0.000219] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000244] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000283] last_pfn = 0x20000 max_arch_pfn = 0x100000
[    0.000299] Disabled
[    0.000313] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[    0.000333] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC 
[    0.017904] initial memory mapped: [mem 0x00000000-0x17bfffff]
[    0.035738] RAMDISK: [mem 0x1f326000-0x1f691fff]
[    0.035766] ACPI: Early table checksum verification disabled
[    0.037934] ACPI BIOS Error (bug): A valid RSDP was not found (20190816/tbxfroot-210)
[    0.037978] 512MB LOWMEM available.
[    0.037992]   mapped low ram: 0 - 20000000
[    0.038005]   low ram: 0 - 20000000
[    0.038038] Zone ranges:
[    0.038051]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.038072]   Normal   [mem 0x0000000001000000-0x000000001fffffff]
[    0.038093] Movable zone start for each node
[    0.038105] Early memory node ranges
[    0.038123]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.038141]   node   0: [mem 0x0000000000100000-0x000000001fffffff]
[    0.038163] Initmem setup node 0 [mem 0x0000000000001000-0x000000001fffffff]
[    0.038187] On node 0 totalpages: 130974
[    0.102526]   DMA zone: 32 pages used for memmap
[    0.102535]   DMA zone: 0 pages reserved
[    0.102546]   DMA zone: 3998 pages, LIFO batch:0
[    0.103453]   Normal zone: 992 pages used for memmap
[    0.103464]   Normal zone: 126976 pages, LIFO batch:31
[    0.130971] Using APIC driver default
[    0.131019] No local APIC present or hardware disabled
[    0.131031] APIC: disable apic facility
[    0.131042] APIC: switched to apic NOOP
[    0.131061] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.131139] [mem 0x20000000-0xfeffffff] available for PCI devices
[    0.131177] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.131232] setup_percpu: NR_CPUS:4 nr_cpumask_bits:4 nr_cpu_ids:1 nr_node_ids:1
[    0.134864] percpu: Embedded 26 pages/cpu s77612 r0 d28884 u106496
[    0.134922] pcpu-alloc: s77612 r0 d28884 u106496 alloc=26*4096
[    0.134934] pcpu-alloc: [0] 0
[    0.135103] Built 1 zonelists, mobility grouping on.  Total pages: 129950
[    0.135128] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.80-gentoo-r1x86 root=UUID=bd68da66-23c6-4294-bf33-256a49d0e092 ro nomodeset console=ttyS0,115200
[    0.135587] You have booted with nomodeset. This means your GPU drivers are DISABLED
[    0.135603] Any video related functionality will be severely degraded, and you may not even be able to suspend the system properly
[    0.135619] Unless you actually understand what nomodeset does, you should reboot without enabling it
[    0.139813] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.141865] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.141907] Initializing CPU#0
[    0.141934] mem auto-init: stack:byref_all, heap alloc:off, heap free:off
[    0.184100] Memory: 502428K/523896K available (5893K kernel code, 247K rwdata, 5572K rodata, 532K init, 436K bss, 21468K reserved, 0K cma-reserved)
[    0.184174] virtual kernel memory layout:
                   fixmap  : 0xfff68000 - 0xfffff000   ( 604 kB)
                 cpu_entry : 0xffc00000 - 0xffc9d000   ( 628 kB)
                   vmalloc : 0xe0800000 - 0xff7fe000   ( 495 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                     .init : 0xd7580000 - 0xd7605000   ( 532 kB)
                     .data : 0xd6fc1608 - 0xd7575dc0   (5841 kB)
                     .text : 0xd6a00000 - 0xd6fc1608   (5893 kB)
[    0.184197] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.185070] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.185522] rcu: Hierarchical RCU implementation.
[    0.185543] rcu:    RCU event tracing is enabled.
[    0.185560] rcu:    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.185579] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.185596] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.185665] NR_IRQS: 2304, nr_irqs: 32, preallocated irqs: 16
[    0.187374] random: get_random_bytes called from start_kernel+0x257/0x3c2 with crng_init=0
[    0.187518] spurious 8259A interrupt: IRQ7.
[    0.188028] Console: colour dummy device 80x25
[    0.612013] printk: console [ttyS0] enabled
[    0.616357] APIC: Keep in PIC mode(8259)
[    0.620353] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1ae83401421, max_idle_ns: 881590481698 ns
[    0.630934] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.67 BogoMIPS (lpj=933338)
[    0.631938] pid_max: default: 32768 minimum: 301
[    0.634078] LSM: Security Framework initializing
[    0.635090] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.636962] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.639787] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.639942] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.640947] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.641941] Spectre V2 : Spectre mitigation: kernel not compiled with retpoline; no mitigation available!
[    0.641952] Speculative Store Bypass: Vulnerable
[    0.643933] L1TF: Kernel not compiled for PAE. No mitigation for L1TF
[    0.644947] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[    0.664051] Freeing SMP alternatives memory: 24K
[    0.666456] smpboot: weird, boot CPU (#0) not listed by the BIOS
[    0.666949] smpboot: SMP disabled
[    0.670419] Performance Events: no PMU driver, software events only.
[    0.672595] rcu: Hierarchical SRCU implementation.
[    0.674219] smp: Bringing up secondary CPUs ...
[    0.674950] smp: Brought up 1 node, 1 CPU
[    0.676937] smpboot: Max logical packages: 1
[    0.677947] smpboot: Total of 1 processors activated (1866.67 BogoMIPS)
[    0.680857] devtmpfs: initialized
[    0.683888] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.684970] futex hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.687991] NET: Registered protocol family 16
[    0.691556] cpuidle: using governor menu
[    0.693046] clocksource: pit: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1601818034827 ns
[    0.696817] PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=0
[    0.696942] PCI: Using configuration type 1 for base access
[    0.722684] cryptomgr_test (18) used greatest stack depth: 7700 bytes left
[    0.726755] cryptomgr_test (26) used greatest stack depth: 7668 bytes left
[    0.735528] ACPI: Interpreter disabled.
[    0.737570] SCSI subsystem initialized
[    0.738427] libata version 3.00 loaded.
[    0.739524] usbcore: registered new interface driver usbfs
[    0.740067] usbcore: registered new interface driver hub
[    0.741067] usbcore: registered new device driver usb
[    0.743139] pps_core: LinuxPPS API ver. 1 registered
[    0.743946] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.744996] PTP clock support registered
[    0.745944] EDAC MC: Ver: 3.0.0
[    0.748398] PCI: Probing PCI hardware
[    0.748975] PCI: root bus 00: using default resources
[    0.748988] PCI: Probing PCI hardware (bus 00)
[    0.749171] PCI host bridge to bus 0000:00
[    0.749973] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.750962] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
[    0.751959] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.753006] pci 0000:00:00.0: [17f3:6021] type 00 class 0x060000
[    0.755333] pci 0000:00:07.0: [17f3:6031] type 00 class 0x060100
[    0.756353] pci 0000:00:08.0: [17f3:6040] type 00 class 0x020000
[    0.757977] pci 0000:00:08.0: reg 0x10: [io  0xdf00-0xdfff]
[    0.758972] pci 0000:00:08.0: reg 0x14: [mem 0xfefff400-0xfefff4ff]
[    0.760001] pci 0000:00:08.0: reg 0x30: [mem 0xfefe0000-0xfefeffff pref]
[    0.762134] pci 0000:00:0a.0: [17f3:6060] type 00 class 0x0c0310
[    0.762991] pci 0000:00:0a.0: reg 0x10: [mem 0xfeffd000-0xfeffdfff]
[    0.764997] pci 0000:00:0a.1: [17f3:6061] type 00 class 0x0c0320
[    0.765988] pci 0000:00:0a.1: reg 0x10: [mem 0xfefff800-0xfefff8ff]
[    0.767307] pci 0000:00:0b.0: [17f3:6060] type 00 class 0x0c0310
[    0.768965] pci 0000:00:0b.0: reg 0x10: [mem 0xfeffe000-0xfeffefff]
[    0.770313] pci 0000:00:0b.1: [17f3:6061] type 00 class 0x0c0320
[    0.770993] pci 0000:00:0b.1: reg 0x10: [mem 0xfefffc00-0xfefffcff]
[    0.772310] pci 0000:00:0c.0: [17f3:1011] type 00 class 0x01018a
[    0.772990] pci 0000:00:0c.0: reg 0x10: [io  0x0000-0x0007]
[    0.773970] pci 0000:00:0c.0: reg 0x14: [io  0x0000-0x0003]
[    0.775947] pci 0000:00:0c.0: reg 0x18: [io  0x0000-0x0007]
[    0.776969] pci 0000:00:0c.0: reg 0x1c: [io  0x0000-0x0003]
[    0.777970] pci 0000:00:0c.0: reg 0x20: [io  0xef00-0xef0f]
[    0.779971] pci 0000:00:0c.0: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.780958] pci 0000:00:0c.0: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.781958] pci 0000:00:0c.0: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.782957] pci 0000:00:0c.0: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.784966] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.786154] pci 0000:00:07.0: default IRQ router [17f3:6031]
[    0.786989] PCI: pci_cache_line_size set to 32 bytes
[    0.787054] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    0.789496] clocksource: Switched to clocksource tsc-early
[    0.795074] pnp: PnP ACPI: disabled
[    0.798640] PnPBIOS: Scanning system for PnP BIOS support...
[    0.804408] PnPBIOS: Found PnP BIOS installation structure at 0x(ptrval)
[    0.811174] PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0x456a, dseg 0xf0000
[    0.818587] pnp 00:00: [mem 0x00000000-0x0009fbff]
[    0.818612] pnp 00:00: [mem 0x0009fc00-0x0009ffff]
[    0.818634] pnp 00:00: [mem 0x000e4000-0x000fffff]
[    0.818656] pnp 00:00: [mem 0x00100000-0x1fffffff]
[    0.818678] pnp 00:00: [mem 0xff000000-0xffffffff]
[    0.818901] system 00:00: [mem 0x00000000-0x0009fbff] could not be reserved
[    0.825952] system 00:00: [mem 0x0009fc00-0x0009ffff] could not be reserved
[    0.832991] system 00:00: [mem 0x000e4000-0x000fffff] could not be reserved
[    0.840033] system 00:00: [mem 0x00100000-0x1fffffff] could not be reserved
[    0.847074] system 00:00: [mem 0xff000000-0xffffffff] has been reserved
[    0.853806] system 00:00: Plug and Play BIOS device, IDs PNP0c01 (active)
[    0.853858] pnp 00:01: [io  0x0020-0x0021]
[    0.853880] pnp 00:01: [io  0x00a0-0x00a1]
[    0.853902] pnp 00:01: [irq 2]
[    0.854074] pnp 00:01: Plug and Play BIOS device, IDs PNP0000 (active)
[    0.854125] pnp 00:02: [dma 4]
[    0.854147] pnp 00:02: [io  0x0000-0x000f]
[    0.854168] pnp 00:02: [io  0x0080-0x0090]
[    0.854190] pnp 00:02: [io  0x0094-0x009f]
[    0.854211] pnp 00:02: [io  0x00c0-0x00de]
[    0.854335] pnp 00:02: Plug and Play BIOS device, IDs PNP0200 (active)
[    0.854385] pnp 00:03: [irq 0]
[    0.854407] pnp 00:03: [io  0x0040-0x0043]
[    0.854582] pnp 00:03: Plug and Play BIOS device, IDs PNP0100 (active)
[    0.854635] pnp 00:04: [irq 8]
[    0.854657] pnp 00:04: [io  0x0070-0x0071]
[    0.854779] pnp 00:04: Plug and Play BIOS device, IDs PNP0b00 (active)
[    0.854833] pnp 00:05: [irq 1]
[    0.854853] pnp 00:05: [io  0x0060]
[    0.854874] pnp 00:05: [io  0x0064]
[    0.854997] pnp 00:05: Plug and Play BIOS device, IDs PNP0303 (active)
[    0.855153] pnp 00:06: Plug and Play BIOS device, IDs PNP0a03 (disabled)
[    0.855220] pnp 00:07: [io  0x0061]
[    0.855347] pnp 00:07: Plug and Play BIOS device, IDs PNP0800 (active)
[    0.855413] pnp 00:08: [io  0x0a60-0x0a6f]
[    0.855673] system 00:08: [io  0x0a60-0x0a6f] has been reserved
[    0.861719] system 00:08: Plug and Play BIOS device, IDs PNP0c02 (active)
[    0.861789] pnp 00:09: [irq 13]
[    0.861811] pnp 00:09: [io  0x00f0-0x00ff]
[    0.861940] pnp 00:09: Plug and Play BIOS device, IDs PNP0c04 (active)
[    0.862021] pnp 00:0a: [io  0x04d0-0x04d1]
[    0.862042] pnp 00:0a: [io  0x0cf8-0x0cff]
[    0.862064] pnp 00:0a: [io  0xfc00-0xfc0f]
[    0.862101] pnp 00:0a: [io  0x002e-0x002f]
[    0.862122] pnp 00:0a: [io  0x0a00-0x0a0f]
[    0.862144] pnp 00:0a: [io  0x0a20-0x0a2f]
[    0.862165] pnp 00:0a: [io  0x0a10-0x0a1f]
[    0.862187] pnp 00:0a: [io  0x0a30-0x0a3f]
[    0.862208] pnp 00:0a: [io  0x0a40-0x0a4f]
[    0.862230] pnp 00:0a: [io  0x0a50-0x0a5f]
[    0.862252] pnp 00:0a: [io  0x0000-0xffffffff disabled]
[    0.862275] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862297] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862320] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862342] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862364] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862386] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862409] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862481] pnp 00:0a: [mem 0x00000000-0xffffffff disabled]
[    0.862713] system 00:0a: [io  0x04d0-0x04d1] has been reserved
[    0.868721] system 00:0a: [io  0x0cf8-0x0cff] could not be reserved
[    0.875067] system 00:0a: [io  0xfc00-0xfc0f] has been reserved
[    0.881066] system 00:0a: [io  0x0a00-0x0a0f] has been reserved
[    0.887066] system 00:0a: [io  0x0a20-0x0a2f] has been reserved
[    0.893063] system 00:0a: [io  0x0a10-0x0a1f] has been reserved
[    0.899063] system 00:0a: [io  0x0a30-0x0a3f] has been reserved
[    0.905062] system 00:0a: [io  0x0a40-0x0a4f] has been reserved
[    0.911061] system 00:0a: [io  0x0a50-0x0a5f] has been reserved
[    0.917100] system 00:0a: Plug and Play BIOS device, IDs PNP0c02 (active)
[    0.917186] pnp 00:0b: [io  0x03f8-0x03ff]
[    0.917207] pnp 00:0b: [irq 4]
[    0.917574] pnp 00:0b: Plug and Play BIOS device, IDs PNP0501 (active)
[    0.917663] pnp 00:0c: [io  0x02f8-0x02ff]
[    0.917684] pnp 00:0c: [irq 3]
[    0.918005] pnp 00:0c: Plug and Play BIOS device, IDs PNP0501 (active)
[    0.918088] pnp 00:0d: [io  0x03f0-0x03f5]
[    0.918279] system 00:0d: [io  0x03f0-0x03f5] has been reserved
[    0.924327] system 00:0d: Plug and Play BIOS device, IDs PNP0c02 (active)
[    0.924342] PnPBIOS: 14 nodes reported by PnP BIOS; 14 recorded by driver
[    0.949574] thermal_sys: Registered thermal governor 'step_wise'
[    0.949770] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.961481] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
[    0.968035] NET: Registered protocol family 2
[    0.973826] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.982292] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.990181] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.997530] TCP: Hash tables configured (established 4096 bind 4096)
[    1.004191] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.010826] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.018145] NET: Registered protocol family 1
[    1.024126] RPC: Registered named UNIX socket transport module.
[    1.030148] RPC: Registered udp transport module.
[    1.034916] RPC: Registered tcp transport module.
[    1.039681] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.291484] pci 0000:00:0a.0: quirk_usb_early_handoff+0x0/0x614 took 239420 usecs
[    1.322431] pci 0000:00:0b.0: quirk_usb_early_handoff+0x0/0x614 took 22744 usecs
[    1.329972] PCI: CLS 16 bytes, default 32
[    1.334047] random: fast init done
[    1.337961] Unpacking initramfs...
[    8.794974] Freeing initrd memory: 3504K
[    8.801876] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    8.835073] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    8.845089] Key type cifs.spnego registered
[    8.849383] Key type cifs.idmap registered
[    8.962081] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    8.969583] io scheduler mq-deadline registered
[    8.974182] io scheduler kyber registered
[    8.978321] io scheduler bfq registered
[    8.982910] xz_dec_test: module loaded
[    8.986755] xz_dec_test: Create a device node with 'mknod xz_dec_test c 250 0' and write .xz files to it.
[    8.998231] isapnp: Scanning for PnP cards...
[    9.359790] isapnp: No Plug & Play device found
[    9.364862] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    9.392214] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    9.420475] 00:0c: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    9.430141] Non-volatile memory driver v1.3
[    9.437489] pata_rdc 0000:00:0c.0: version 0.01
[    9.439928] scsi host0: pata_rdc
[    9.444565] scsi host1: pata_rdc
[    9.448287] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xef00 irq 14
[    9.455322] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xef08 irq 15
[    9.462552] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    9.470300] ata2: port disabled--ignoring
[    9.475003] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    9.482127] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    9.488152] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    9.494074] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    9.500268] r6040: RDC R6040 NAPI net driver,version 0.29 (04Jul2016)
[    9.508314] kworker/u2:2 (69) used greatest stack depth: 7420 bytes left
[    9.521514] libphy: r6040_eth_mii: probed
[    9.525930] Generic PHY 0000:00:08.0-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0000:00:08.0-0:01, irq=POLL)
[    9.538399] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.544999] ehci-pci: EHCI PCI platform driver
[    9.549694] ehci-pci 0000:00:0a.1: EHCI Host Controller
[    9.555102] ehci-pci 0000:00:0a.1: new USB bus registered, assigned bus number 1
[    9.562748] ehci-pci 0000:00:0a.1: irq 9, io mem 0xfefff800
[    9.576107] ehci-pci 0000:00:0a.1: USB 2.0 started, EHCI 1.00
[    9.582430] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    9.590769] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.598075] usb usb1: Product: EHCI Host Controller
[    9.603024] usb usb1: Manufacturer: Linux 5.4.80-gentoo-r1x86 ehci_hcd
[    9.609619] usb usb1: SerialNumber: 0000:00:0a.1
[    9.615415] hub 1-0:1.0: USB hub found
[    9.619360] hub 1-0:1.0: 2 ports detected
[    9.624427] ehci-pci 0000:00:0b.1: EHCI Host Controller
[    9.629791] ehci-pci 0000:00:0b.1: new USB bus registered, assigned bus number 2
[    9.637407] ehci-pci 0000:00:0b.1: irq 11, io mem 0xfefffc00
[    9.650096] ehci-pci 0000:00:0b.1: USB 2.0 started, EHCI 1.00
[    9.656373] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    9.664714] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.672002] usb usb2: Product: EHCI Host Controller
[    9.676948] usb usb2: Manufacturer: Linux 5.4.80-gentoo-r1x86 ehci_hcd
[    9.683543] usb usb2: SerialNumber: 0000:00:0b.1
[    9.689199] hub 2-0:1.0: USB hub found
[    9.693160] hub 2-0:1.0: 2 ports detected
[    9.698201] ehci-platform: EHCI generic platform driver
[    9.703585] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    9.709864] ohci-pci: OHCI PCI platform driver
[    9.714504] ohci-pci 0000:00:0a.0: OHCI PCI host controller
[    9.720196] ohci-pci 0000:00:0a.0: new USB bus registered, assigned bus number 3
[    9.727805] ohci-pci 0000:00:0a.0: irq 7, io mem 0xfeffd000
[    9.817346] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    9.825708] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.832999] usb usb3: Product: OHCI PCI host controller
[    9.838317] usb usb3: Manufacturer: Linux 5.4.80-gentoo-r1x86 ohci_hcd
[    9.844913] usb usb3: SerialNumber: 0000:00:0a.0
[    9.851112] hub 3-0:1.0: USB hub found
[    9.855115] hub 3-0:1.0: 2 ports detected
[    9.860159] ohci-pci 0000:00:0b.0: OHCI PCI host controller
[    9.865852] ohci-pci 0000:00:0b.0: new USB bus registered, assigned bus number 4
[    9.873451] ohci-pci 0000:00:0b.0: irq 10, io mem 0xfeffe000
[    9.961463] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    9.969804] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.977092] usb usb4: Product: OHCI PCI host controller
[    9.982387] usb usb4: Manufacturer: Linux 5.4.80-gentoo-r1x86 ohci_hcd
[    9.989007] usb usb4: SerialNumber: 0000:00:0b.0
[    9.994696] hub 4-0:1.0: USB hub found
[    9.998643] hub 4-0:1.0: 2 ports detected
[   10.003683] ohci-platform: OHCI generic platform driver
[   10.009538] usbcore: registered new interface driver uas
[   10.015028] clocksource: timekeeping watchdog on CPU0: Marking clocksource 'tsc-early' as unstable because the skew is too large:
[   10.026734] clocksource:                       'pit' wd_now: eb45af49 wd_last: eb3ca7cf mask: ffffffff
[   10.036096] clocksource:                       'tsc-early' cs_now: 529bc9a03 cs_last: 4fa1f955a mask: ffffffffffffffff
[   10.046835] tsc: Marking TSC unstable due to clocksource watchdog
[   10.053471] usbcore: registered new interface driver usb-storage
[   10.059801] usbcore: registered new interface driver usbserial_generic
[   10.066465] usbserial: USB Serial support registered for generic
[   10.072631] usbcore: registered new interface driver pl2303
[   10.078333] usbserial: USB Serial support registered for pl2303
[   10.084486] usbcore: registered new interface driver usb_serial_simple
[   10.091145] usbserial: USB Serial support registered for carelink
[   10.097366] usbserial: USB Serial support registered for zio
[   10.103153] usbserial: USB Serial support registered for funsoft
[   10.109287] usbserial: USB Serial support registered for flashloader
[   10.115780] usbserial: USB Serial support registered for google
[   10.121829] usbserial: USB Serial support registered for libtransistor
[   10.128485] usbserial: USB Serial support registered for vivopay
[   10.134619] usbserial: USB Serial support registered for moto_modem
[   10.141043] usbserial: USB Serial support registered for motorola_tetra
[   10.147785] usbserial: USB Serial support registered for novatel_gps
[   10.154278] usbserial: USB Serial support registered for hp4x
[   10.160155] usbserial: USB Serial support registered for suunto
[   10.166204] usbserial: USB Serial support registered for siemens_mpi
[   10.173082] i8042: PNP: PS/2 Controller [PNP0303] at 0x60,0x64 irq 1
[   10.179496] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[   10.190566] serio: i8042 KBD port at 0x60,0x64 irq 1
[   10.195944] ata1.00: ATA-8: ST9250315AS, 0001SDM1, max UDMA/133
[   10.202009] ata1.00: 488397168 sectors, multi 16: LBA48
[   10.207445] ata1.00: limited to UDMA/33 due to 40-wire cable
[   10.214553] clocksource: Switched to clocksource pit
[   10.216385] mousedev: PS/2 mouse device common for all mice
[   10.218149] rtc_cmos 00:04: registered as rtc0
[   10.219878] rtc_cmos 00:04: alarms up to one day, 114 bytes nvram
[   10.220311] hidraw: raw HID events driver (C) Jiri Kosina
[   10.222718] usbcore: registered new interface driver usbhid
[   10.223378] usbhid: USB HID core driver
[   10.225009] Initializing XFRM netlink socket
[   10.226398] NET: Registered protocol family 17
[   10.228042] Key type dns_resolver registered
[   10.229402] mce: Unable to init MCE device (rc: -5)
[   10.230850] IPI shorthand broadcast: enabled
[   10.232583] Key type ._fscrypt registered
[   10.233692] Key type .fscrypt registered
[   10.237459] scsi 0:0:0:0: Direct-Access     ATA      ST9250315AS      SDM1 PQ: 0 ANSI: 5
[   10.241231] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[   10.243116] sd 0:0:0:0: [sda] Write Protect is off
[   10.244034] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   10.244515] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.293735]  sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[   10.299436] sd 0:0:0:0: [sda] Attached SCSI disk
[   10.303097] Freeing unused kernel image memory: 532K
[   10.307003] Write protecting kernel text and read-only data: 11488k
[   10.308345] Run /init as init process
[   10.317610] uname (75) used greatest stack depth: 7240 bytes left
[   10.466389] mknod (90) used greatest stack depth: 7216 bytes left
[   10.473887] mount (91) used greatest stack depth: 7096 bytes left
[   10.551111] cat (101) used greatest stack depth: 7052 bytes left
[   13.030237] ts (792) used greatest stack depth: 7032 bytes left
[   13.131854] udevd[812]: starting version 3.2.9
[   13.134817] random: udevd: uninitialized urandom read (16 bytes read)
[   13.135256] random: udevd: uninitialized urandom read (16 bytes read)
[   13.135672] random: udevd: uninitialized urandom read (16 bytes read)
[   13.173067] udevd[813]: starting eudev-3.2.9
[   13.295184] udevadm (817) used greatest stack depth: 6840 bytes left
[   13.486057] random: crng init done
[   13.486079] random: 3 urandom warning(s) missed due to ratelimiting
[   13.492861] ata_id (827) used greatest stack depth: 6800 bytes left
[   14.802966] udevadm (824) used greatest stack depth: 6616 bytes left
[   15.268607] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[   15.269937] mount (863) used greatest stack depth: 6480 bytes left
[   15.530313] udevd[813]: worker [829] is unknown, ignoring
[   45.537716] udevd[813]: timeout, giving up waiting for workers to finish
[   46.112336] test (896) used greatest stack depth: 6392 bytes left
[   50.324600] gendepends.sh (964) used greatest stack depth: 6376 bytes left
[   61.461940] udevd[1305]: starting version 3.2.10
[   61.679921] udevd[1305]: starting eudev-3.2.10
[   62.975049] r6040 0000:00:08.0 enp0s8: renamed from eth0
[   69.838637] EXT4-fs (sda3): re-mounted. Opts: (null)
[   71.496701] Adding 1048572k swap on /dev/sda2.  Priority:-2 extents:1 across:1048572k
[   72.286913] ext2 filesystem being mounted at /boot supports timestamps until 2038 (0x7fffffff)
[   72.449547] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[   77.967577] ip (1898) used greatest stack depth: 5816 bytes left
[   89.503314] r6040 0000:00:08.0 enp0s8: Link is Up - 100Mbps/Full - flow control off
...
[ 4598.837750] traps: ssh-keygen[2435] trap invalid opcode ip:b7d3db68 sp:bfa059c0 error:0 in libcrypto.so.1.1[b7d05000+168000]
[ 4614.667485] ssh-keygen[2452]: segfault at a ip b7d7cb70 sp bf957ad0 error 4 in libcrypto.so.1.1[b7d44000+168000]
[ 4614.667631] Code: 54 11 fc 85 d2 0f 89 1f 04 00 00 8b 11 f7 da 89 10 4f b8 01 00 00 00 7e 26 8b 7d b0 89 75 a8 8d 76 00 8b 75 a8 8d 0c 85 00 00 <00> 00 40 8b 16 8b 75 bc 8b 14 0a 83 f2 ff 39 c7 89 14 0e 75 e3 8b


It looks to me like a crash in loading libcrypto, hence my first idea of a problem with CPU extensions.

Now for the actions:
- Order a new adapter. 5V, 3A?
- Change the BIOS battery. It is an old button battery that came soldered to the board years ago, I've discovered that it provides 0V now. Can this be source of problems too?
- emerge sshd and libcrypto, INSIDE the board. Still a long way to go, I keep having problems using emerge in the board.
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Sat Feb 20, 2021 11:40 pm    Post subject: Reply with quote

BlackLodge,

Code:
[ 4598.837750] traps: ssh-keygen[2435] trap invalid opcode ip:b7d3db68 sp:bfa059c0 error:0 in libcrypto.so.1.1[b7d05000+168000]

The CPU tried to execute an instruction that it doesn't have.

I can think of three or so reasons
The code was corrupted during build, so the binary is corrupt.
The code was corrupted in RAM after loading the correct code.
The code was built to use instructions that your CPU doesn't have.
A hardware error.

The first one will be fixed by a rebuild.
The second one will be intermittent.
The last one will only be fixed by rebuilding the code with the correct instuction set.

Your entire
Code:
emerge --info
output would be good. That will show your global settitings.
make.conf is some global fine tuning.

libcrypto.so.1.1 is provided by dev-libs/openssl. That in turn has
Code:
CPU_FLAGS_X86="sse2"
so it has some optional specially optimised code to use sse2.
What does
Code:
less /var/db/pkg/dev-libs/openssl-1.1.1j/USE
tell?
If it contains cpu_flags_x86_sse2 then that's the problem.
We need to track down where it came from then you can rebuild that and any other affected packages.

Code:
grep cpu_flags_x86  /var/db/pkg/*/*/USE
will show all packages built with any CPU_FLAGS_X86. There should be none.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Sun Feb 21, 2021 9:19 am    Post subject: Reply with quote

Hello Neddy,

I am posting the information of my VM, since it is where I make my compilations.

emerge --info:
Code:


Portage 3.0.13 (python 3.8.6-final-0, default/linux/x86/17.0, gcc-9.3.0, glibc-2.32-r6, 5.4.97-gentoo i686)
=================================================================
System uname: Linux-5.4.97-gentoo-i686-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-glibc2.1.3
KiB Mem:      882752 total,    772468 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Mon, 15 Feb 2021 20:00:01 +0000
Head commit of repository gentoo: b1b7ad638453d1db10e4bf4bb76d15c43fa3b791
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.6-r1::gentoo, 3.9.0-r1::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=i586 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i586 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=i586 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i586 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bzip2 cli crypt dri fortran gdbm iconv libglvnd libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


For the sse flag:
Code:

BTPlug ~ # cat /var/db/pkg/dev-libs/openssl-1.1.1i/USE
abi_x86_32 asm elibc_glibc kernel_linux userland_GNU x86 zlib
BTPlug ~ # grep cpu_flags_x86 /var/db/pkg/*/*/USE

No output.

Thanks!
_________________
Why is this not working!


Last edited by BlackLodge on Sun Feb 21, 2021 10:02 am; edited 1 time in total
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Sun Feb 21, 2021 9:22 am    Post subject: Reply with quote

By the way, this is clearly not a portage issue, hence if moderators think it should be better placed in, for example, "Alternative architectures" forum, please proceed.
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Sun Feb 21, 2021 11:14 am    Post subject: Reply with quote

BlackLodge,

That's all the right answers so far.

Rebuild and reinstall dev-libs/openssl but save the build log to pastebin when it completes.
Put something like
Code:
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORT_LOGDIR=/var/log/portage/
in make.conf and build logs are saved in PORT_LOGDIR until you delete them.

I'm not convinced its not a build system problem yet. There are a few too clever by half build system that detect the CPU that they are executing on even when they are told not to.
As that is not ruled out yet, your topic is fine here.

A few other random thoughts. Do all these tests on the target.
Please post the content of
Code:
/proc/cpuinfo
.
The output of running
Code:
cpuid2cpuflags
, that's from app-portage/cpuid2cpuflags. Its a python script.
Lastly, post the output of
Code:
gcc -### -E - -march=native 2>&1 | sed -r '/cc1/!d;s/(")|(^.* - )|( -mno-[^\ ]+)//g'

That tells what gcc thinks -march=native means on the system that executes it.

I suspect your CPU is a i586 plus some extensions. You may as well use them if you have them.
e.g. If its really an i686 without CMOV, you will have mmx.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 235

PostPosted: Sun Feb 21, 2021 11:23 am    Post subject: Reply with quote

BlackLodge wrote:
By the way, this is clearly not a portage issue


Hi, I have one or two equivalents of these old CPU in "Thin Clients" SiS550 Neoware CA5

Pretty sure it does not have "SSE" and it is missing a basic MMX function too, there used to be a kernel CPU patch for it that was dropped ages ago from the mainline kernel. :-(

It originally comes from this line:

https://www.cpu-world.com/CPUs/MP6/index.html

They all appear to still have the "Chris Norrie" hardware Easter Egg

Hope you get it going it may rekindle some interest in my old "thin Clients"
(I will see if I still have the patch somewhere)

edit: Here is the patch, looks to be a cache issue not MMX for early Vortex only! :
http://lkml.iu.edu/hypermail/linux/kernel/0810.1/1567.html

https://www.parkytowers.me.uk/thin/neoware/CA5/

I see you have the DX which is later but hopefully the links are of interest and maybe useful.

:)
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Mon Feb 22, 2021 6:40 pm    Post subject: Reply with quote

Hello,

Pastebin of openssl emerge:

https://pastebin.com/cBND4FAs
https://pastebin.com/RHg3EAL7

It looks like no sse is enabled. Install part is missing, it was a log too long. Now this version is running, I will tell you if it works.

About CPU diagnosis:

Code:
BTPlug ~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : Vortex86 SoC
cpu family      : 5
model           : 2
model name      : 05/02
stepping        : 2
cpu MHz         : 933.339
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu tsc cx8 cpuid
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips        : 1866.67
clflush size    : 32
cache_alignment : 32
address sizes   : 32 bits physical, 32 bits virtual
power management:

BTPlug ~ # cpuid2cpuflags
CPU_FLAGS_X86:

BTPlug ~ # gcc -### -E - -march=native 2>&1 | sed -r '/cc1/!d;s/(")|(^.* - )|( -mno-[^\ ]+)//g'
-march=pentium -mtune=pentium


It will surprise me is this beast is MMX capable, since the next CPU that DMP developed was the VortexMX, which (if I understood well) is the DX plus MMX instruction set.

Thanks rufnut for the links, I will take a look asap. Yes it is a pain in the ass to make gentoo work in this thing, and the only (bad) excuse I can think of is... well, why not :D
_________________
Why is this not working!
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Mon Feb 22, 2021 7:48 pm    Post subject: Reply with quote

Edit just to say that I found the issue: I was spawnning in a not used serial port.

Quote:

Oh well, and now I start having kernel panics... :roll:

Code:
[    9.791714] BUG: unable to handle page fault for address: 59c2db02
[    9.792526] #PF: supervisor write access in kernel mode
[    9.792526] #PF: error_code(0x0002) - not-present page
[    9.792526] *pde = 00000000
[    9.792526] Oops: 0002 [#1] SMP
[    9.792526] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.97-gentoo #5
[    9.792526] EIP: vsnprintf+0x383/0x510
[    9.792526] Code: ff ff ff e9 d7 fc ff ff 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 90 8b 00 88 03 e9 24 fd ff ff 8d b4 26 00 00 00 00 8b 7d e4 <c6> 47 ff 00 8d 65 f4 5b 5e 5f 5d c3 90 8b 7d 08 31 c0 8a 07 31 d2
[    9.792526] EAX: 00000005 EBX: d9c2db09 ECX: 59c2db03 EDX: 7fffffff
[    9.792526] ESI: dd3684de EDI: 59c2db03 EBP: df493d6c ESP: df493d48
[    9.792526] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00000217
[    9.792526] CR0: 80050033 CR2: 59c2db02 CR3: 1d55b000 CR4: 00000000
[    9.792526] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    9.792526] DR6: ffffffff DR7: 00000400
[    9.792526] Call Trace:
[    9.792526]  sprintf+0x17/0x20
[    9.792526]  tty_line_name+0x40/0x50
[    9.792526]  alloc_tty_struct+0x187/0x1e0
[    9.792526]  tty_init_dev+0x20/0x190
[    9.792526]  tty_open+0x1bd/0x450
[    9.792526]  ? cdev_purge+0x50/0x50
[    9.792526]  chrdev_open+0x63/0x170
[    9.792526]  do_dentry_open+0x104/0x360
[    9.792526]  ? exact_lock+0x20/0x20
[    9.792526]  vfs_open+0x21/0x30
[    9.792526]  path_openat+0x4d0/0x1110
[    9.792526]  do_filp_open+0x6d/0xd0
[    9.792526]  do_sys_open+0x18d/0x240
[    9.792526]  kernel_init_freeable+0x124/0x187
[    9.792526]  ? rest_init+0x85/0x85
[    9.792526]  kernel_init+0x8/0xdb
[    9.792526]  ret_from_fork+0x2e/0x40
[    9.792526] Modules linked in:
[    9.792526] CR2: 0000000059c2db02
[    9.792526] ---[ end trace 52844bc3ab7df7a1 ]---
[    9.792526] EIP: vsnprintf+0x383/0x510
[    9.792526] Code: ff ff ff e9 d7 fc ff ff 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 90 8b 00 88 03 e9 24 fd ff ff 8d b4 26 00 00 00 00 8b 7d e4 <c6> 47 ff 00 8d 65 f4 5b 5e 5f 5d c3 90 8b 7d 08 31 c0 8a 07 31 d2
[    9.792526] EAX: 00000005 EBX: d9c2db09 ECX: 59c2db03 EDX: 7fffffff
[    9.792526] ESI: dd3684de EDI: 59c2db03 EBP: df493d6c ESP: df493d48
[    9.792526] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00000217
[    9.792526] CR0: 80050033 CR2: 59c2db02 CR3: 1d55b000 CR4: 00000000
[    9.792526] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    9.792526] DR6: ffffffff DR7: 00000400
[    9.792526] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[    9.792526] Kernel Offset: 0x1b800000 from 0xc1000000 (relocation range: 0xc0000000-0xe07fffff)
[    9.792526] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---


This is for the serial port, isn't it? It does make sense since I am using serial console to control the board, but dawn!

Does the cursed board exists?

_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Mon Feb 22, 2021 11:09 pm    Post subject: Reply with quote

BlackLodge,

Code:
flags           : fpu tsc cx8 cpuid
Its a bare Pentium CPU. There are no instruction set extensions there.
Its only one core, one thread too, so SMP support can't be used.

Code:
./Configure linux-elf no-sse2 enable-camellia enable-ec enable-ec2m enable-sm2 enable-srp enable-idea enable-mdc2 enable-rc5 no-ssl3 no-ssl3-method enable-asm no-rfc3779 no-sctp no-heartbeats enable-zlib --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared threads

That looks good and there are no other significant hits in the build log.

I can't tell what happened to cause your panic.
Code:
Attempted to kill init!
is the end of the road though. That's processID 1, or the root of the process tree.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Tue Feb 23, 2021 9:33 am    Post subject: Reply with quote

Hello Neddy,

Quote:
Its only one core, one thread too, so SMP support can't be used.


So I will disable SMP in kernel. Can this cause panics? I've already had several ugly ones, some of them related to race conditions.

I will also set march and mtune flags to pentium in make.conf. Also CPU_FLAGS_X86="". I think it is the correct setting and will help prevent future crashes for compiling packages with the incorrect flags.

About the panic I posted before: trying to simplify the scenario, I went to the BIOS and disabled all the things that I am not using: GPIO ports, I2C, etc. And between these disabled things, the second serial port of the board. But I forgot to comment the line in /etc/inittab, so my educate guess is that the kernel simply killed init and then came crash and fire and catastophe.

Today it will arrive the 5V3A PSU, I hope this will improve the situation, specially for the crashes related to syncing filesystem: I have a 5V0.45A mechanical SATA connected to the board as main disk.
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Tue Feb 23, 2021 10:10 am    Post subject: Reply with quote

BlackLodge,

SMP support is just bloat. Its harmless and not worth a kernel rebuild
CPU_FLAGS_X86="" is the default but its harmless to set it explicitly.
man gcc:
           i586
           pentium
               Intel Pentium CPU with no MMX support.
So i586 and pentium are synonyms to gcc.

Further, -march implies -mtune, at least, on Intel.

In short, I don't think changing those settings will do anything.

Does your HDD spin down?
Its rated 0.45A but the motor start current will be much higher. The PSU needs to supply the start current without the voltage sagging below that required for proper CPU operation.
Is there a correlation between the HDD starting and kernel panics?
Can you turn off the power savings?
hdparm can help there. It can do some very nasty things to the drive too so take care.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Tue Feb 23, 2021 11:14 am    Post subject: Reply with quote

Quote:
Is there a correlation between the HDD starting and kernel panics?


I have the impression that there are panics when a task with heavy HD load happens: by emerging basic packages, or simply wget'ing a 100Mb file, for instance.

I don't see the same issue with CPU: grub-mkconfig can be done inside the box.

Quote:
Can you turn off the power savings?

I think there are no such things with this basic board, the drive is spinning all the time. I will take a look with hdparm anyway, just to be sure.

In any case, the CPU is consuming 1A, plus 0.5A for the drive: If everything goes well, 3A should be enough. There is a doubt though, since the power for the drive is provided by the 44 pins IDE header.

Edit to add the drive specification from seagate site: https://www.seagate.com/staticfiles/support/disc/manuals/notebook/momentus/5400.6%20(Wyatt)/100528359e.pdf

1A spinup consumption.
_________________
Why is this not working!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47613
Location: 56N 3W

PostPosted: Tue Feb 23, 2021 1:08 pm    Post subject: Reply with quote

BlackLodge,

That looks "mostly harmless".
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
BlackLodge
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 142
Location: TLS

PostPosted: Tue Feb 23, 2021 1:27 pm    Post subject: Reply with quote

Quote:
That looks "mostly harmless".


I know, right? But then, Murphy's Law needs to be honored too.

Impatiently waiting the delivery guy.
_________________
Why is this not working!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum