On Thu, Jan 23, 2025 at 08:49:27AM +0900, FUKAUMI Naoki wrote: > Hi Mark, > > On 1/22/25 22:09, Mark Kettenis wrote: > > I think I figured out what went wrong here. If you know how to apply > > patches and build your own kernel the diff below will probably fix the > > issue. > > It works fine. Thank you very much :) > > > P.S. I think you mentioned GENERIC.MP being unstable on your RK3588 > > board. Not sure what board you're using, but the ROCK 5B board > > that I have works quite well with the right power supply. But > > with other power supplies it doesn't. I believe that's because > > upstream U-Boot didn't do USB-C PD negotiation. But it does > > implement that now and I need to look into updating the U-Boot > > version that we build for OpenBSD. > > I'm using a ROCK 5T which has a DC12V jack instead of Type-C PD. > > I know about PD negotiation issues with U-Boot and the kernel, which results > in a hard reset, but what I've seen is processes being killed randomly. > > Best regards,
With some input from Jared McNeill I got OpenBSD to install and run on the board, it looks like: * Using xhci(4) produces the SError. Jared thinks it might be missing clock setup in UEFI. Disabling it allows it to run userland. * MP hangs. I think the cores might actually be spooled up, but as soon as we try to actually run userland, there's no forward progress. * SPCR enablement gets lost anytime I pull the power plug... boot> boot bsd.sp -c NOTE: random seed is being reused. booting sd0a:bsd.sp: 11522368+2777288+299736+845744 [940270+91+1308672+810691]=0 x1402da0 FACP SSDT CSRT DBG2 GTDT IORT SDEI SPCR APIC SSDT MCFG [ using 3060504 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2025 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.6-current (GENERIC) #290: Tue Jan 28 21:21:23 MST 2025 dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC real mem = 16952713216 (16167MB) avail mem = 16293494784 (15538MB) User Kernel Config UKC> disable xhci* 168 xhci* disabled 242 xhci* disabled 427 xhci* disabled UKC> quit Continuing... random: boothowto does not indicate good seed mainbus0 at root: ACPI psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND efi0 at mainbus0: UEFI 2.7 efi0: EDK II rev 0x10000 smbios0 at efi0: SMBIOS 3.0.0 smbios0: vendor Radxa Computer (Shenzhen) Co., Ltd. version "1.0" date Jan 1 1980 smbios0: Radxa Computer (Shenzhen) Co., Ltd. Radxa Orion O6 cpu0 at mainbus0 mpidr a00: ARM Cortex-A720 r0p1 cpu0: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache cpu0: 512KB 64b/line 8-way L2 cache cpu0: 12288KB 64b/line 12-way L3 cache cpu0: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SM4,SM3,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,XS,I8MM,DGH,BF16,SPECRES,SB,FRINTTS,LRCPC+LDAPUR,FCMA,JSCVT,DPB+DCCVADP,GPA3,APA3+EPAC2+FPAC+COMBINED,WFXT,ECV+CNTHCTL,ASID16,AFP,PAN+ATS1E1+EPAN,LO,HPDS,VH,HAFDBS,ECBHB,IDS,AT,CSV3,CSV2+SCXT,DIT,AdvSIMD+HP,FP+HP,BT,SSBS+MSR,MTE apm0 at mainbus0 agintc0 at mainbus0 shift 4:4 nirq 544 nredist 12: "interrupt-controller" agintcmsi0 at agintc0 agtimer0 at mainbus0: 1000000 kHz acpi0 at mainbus0: ACPI 5.1 acpi0: sleep states acpi0: tables DSDT FACP SSDT CSRT DBG2 GTDT IORT SDEI SPCR APIC SSDT MCFG acpi0: wakeup devices acpiiort0 at acpi0 acpimcfg0 at acpi0 acpimcfg0: addr 0x20000000, bus 144-175 acpimcfg0: addr 0x20000000, bus 48-79 acpimcfg0: addr 0x20000000, bus 0-31 "CIXHA016" at acpi0 not configured "CIXHA017" at acpi0 not configured "CIXHA018" at acpi0 not configured pluart0 at acpi0 COM0 addr 0x40b0000/0x10000 irq 328 pluart1 at acpi0 COM1 addr 0x40c0000/0x10000 irq 329 pluart2 at acpi0 COM2 addr 0x40d0000/0x10000 irq 330 pluart2: console "PRP0001" at acpi0 not configured "PRP0001" at acpi0 not configured "PRP0001" at acpi0 not configured "CIXHA019" at acpi0 not configured "CIXHA001" at acpi0 not configured "CIXHA001" at acpi0 not configured "CIXHA001" at acpi0 not configured "CIXHA001" at acpi0 not configured "CIXHA010" at acpi0 not configured "CIXA1019" at acpi0 not configured "CIXHA020" at acpi0 not configured "CIXHA021" at acpi0 not configured "CIXHA018" at acpi0 not configured "CIXHA018" at acpi0 not configured "CIXH7020" at acpi0 not configured "CIXHA004" at acpi0 not configured "CIXHA005" at acpi0 not configured "CIXHA006" at acpi0 not configured "CIXHA008" at acpi0 not configured "CIXHA009" at acpi0 not configured "CIXHA000" at acpi0 not configured "CIXHA007" at acpi0 not configured "CIXH6060" at acpi0 not configured "CIXH6061" at acpi0 not configured "CIXH6062" at acpi0 not configured "CIXHA018" at acpi0 not configured "CIXH1002" at acpi0 not configured "CIXH1003" at acpi0 not configured "CIXH1003" at acpi0 not configured "CIXH1003" at acpi0 not configured "CIXH1003" at acpi0 not configured "CIXH1003" at acpi0 not configured "CIXH2011" at acpi0 not configured "CIXH1007" at acpi0 not configured "CIXH6020" at acpi0 not configured "CIXHA018" at acpi0 not configured "CIXH6000" at acpi0 not configured "CIXHA014" at acpi0 not configured "CIXH1006" at acpi0 not configured "CIXH302C" at acpi0 not configured "CIXH3024" at acpi0 not configured "CIXH3023" at acpi0 not configured "CIXH200B" at acpi0 not configured "CIXH200D" at acpi0 not configured "CIXH200D" at acpi0 not configured "RTL5682" at acpi0 not configured "CIXHA011" at acpi0 not configured "CIXH200B" at acpi0 not configured "RX8900" at acpi0 not configured "CIXH3024" at acpi0 not configured "CIXH200B" at acpi0 not configured "CIXH3024" at acpi0 not configured "CIXH200B" at acpi0 not configured "CIXH200B" at acpi0 not configured "CIXH200D" at acpi0 not configured "CIXH200D" at acpi0 not configured "CIXH2001" at acpi0 not configured "SPT0001" at acpi0 not configured "CIXH2001" at acpi0 not configured "SPT0002" at acpi0 not configured acpipci0 at acpi0 PCI1 pci0 at acpipci0 ppb0 at pci0 dev 0 function 0 vendor "Cadence", unknown product 0x0100 rev 0x00 pci1 at ppb0 bus 145 nvme0 at pci1 dev 0 function 0 "Samsung PM9A1 NVMe" rev 0x00: msix, NVMe 1.4 nvme0: XXXXXXXXXXXX-XXXXX, firmware XXXXXXXX, serial XXXXXXXXXXXXXX scsibus0 at nvme0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <NVMe, XXXXXXXXXXXX-XXX, XXXX> sd0: 488386MB, 512 bytes/sector, 1000215216 sectors acpipci1 at acpi0 PCI3 pci2 at acpipci1 ppb1 at pci2 dev 0 function 0 vendor "Cadence", unknown product 0x0100 rev 0x00 pci3 at ppb1 bus 49 rge0 at pci3 dev 0 function 0 "Realtek RTL8126" rev 0x01: msix, address XX:XX:XX:XX:XX:XX acpipci2 at acpi0 PCI4 pci4 at acpipci2 ppb2 at pci4 dev 0 function 0 vendor "Cadence", unknown product 0x0100 rev 0x00 pci5 at ppb2 bus 1 1:0:0: io address conflict 0x1000/0x100 rge1 at pci5 dev 0 function 0 "Realtek RTL8126" rev 0x01: msix, address XX:XX:XX:XX:XX:XX "CIXH2020" at acpi0 not configured "CIXH2023" at acpi0 not configured "CIXH2020" at acpi0 not configured "CIXH2020" at acpi0 not configured "CIXH2023" at acpi0 not configured "CIXH3010" at acpi0 not configured "CIXH502F" at acpi0 not configured "CIXH502F" at acpi0 not configured "CIXH502F" at acpi0 not configured "CIXH502F" at acpi0 not configured "CIXH502F" at acpi0 not configured "CIXH5010" at acpi0 not configured "CIXH5010" at acpi0 not configured "CIXH5010" at acpi0 not configured "CIXH5010" at acpi0 not configured "CIXH5010" at acpi0 not configured "CIXH5041" at acpi0 not configured "CIXH5040" at acpi0 not configured "CIXHA012" at acpi0 not configured "CIXHA013" at acpi0 not configured "CIXH5000" at acpi0 not configured "CIXH4000" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "PNP0D10" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2033" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2033" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2033" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2033" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2034" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH2030" at acpi0 not configured "CIXH2031" at acpi0 not configured "CIXH2032" at acpi0 not configured "CIXH3020" at acpi0 not configured "CIXH3021" at acpi0 not configured "CIXH3025" at acpi0 not configured "CIXH3026" at acpi0 not configured "CIXH3027" at acpi0 not configured "CIXH3028" at acpi0 not configured "CIXH3029" at acpi0 not configured "CIXH302A" at acpi0 not configured "CIXH302B" at acpi0 not configured "CIXHA022" at acpi0 not configured "CIXH6030" at acpi0 not configured "CIXH6070" at acpi0 not configured "CIXHA015" at acpi0 not configured acpibat0 at acpi0: BAT0 not present "PNP0C0B" at acpi0 not configured acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID_ acpiac0 at acpi0: AC unit offline "PNP0C50" at acpi0 not configured "PNP0C14" at acpi0 not configured acpitz0 at acpi0: no critical temperature defined acpipwrres0 at acpi0: PPRS, resource for ACLK acpipwrres1 at acpi0: PPRS, resource for VPU0 acpipwrres2 at acpi0: PRS0, resource for CRE0 acpipwrres3 at acpi0: PRS1, resource for CRE1 acpipwrres4 at acpi0: PRS2, resource for CRE2 acpipwrres5 at acpi0: PRS3, resource for CRE3 acpipwrres6 at acpi0: PRS0, resource for DPU0 acpipwrres7 at acpi0: PRS1, resource for DPU1 acpipwrres8 at acpi0: PRS2, resource for DPU2 acpipwrres9 at acpi0: PRS3, resource for DPU3 acpipwrres10 at acpi0: PRS4, resource for DPU4 acpipwrres11 at acpi0: PPRS, resource for GPU_ acpipwrres12 at acpi0: PPRS, resource for NPU0, CRE0, CRE1, CRE2 acpipwrres13 at acpi0: PRS0, resource for CRE0 acpipwrres14 at acpi0: PRS1, resource for CRE1 acpipwrres15 at acpi0: PRS2, resource for CRE2 acpipwrres16 at acpi0: PRS0, resource for ISPM acpipwrres17 at acpi0: ECFN, resource for ECFP acpitz1 at acpi0acpitz1: ECTZ: failed to read _TMP acpitz1: ECTZ: failed to read _TMP vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on sd0a (8bab913958cbd5cf.a) swap on sd0b dump on sd0b WARNING: CHECK AND RESET THE DATE! Automatic boot in progress: starting file system checks. /dev/sd0a (8bab913958cbd5cf.a): file system is clean; not checking /dev/sd0j (8bab913958cbd5cf.j): file system is clean; not checking /dev/sd0d (8bab913958cbd5cf.d): file system is clean; not checking /dev/sd0f (8bab913958cbd5cf.f): file system is clean; not checking /dev/sd0g (8bab913958cbd5cf.g): file system is clean; not checking /dev/sd0h (8bab913958cbd5cf.h): file system is clean; not checking /dev/sd0e (8bab913958cbd5cf.e): file system is clean; not checking pf enabled starting network reordering: ld.so libc libcrypto sshd sshd-session sshd-auth ssh-agent. openssl: generating isakmpd RSA keys... done. openssl: generating iked ECDSA keys... done. ssh-keygen: generating new host keys: RSA ECDSA ED25519 sshd: (ED25519) SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX starting early daemons: syslogd pflogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd smtpd sndiod. running rc.firsttime fw_update: add none; update none; keep iwx starting local daemons: cron. Wed Jan 29 16:36:36 CET 2025 reorder_kernel: failed -- see /usr/share/relink/kernel/GENERIC/relink.log OpenBSD/arm64 (orion) (console) login: