> > > On May 3, 2023 11:37:52 AM GMT-03:00, Andrew Klaus <and...@aklaus.ca> > wrote: >>That is very odd. I don't understand why yours won't bring up the >>onboard NICs, but mine does when using the same image. >> >>I believe the DTB files are also embedded in the UEFI firmware, since >>it >>doesn't actually make a difference if I add them to the vendor folder >>on >>the miniroot partition or not. You could also try setting the UEFI >>setting to "DTB" only. I just tested that on mine and it brought up the >> >>NICs. >> >>I noticed your dmesg shows, "mainbus0 at root: ACPI", but mine >>"mainbus0 >>at root: FriendlyElec NanoPi R5S". I'm not sure if that makes a >>difference or not. > > Hi Andrew, > > I tried using devicetree only here to find out when I boot to OpenBSD it > gets changed to acpi only. I don't know why, but despite saving my choice > and reseting to double check, all boot has that line mainbus0 pointing to > acpi and after the boot of OpenBSD, when back to the bios setup it changed > to acpi only. And I tried that changing the option with and without > turning it off to change the sd card. > I remember changing it to acpi + dtb and it keeping this choice when > trying FreeBSD these days, but today I will test it again. > > Thanks for the help. Looks a bit closer to the solution :) > > Matheus
Hi, as a feedback to the problem, I got to boot using device tree as Andrew posted dmesg below. I am using the NANOPI-R5S_EFI.img from May 11 from the guy from PersonalBSD. I still could not change bios to DTB, but I found how to force it by the OpenBSD boot prompt. I first tried to use the dtb command on the prompt, and it worked. I then created a /etc/boot.conf file and put there the "dtb" command, but I am not sure it is working. It renders me this: disks: sd0* sd1 >> OpenBSD/arm64 BOOTAA64 1.16 booting sd0a:dtb: open sd0a:dtb: No such file or directory failed(2). will try /bsd but it keeps booting fine and enabling the dtb and all ethernet. Thanks all for the help! my dmesg: OpenBSD 7.3 (GENERIC.MP) #2080: Sat Mar 25 14:20:25 MDT 2023 dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP real mem = 3984564224 (3799MB) avail mem = 3785486336 (3610MB) random: good seed from bootblocks mainbus0 at root: FriendlyElec NanoPi R5S psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0 cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 512KB 64b/line 16-way L2 cache cpu0: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0 cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu1: 512KB 64b/line 16-way L2 cache cpu1: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0 cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu2: 512KB 64b/line 16-way L2 cache cpu2: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0 cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu3: 512KB 64b/line 16-way L2 cache cpu3: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS efi0 at mainbus0: UEFI 2.7 efi0: EDK2 rev 0x10000 smbios0 at efi0: SMBIOS 3.3.0 smbios0: vendor EDK2 version "v1.1" date 05/11/2023 smbios0: FriendlyElec NanoPi-R5S scmi0 at mainbus0: SCMI 2.0 apm0 at mainbus0 agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: "interrupt-controller" agintcmsi0 at agintc0: can't map registers syscon0 at mainbus0: "syscon" "io-domains" at syscon0 not configured syscon1 at mainbus0: "syscon" syscon2 at mainbus0: "syscon" syscon3 at mainbus0: "syscon" syscon4 at mainbus0: "syscon" syscon5 at mainbus0: "syscon" syscon6 at mainbus0: "syscon" rkclock0 at mainbus0: PMUCRU rkclock1 at mainbus0: CRU syscon7 at mainbus0: "power-management" "power-controller" at syscon7 not configured syscon8 at mainbus0: "qos" syscon9 at mainbus0: "qos" syscon10 at mainbus0: "qos" syscon11 at mainbus0: "qos" syscon12 at mainbus0: "qos" syscon13 at mainbus0: "qos" syscon14 at mainbus0: "qos" syscon15 at mainbus0: "qos" syscon16 at mainbus0: "qos" syscon17 at mainbus0: "qos" syscon18 at mainbus0: "qos" syscon19 at mainbus0: "qos" syscon20 at mainbus0: "qos" syscon21 at mainbus0: "qos" syscon22 at mainbus0: "qos" syscon23 at mainbus0: "qos" syscon24 at mainbus0: "qos" syscon25 at mainbus0: "qos" syscon26 at mainbus0: "qos" syscon27 at mainbus0: "qos" syscon28 at mainbus0: "qos" syscon29 at mainbus0: "qos" syscon30 at mainbus0: "qos" syscon31 at mainbus0: "qos" rkcomphy0 at mainbus0 rkcomphy1 at mainbus0 rkpinctrl0 at mainbus0: "pinctrl" rkgpio0 at rkpinctrl0 rkgpio1 at rkpinctrl0 rkgpio2 at rkpinctrl0 rkgpio3 at rkpinctrl0 rkgpio4 at rkpinctrl0 syscon32 at mainbus0: "syscon" syscon33 at mainbus0: "qos" syscon34 at mainbus0: "qos" syscon35 at mainbus0: "qos" syscon36 at mainbus0: "syscon" rkpciephy0 at mainbus0 rkcomphy2 at mainbus0 "fit-images" at mainbus0 not configured "opp-table-0" at mainbus0 not configured rkdrm0 at mainbus0 drm0 at rkdrm0 "firmware" at mainbus0 not configured "opp-table-1" at mainbus0 not configured "pmu" at mainbus0 not configured agtimer0 at mainbus0: 24000 kHz "xin24m" at mainbus0 not configured "xin32k" at mainbus0 not configured "sram" at mainbus0 not configured xhci0 at mainbus0, xHCI 1.10 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1 xhci1 at mainbus0, xHCI 1.10 usb1 at xhci1: USB revision 3.0 uhub1 at usb1 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1 ehci0 at mainbus0 usb2 at ehci0: USB revision 2.0 uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at mainbus0: version 1.0 ehci1 at mainbus0 usb3 at ehci1: USB revision 2.0 uhub3 at usb3 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci1 at mainbus0: version 1.0 rkiic0 at mainbus0 iic0 at rkiic0 fanpwr0 at iic0 addr 0x1c: TCS4525, 1.15 VDC rkpmic0 at iic0 addr 0x20: RK809 com0 at mainbus0: dw16550, 64 byte fifo "gpu" at mainbus0 not configured dwpcie0 at mainbus0 dwmmc0 at mainbus0: 50 MHz base clock sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma "mmc" at mainbus0 not configured "otp" at mainbus0 not configured "dma-controller" at mainbus0 not configured "dma-controller" at mainbus0 not configured rkiic1 at mainbus0 iic1 at rkiic1 pcxrtc0 at iic1 addr 0x51pcxrtc0: pcxrtc_reg_read: failed to read reg0 : battery ok "watchdog" at mainbus0 not configured com1 at mainbus0: dw16550, 64 byte fifo com1: console rktemp0 at mainbus0 "saradc" at mainbus0 not configured "usb2phy" at mainbus0 not configured "usb2phy" at mainbus0 not configured dwpcie1 at mainbus0 dwpcie2 at mainbus0 dwqe0 at mainbus0: rev 0x00, address b9:e4:a2:xx:xx:xx rgephy0 at dwqe0 phy 1: RTL8169S/8110S/8211 PHY, rev. 6 gpioleds0 at mainbus0: "nanopi-r5:sys" "vdd-usbc" at mainbus0 not configured "vcc3v3-sys" at mainbus0 not configured "vcc3v3-sysp" at mainbus0 not configured "vcc5v0-sysp" at mainbus0 not configured "vcc5v0-host-regulator" at mainbus0 not configured "pcie30-avdd0v9" at mainbus0 not configured "pcie30-avdd1v8" at mainbus0 not configured "gpio-regulator" at mainbus0 not configured simplefb0 at mainbus0: 1920x1080, 32bpp wsdisplay0 at simplefb0 mux 1 wsdisplay0: screen 0-5 added (std, vt100 emulation) usb4 at ohci0: USB revision 1.0 uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 usb5 at ohci1: USB revision 1.0 uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 pci0 at dwpcie0 ppb0 at pci0 dev 0 function 0 "Rockchip RK3566" rev 0x00 pci1 at ppb0 bus 1 rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x05: msi, address 00:00:00:00:00:00 pci2 at dwpcie1 ppb1 at pci2 dev 0 function 0 "Rockchip RK3566" rev 0x00 pci3 at ppb1 bus 1 rge1 at pci3 dev 0 function 0 "Realtek RTL8125" rev 0x05: msi, address 00:00:00:00:00:00 pci4 at dwpcie2 ppb2 at pci4 dev 0 function 0 "Rockchip RK3566" rev 0x00 pci5 at ppb2 bus 1 nvme0 at pci5 dev 0 function 0 vendor "SanDisk", unknown product 0x5009 rev 0x01: msix, NVMe 1.4 nvme0: WDC WDS100T2B0C-00PXH0, firmware 211210WD, serial xxxxxxxxxxxxxxx scsibus0 at nvme0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <NVMe, WDC WDS100T2B0C-, 2112> sd0: 953869MB, 512 bytes/sector, 1953525168 sectors scsibus1 at sdmmc0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SB32G, 0080> removable sd1: 30436MB, 512 bytes/sector, 62333952 sectors uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech USB Receiver" rev 1.10/38.10 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd0 at ukbd0 mux 1 wskbd0: connecting to wsdisplay0 uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech USB Receiver" rev 1.10/38.10 addr 2 uhidev1: iclass 3/1, 17 report ids uhidpp0 at uhidev1 ums0 at uhidev1 reportid 2: 8 buttons, Z and W dir wsmouse0 at ums0 mux 0 ucc0 at uhidev1 reportid 3: 652 usages, 20 keys, array wskbd1 at ucc0 mux 1 wskbd1: connecting to wsdisplay0 uhid0 at uhidev1 reportid 4: input=1, output=0, feature=0 axen0 at uhub1 port 2 configuration 1 interface 0 "ASIX Elec. Corp. AX88179" rev 3.00/1.00 addr 2 axen0: AX88179, address 2c:53:4a:a0:xx:xx rgephy1 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd0a (31b631ff87307a65.a) swap on sd0b dump on sd0b rkclock_get_frequency: 0x0000000a cpu0: clock not implemented rkdrm0: no display interface ports configured >>This is my dmesg while booting the miniroot73.img 7.3 release: >> >>Tianocore/EDK2 firmware version EDK2-DEV >>Press ESCAPE for boot options ......disks: sd0* sd1 >> >> OpenBSD/arm64 BOOTAA64 1.16 >>boot> >>cannot open sd0a:/etc/random.seed: No such file or directory >>booting sd0a:/bsd: 2798224+1058776+12709688+630920 >>[229059+91+651336+254968]=0x1 >>3ce628 >>Copyright (c) 1982, 1986, 1989, 1991, 1993 >>       The Regents of the University of California. All rights >>reserved. >>Copyright (c) 1995-2023 OpenBSD. All rights reserved. >>https://www.OpenBSD.org >> >>OpenBSD 7.3 (RAMDISK) #1941: Sat Mar 25 14:42:22 MDT 2023 >>dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK >>real mem = 3992494080 (3807MB) >>avail mem = 3790938112 (3615MB) >>random: good seed from bootblocks >>mainbus0 at root: FriendlyElec NanoPi R5S >>psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND >>cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0 >>cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 >>D-cache >>cpu0: 512KB 64b/line 16-way L2 cache >>cpu0: >>DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS >>efi0 at mainbus0: UEFI 2.7 >>efi0: EDK2 rev 0x10000 >>smbios0 at efi0: SMBIOS 3.3.0 >>smbios0: vendor EDK2 version "EDK2-DEV" date 04/29/2023 >>smbios0: FriendlyElec NanoPi-R5S >>scmi0 at mainbus0: SCMI 2.0 >>agintc0 at mainbus0 mbi shift 4:4 nirq 352 nredist 4: >>"interrupt-controller" >>agintcmsi0 at agintc0: can't map registers >>syscon0 at mainbus0: "syscon" >>"io-domains" at syscon0 not configured >>syscon1 at mainbus0: "syscon" >>syscon2 at mainbus0: "syscon" >>syscon3 at mainbus0: "syscon" >>syscon4 at mainbus0: "syscon" >>syscon5 at mainbus0: "syscon" >>syscon6 at mainbus0: "syscon" >>rkclock0 at mainbus0: PMUCRU >>rkclock1 at mainbus0: CRU >>syscon7 at mainbus0: "power-management" >>"power-controller" at syscon7 not configured >>syscon8 at mainbus0: "qos" >>syscon9 at mainbus0: "qos" >>syscon10 at mainbus0: "qos" >>syscon11 at mainbus0: "qos" >>syscon12 at mainbus0: "qos" >>syscon13 at mainbus0: "qos" >>syscon14 at mainbus0: "qos" >>syscon15 at mainbus0: "qos" >>syscon16 at mainbus0: "qos" >>syscon17 at mainbus0: "qos" >>syscon18 at mainbus0: "qos" >>syscon19 at mainbus0: "qos" >>syscon20 at mainbus0: "qos" >>syscon21 at mainbus0: "qos" >>syscon22 at mainbus0: "qos" >>syscon23 at mainbus0: "qos" >>syscon24 at mainbus0: "qos" >>syscon25 at mainbus0: "qos" >>syscon26 at mainbus0: "qos" >>syscon27 at mainbus0: "qos" >>syscon28 at mainbus0: "qos" >>syscon29 at mainbus0: "qos" >>syscon30 at mainbus0: "qos" >>syscon31 at mainbus0: "qos" >>rkcomphy0 at mainbus0 >>rkcomphy1 at mainbus0 >>rkpinctrl0 at mainbus0: "pinctrl" >>rkgpio0 at rkpinctrl0 >>rkgpio1 at rkpinctrl0 >>rkgpio2 at rkpinctrl0 >>rkgpio3 at rkpinctrl0 >>rkgpio4 at rkpinctrl0 >>syscon32 at mainbus0: "syscon" >>syscon33 at mainbus0: "qos" >>syscon34 at mainbus0: "qos" >>syscon35 at mainbus0: "qos" >>syscon36 at mainbus0: "syscon" >>rkpciephy0 at mainbus0 >>rkcomphy2 at mainbus0 >>"fit-images" at mainbus0 not configured >>"opp-table-0" at mainbus0 not configured >>"display-subsystem" at mainbus0 not configured >>"firmware" at mainbus0 not configured >>"opp-table-1" at mainbus0 not configured >>"pmu" at mainbus0 not configured >>agtimer0 at mainbus0: 24000 kHz >>"xin24m" at mainbus0 not configured >>"xin32k" at mainbus0 not configured >>"sram" at mainbus0 not configured >>xhci0 at mainbus0, xHCI 1.10 >>usb0 at xhci0: USB revision 3.0 >>uhub0 at usb0 configuration 1 interface 0 "Generic xHCI root hub" rev >>3.00/1.00 addr 1 >>xhci1 at mainbus0, xHCI 1.10 >>usb1 at xhci1: USB revision 3.0 >>uhub1 at usb1 configuration 1 interface 0 "Generic xHCI root hub" rev >>3.00/1.00 addr 1 >>ehci0 at mainbus0 >>usb2 at ehci0: USB revision 2.0 >>uhub2 at usb2 configuration 1 interface 0 "Generic EHCI root hub" rev >>2.00/1.00 addr 1 >>ohci0 at mainbus0: version 1.0 >>ehci1 at mainbus0 >>usb3 at ehci1: USB revision 2.0 >>uhub3 at usb3 configuration 1 interface 0 "Generic EHCI root hub" rev >>2.00/1.00 addr 1 >>ohci1 at mainbus0: version 1.0 >>rkiic0 at mainbus0 >>iic0 at rkiic0 >>"tcs,tcs4525" at iic0 addr 0x1c not configured >>rkpmic0 at iic0 addr 0x20: RK809 >>com0 at mainbus0: dw16550, 64 byte fifo >>"gpu" at mainbus0 not configured >>dwpcie0 at mainbus0 >>dwmmc0 at mainbus0: 50 MHz base clock >>sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma >>"mmc" at mainbus0 not configured >>"otp" at mainbus0 not configured >>"dma-controller" at mainbus0 not configured >>"dma-controller" at mainbus0 not configured >>rkiic1 at mainbus0 >>iic1 at rkiic1 >>pcxrtc0 at iic1 addr 0x51pcxrtc0: pcxrtc_reg_read: failed to read reg0 >>: battery low >>"watchdog" at mainbus0 not configured >>com1 at mainbus0: dw16550, 64 byte fifo >>com1: console >>"tsadc" at mainbus0 not configured >>"saradc" at mainbus0 not configured >>"usb2phy" at mainbus0 not configured >>"usb2phy" at mainbus0 not configured >>dwpcie1 at mainbus0 >>dwpcie2 at mainbus0 >>dwqe0 at mainbus0: rev 0x00, address 91:ae:53:f2:fc:5f >>rgephy0 at dwqe0 phy 1: RTL8169S/8110S/8211 PHY, rev. 6 >>"gpio-leds" at mainbus0 not configured >>"vdd-usbc" at mainbus0 not configured >>"vcc3v3-sys" at mainbus0 not configured >>"vcc3v3-sysp" at mainbus0 not configured >>"vcc5v0-sysp" at mainbus0 not configured >>"vcc5v0-host-regulator" at mainbus0 not configured >>"pcie30-avdd0v9" at mainbus0 not configured >>"pcie30-avdd1v8" at mainbus0 not configured >>"gpio-regulator" at mainbus0 not configured >>usb4 at ohci0: USB revision 1.0 >>uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev >>1.00/1.00 addr 1 >>usb5 at ohci1: USB revision 1.0 >>uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev >>1.00/1.00 addr 1 >>pci0 at dwpcie0 >>ppb0 at pci0 dev 0 function 0 "Rockchip RK3566" rev 0x00 >>pci1 at ppb0 bus 1 >>rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x05: msi, address >>00:00:00:00:00:00 >>pci2 at dwpcie1 >>ppb1 at pci2 dev 0 function 0 "Rockchip RK3566" rev 0x00 >>pci3 at ppb1 bus 1 >>rge1 at pci3 dev 0 function 0 "Realtek RTL8125" rev 0x05: msi, address >>00:00:00:00:00:00 >>dwpcie2: can't initialize hardware >>scsibus0 at sdmmc0: 2 targets, initiator 0 >>sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SD, 0002> removable >>sd0: 120580MB, 512 bytes/sector, 246947840 sectors >>umass0 at uhub0 port 1 configuration 1 interface 0 "Generic Mass >>Storage" rev 2.00/1.04 addr 2 >>umass0: using SCSI over Bulk-Only >>scsibus1 at umass0: 2 targets, initiator 0 >>sd1 at scsibus1 targ 1 lun 0: <Generic, Flash Disk, 8.07> removable >>sd1: 3900MB, 512 bytes/sector, 7987200 sectors >>softraid0 at root >>scsibus2 at softraid0: 256 targets >>root on rd0a swap on rd0b dump on rd0b >>WARNING: bad clock chip time >>WARNING: CHECK AND RESET THE DATE! >>rkclock_get_frequency: 0x0000000a >>cpu0: clock not implemented >>erase ^?, werase ^W, kill ^U, intr ^C, status ^T >> >>On 4/30/23 20:44, Nenhum_de_Nos wrote: >>>>> Hi Matheus, >>>>> >>>>> Can you double check that you're saving the UEFI settings after >>setting >>>>> "ACPI + DTB"? You need to hit F10 for the changes to stick. >>>>> >>>>> I just downloaded and wrote the latest version of the bootloader, >>forgot >>>>> to save after setting, and never got network devices during boot. >>>>> >>>>> I just want to make sure that you aren't running into this. >>>>> >>>>> Cheers! >>>> I got curious to know. Once I pass the install process, I use one >>USB nic >>>> and its fine, where the OpenBSD stores this device tree for future >>boot? I >>>> get to install, I imagine that if I can find it I can fix it pass >>install >>>> and never make them all appear in the final system, which is fine >>for me. >>>> >>>> Thanks, >>>> >>>> Matheus >>> I get to boot, but no ethernet from it. Here the dmesg, should it >>help: >>> I use the EFI image for it I got on personalbsd as for the April 23 >>build. >>> The April 29 build I cannot get it to boot (stuck in the first kernel >>load >>> line and keeps there forever. Tried to set serial stty and no way it >>got >>> to boot. It gets to: >>> >>>>> OpenBSD/arm64 BOOTAA64 1.16 >>> boot> >>> booting sd0a:/bsd: 10393424+2487312+294968+835560 >>> [784339+91+1207920+723881]=0x1 >>> 1ab578 >>> I/TC: Secondary CPU 1 initializing >>> I/TC: Secondary CPU 1 switching to normal world boot >>> I/TC: Secondary CPU 2 initializing >>> I/TC: Secondary CPU 2 switching to normal world boot >>> I/TC: Secondary CPU 3 initializing >>> I/TC: Secondary CPU 3 switching to normal world boot >>> >>> And halts). >>> >>> OpenBSD 7.3 (GENERIC.MP) #2080: Sat Mar 25 14:20:25 MDT 2023 >>> >>dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP >>> real mem = 3984670720 (3800MB) >>> avail mem = 3785691136 (3610MB) >>> random: good seed from bootblocks >>> mainbus0 at root: ACPI >>> psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND >>> cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0 >>> cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 >>D-cache >>> cpu0: 512KB 64b/line 16-way L2 cache >>> cpu0: >>> >>DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS >>> cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0 >>> cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 >>D-cache >>> cpu1: 512KB 64b/line 16-way L2 cache >>> cpu1: >>> >>DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS >>> cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0 >>> cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 >>D-cache >>> cpu2: 512KB 64b/line 16-way L2 cache >>> cpu2: >>> >>DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS >>> cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0 >>> cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 >>D-cache >>> cpu3: 512KB 64b/line 16-way L2 cache >>> cpu3: >>> >>DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS >>> efi0 at mainbus0: UEFI 2.7 >>> efi0: EDK2 rev 0x10000 >>> smbios0 at efi0: SMBIOS 3.3.0 >>> smbios0: vendor EDK2 version "EDK2-DEV" date 04/16/2023 >>> smbios0: FriendlyElec NanoPi-R5S >>> apm0 at mainbus0 >>> agintc0 at mainbus0 shift 4:4 nirq 352 nredist 4 ipi: 0, 1, 2: >>> "interrupt-controller" >>> ampintcmsi0 at agintc0: nspi 24 >>> agtimer0 at mainbus0: 24000 kHz >>> acpi0 at mainbus0: ACPI 6.0 >>> acpi0: sleep states >>> acpi0: tables DSDT FACP DBG2 GTDT APIC MCFG SPCR >>> acpi0: wakeup devices >>> acpimcfg0 at acpi0 >>> acpimcfg0: addr 0x380008000, bus 1-1 >>> "ACPI0007" at acpi0 not configured >>> "ACPI0007" at acpi0 not configured >>> "ACPI0007" at acpi0 not configured >>> "ACPI0007" at acpi0 not configured >>> com0 at acpi0 COM0 addr 0xfe660000/0x1000 irq 150: ns16550, no >>working fifo >>> com0: console >>> ohci0 at acpi0 OHC0 addr 0xfd840000/0x40000 irq 163: version 1.0 >>> ehci0 at acpi0 EHC0 addr 0xfd800000/0x40000 irq 162 >>> usb0 at ehci0: USB revision 2.0 >>> uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev >>> 2.00/1.00 addr 1 >>> ohci1 at acpi0 OHC1 addr 0xfd8c0000/0x40000 irq 166: version 1.0 >>> ehci1 at acpi0 EHC1 addr 0xfd880000/0x40000 irq 165 >>> usb1 at ehci1: USB revision 2.0 >>> uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev >>> 2.00/1.00 addr 1 >>> xhci0 at acpi0 XHC0 addr 0xfcc00000/0x400000 irq 201, xHCI 1.10 >>> usb2 at xhci0: USB revision 3.0 >>> uhub2 at usb2 configuration 1 interface 0 "Generic xHCI root hub" rev >>> 3.00/1.00 addr 1 >>> xhci1 at acpi0 XHC1 addr 0xfd000000/0x400000 irq 202, xHCI 1.10 >>> usb3 at xhci1: USB revision 3.0 >>> uhub3 at usb3 configuration 1 interface 0 "Generic xHCI root hub" rev >>> 3.00/1.00 addr 1 >>> "PRP0001" at acpi0 not configured >>> "PRP0001" at acpi0 not configured >>> "RKCP0D40" at acpi0 not configured >>> acpipci0 at acpi0 PCI0 >>> pci0 at acpipci0 >>> nvme0 at pci0 dev 0 function 0 vendor "SanDisk", unknown product >>0x5009 >>> rev 0x01: msix, NVMe 1.4 >>> nvme0: WDC WDS100T2B0C-00PXH0, firmware 211210WD, serial 211689450612 >>> scsibus0 at nvme0: 2 targets, initiator 0 >>> sd0 at scsibus0 targ 1 lun 0: <NVMe, WDC WDS100T2B0C-, 2112> >>> sd0: 953869MB, 512 bytes/sector, 1953525168 sectors >>> acpitz0 at acpi0: critical temperature is 115 degC >>> acpitz1 at acpi0: critical temperature is 115 degC >>> usb4 at ohci0: USB revision 1.0 >>> uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev >>> 1.00/1.00 addr 1 >>> usb5 at ohci1: USB revision 1.0 >>> uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev >>> 1.00/1.00 addr 1 >>> simplefb0 at mainbus0: 1920x1080, 32bpp >>> wsdisplay0 at simplefb0 mux 1 >>> wsdisplay0: screen 0-5 added (std, vt100 emulation) >>> axen0 at uhub3 port 2 configuration 1 interface 0 "ASIX Elec. Corp. >>> AX88179" rev 3.00/1.00 addr 2 >>> axen0: AX88179, address 2c:53:4a:xx:xx:xx >>> rgephy0 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5 >>> vscsi0 at root >>> scsibus1 at vscsi0: 256 targets >>> softraid0 at root >>> scsibus2 at softraid0: 256 targets >>> root on sd0a (31b631ff87307a65.a) swap on sd0b dump on sd0b >>> >>> >>> >>>>> On April 25, 2023 7:04:15 PM MDT, Nenhum_de_Nos <lo...@arroway.org> >>>>> wrote: >>>>>>> I just tested with the NANOPI-R5S_EFI.img on the personalbsd.org >>and >>>>>>> it >>>>>>> definitely works. >>>>>> Hi, good to know. >>>>>> >>>>>>> Did you make sure to copy the rk3568-nanopi-r5s.dtb into the >>vendor/ >>>>>>> folder on the miniroot73.img USB drive? >>>>>> I used the install73.img, and after dd'ing it to the USB drive I >>did >>>>>> create the vendor folder to the FAT volume labeled BOOT. The >>>>>> installation >>>>>> couldn't find the sets on the usb drive, I got it to install using >>a >>>>>> separate usb ethernet and http for the sets. >>>>>> >>>>>> After reading this I tried using miniroot73.img as well. Same >>result. No >>>>>> ethernet at all. >>>>>> >>>>>>> You may also need to set "AHCI + DTB" under device configuration >>in >>>>>>> the >>>>>>> UEFI config on boot (hit ESC at the prompt). That should allow it >>to >>>>>>> use >>>>>>> the dtb file. >>>>>> After reading here I changed, but nothing new. >>>>>> >>>>>>> Let me know if you still run into issues after that. >>>>>>> >>>>>>> Cheers! >>>>>> Thanks, >>>>>> >>>>>> matheus >>>>>> >>>>>>> On 4/24/23 20:48, Nenhum_de_Nos wrote: >>>>>>>>> You will need UART. I never soldered a header on the TX/RX/GND >>-- >>>>>>>>> just >>>>>>>>> placing a header in the holes seems to do the trick. >>>>>>>>> >>>>>>>>> dwqe0 works and rge0 works. I get watchdog timeouts with rge1 >>>>>>>>> though, >>>>>>>>> but I haven't troubleshot that. Also, the MAC address on rge0 >>is >>>>>>>>> null >>>>>>>>> by >>>>>>>>> default, so you have to set that before it will function. But I >>can >>>>>>>>> confirm both of these NICs work. >>>>>>>> Hi Andrew, >>>>>>>> >>>>>>>> there must be something I am not doing, doing it wrong. I got it >>>>>>>> installed, but I see no network interfaces at all, only the USB >>I >>>>>>>> placed >>>>>>>> there. >>>>>>>> >>>>>>>> Can you send me the diff you told in the first email? I used the >>img >>>>>>>> NANOPI-R5S_EFI.img on the sdcard and I can boot OpenBSD fine, >>just no >>>>>>>> network interfaces. >>>>>>>> >>>>>>>> Thanks for the help, >>>>>>>> >>>>>>>> matheus >>>>>>>> >>>>>>>>> On 4/24/23 04:09, Nenhum_de_Nos wrote: >>>>>>>>>>> So I managed to get it booting. There's an open issue here >>that >>>>>>>>>>> discusses having NanoPi R5S support added to the >>>>>>>>>>> >>bootloader:ÃÆÃÆâÃâ¬ÃÅ¡ÃÆÃâÃâà>>https://github.com/jaredmcneill/quartz64_uefi/issues/40. >>>>>>>>>>> >>>>>>>>>>> I built the EFI image myself from >>>>>>>>>>> https://github.com/S199pWa1k9r/quartz64_uefi/tree/nanopi-r5s >>repo >>>>>>>>>>> though. If you go that route, there are some modifications >>you >>>>>>>>>>> need >>>>>>>>>>> to >>>>>>>>>>> make to get it compiling for the NanoPi R5S (email me for a >>diff >>>>>>>>>>> if >>>>>>>>>>> you >>>>>>>>>>> need). However, the developer also has a pre-built >>>>>>>>>>> NANOPI-R5S_EFI.img >>>>>>>>>>> image available here: >>>>>>>>>>> https://personalbsd.org/download/UEFI-RK356x/. >>>>>>>>>>> I >>>>>>>>>>> haven't tried that one, but it's reported to work. >>>>>>>>>>> >>>>>>>>>>> I wrote the OpenBSD arm64 miniroot73.img file to a USB drive, >>and >>>>>>>>>>> then >>>>>>>>>>> copied the rk3568-nanopi-r5s.dtb file under the vendors/ >>directory >>>>>>>>>>> (as >>>>>>>>>>> the INSTALL.arm64 guide says). The NanoPi boots the >>bootloader >>>>>>>>>>> stored >>>>>>>>>>> on >>>>>>>>>>> the microSD card, and then boots the OpenBSD USB drive. >>>>>>>>>>> >>>>>>>>>>> Make sure to use 115200 as your baud rate when accessing UART >>>>>>>>>>> though.ÃÆÃÆâÃâ¬ÃÅ¡ÃÆÃâÃâàI >>>>>>>>>>> kept using 1500000 (the default according to FriendlyElec >>docs), >>>>>>>>>>> and >>>>>>>>>>> was >>>>>>>>>>> not getting any output. >>>>>>>>>>> >>>>>>>>>>> Cheers! >>>>>>>>>> Hi Andrew, >>>>>>>>>> >>>>>>>>>> thanks for the information. Mine just arrived and I will now >>try >>>>>>>>>> it. >>>>>>>>>> Do >>>>>>>>>> all the networks interfaces work on OpenBSD 7.3? I need serial >>>>>>>>>> console >>>>>>>>>> for >>>>>>>>>> installation right? >>>>>>>>>> >>>>>>>>>> Will begin to work on the serial installation today. >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> >>>>>>>>>> matheus >>>>>>>>>> >>>>>>>>>>> On 4/17/23 02:01, Matheus wrote: >>>>>>>>>>>> On April 17, 2023 8:26:29 AM GMT+02:00, David Gwynne >>>>>>>>>>>> <da...@gwynne.id.au> wrote: >>>>>>>>>>>>> On Sat, Apr 15, 2023 at 08:14:10AM -0600, Andrew Klaus >>wrote: >>>>>>>>>>>>>> I'm trying to figure out as well. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I built u-boot from the official R5S build guide: >>>>>>>>>>>>>> >>>>>>>>>>>>> >>http://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S#Build_u-boot_only >>>>>>>>>>>>>> I placed the resulting rk3568-nanopi5.dtb file into the >>vendor/ >>>>>>>>>>>>> folder, >>>>>>>>>>>>>> after writing the miniroot73.img to the disk. This wasn't >>>>>>>>>>>>>> enough >>>>>>>>>>>>>> to >>>>>>>>>>>>> boot >>>>>>>>>>>>>> alone, so I followed the other part of the INSTALL.arm64 >>guide >>>>>>>>>>>>>> by >>>>>>>>>>>>> writing >>>>>>>>>>>>>> idbloader.img and uboot.itb to the SD card. I still can't >>get >>>>>>>>>>>>>> to >>>>>>>>>>>>>> the >>>>>>>>>>>>> OpenBSD >>>>>>>>>>>>>> bootloader. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I used a UART connection and saw that it does some >>>>>>>>>>>>>> initialization >>>>>>>>>>>>> (see >>>>>>>>>>>>>> below), but doesn't get to u-boot. >>>>>>>>>>>>> The rockchip and vendor u-boots do not provide EFI support, >>and >>>>>>>>>>>>> OpenBSD >>>>>>>>>>>>> relies on an EFI capable boot environment for the >>BOOTAA64.EFI >>>>>>>>>>>>> loader >>>>>>>>>>>>> to >>>>>>>>>>>>> function. Another (simplistic) way to look at it is that >>u-boot >>>>>>>>>>>>> does not support OpenBSD disklabels and filesystems, so it >>can't >>>>>>>>>>>>> read and load the kernel. The openbsd boot loader does >>>>>>>>>>>>> understand >>>>>>>>>>>>> openbsd disks, and uses EFI services to read and load the >>>>>>>>>>>>> kernel. >>>>>>>>>>>>> >>>>>>>>>>>>> mainline u-boot has almost got enough rk3568 support that >>it can >>>>>>>>>>>>> be used on these systems. You could say the same about >>>>>>>>>>>>> https://github.com/jaredmcneill/quartz64_uefi. In both >>cases >>>>>>>>>>>>> they >>>>>>>>>>>>> need >>>>>>>>>>>>> config added to support the nanopi r5s specifically. >>>>>>>>>>>>> >>>>>>>>>>>>> Once you do have a working boot environment, you'll need to >>>>>>>>>>>>> prepare >>>>>>>>>>>>> media to install with. That's still very DIY, especially >>>>>>>>>>>>> compared >>>>>>>>>>>>> to >>>>>>>>>>>>> systems where OpenBSD support is more mature. OpenBSD >>itself is >>>>>>>>>>>>> still rough on these devices. It might work fine, but I >>also >>>>>>>>>>>>> wouldn't >>>>>>>>>>>>> be surprised if you have trouble. >>>>>>>>>>>>> >>>>>>>>>>>>> If you want some dmesg pr0n, this is the best I can do. My >>>>>>>>>>>>> nanopi >>>>>>>>>>>>> isn't plugged in at the moment, so this is from a while >>ago. >>>>>>>>>>>>> >>>>>>>>>>>>> OpenBSD 7.3-current (GENERIC.MP) #169: Wed Mar 29 16:35:40 >>AEST >>>>>>>>>>>>> 2023 >>>>>>>>>>>>> >>d...@o1000.eait.uq.edu.au:/home/dlg/src/sys/arch/arm64/compile/GENERIC.MP >>>>>>>>>>>>> real mem = 2143797248 (2044MB) >>>>>>>>>>>>> avail mem = 2043351040 (1948MB) >>>>>>>>>>>>> random: good seed from bootblocks >>>>>>>>>>>>> mainbus0 at root: FriendlyElec NanoPi R5S >>>>>>>>>>>> Hi David, >>>>>>>>>>>> >>>>>>>>>>>> I see here the R5S name. >>>>>>>>>>>> >>>>>>>>>>>>> rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x05: >>msi, >>>>>>>>>>>>> address >>>>>>>>>>>>> 00:00:00:00:00:00 >>>>>>>>>>>>> pci2 at dwpcie1 >>>>>>>>>>>>> ppb1 at pci2 dev 0 function 0 "Rockchip RK3566" rev 0x00 >>>>>>>>>>>>> pci3 at ppb1 bus 1 >>>>>>>>>>>>> rge1 at pci3 dev 0 function 0 "Realtek RTL8125" rev 0x05: >>msi, >>>>>>>>>>>>> address >>>>>>>>>>>>> 00:00:00:00:00:00 >>>>>>>>>>>>> dwpcie2: can't initialize hardware >>>>>>>>>>>>> scsibus0 at sdmmc0: 2 targets, initiator 0 >>>>>>>>>>>>> sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SC16G, 0080> >>removable >>>>>>>>>>>>> sd0: 15193MB, 512 bytes/sector, 31116288 sectors >>>>>>>>>>>>> ure0 at uhub1 port 2 configuration 1 interface 0 "Realtek >>USB >>>>>>>>>>>>> 10/100/1G/2.5G LAN" rev 3.20/31.00 addr 2 >>>>>>>>>>>>> ure0: RTL8156B (0x7410), address a0:ce:c8:f7:94:72 >>>>>>>>>>>>> uhub4: device problem, disabling port 1 >>>>>>>>>>>>> vscsi0 at root >>>>>>>>>>>>> scsibus1 at vscsi0: 256 targets >>>>>>>>>>>>> softraid0 at root >>>>>>>>>>>>> scsibus2 at softraid0: 256 targets >>>>>>>>>>>>> root on sd0a (cfa631a8cbbccf24.a) swap on sd0b dump on sd0b >>>>>>>>>>>>> rkdrm0: no display interface ports configured >>>>>>>>>>>> And the ethernet devices show as two as gigabit and one as >>>>>>>>>>>> 2.5Gbps. >>>>>>>>>>>> Is >>>>>>>>>>>> this R5S a regular one? >>>>>>>>>>>> >>>>>>>>>>>> Thanks, >>>>>>>>>>>> >>>>>>>>>>>> Matheus >>>>>>>>>>>> --- >>>>>>>>>>>> "We will call you Cygnus, >>>>>>>>>>>> the God of balance you shall be." >>>>>>>>>>>> >>>>>>> >>>>>> >>>> >>>> >>> > > --- > "We will call you Cygnus, > the God of balance you shall be." > >