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
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.10
efi0: Das U-Boot rev 0x20230400
smbios0 at efi0: SMBIOS 3.0
smbios0: vendor U-Boot version "2023.04-rc4-00199-g496e5a2658-dirty" date 
04/01/2023
smbios0: Unknown Unknown Product
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"
syscon0 at mainbus0: "syscon"
rkiovd0 at syscon0
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
rkusbphy0 at mainbus0: phy 0
rkusbphy1 at mainbus0: phy 1
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
vreg0 at mainbus0: "vdd-usbc-regulator"
vreg1 at mainbus0: "vcc3v3-sys-regulator"
vreg2 at mainbus0: "vcc5v0-sys-regulator"
vreg3 at mainbus0: "vcc3v3-pcie-regulator"
vreg4 at mainbus0: "vcc5v0-usb-regulator"
vreg5 at mainbus0: "vcc5v0-usb-host-regulator"
vreg6 at mainbus0: "vcc5v0-usb-otg-regulator"
vreg7 at mainbus0: "pcie30-avdd0v9-regulator"
vreg8 at mainbus0: "pcie30-avdd1v8-regulator"
"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
simpleaudio0 at mainbus0
"pmu" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"xin24m" at mainbus0 not configured
"xin32k" 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, 0.90 VDC
rkpmic0 at iic0 addr 0x20: RK809
"gpu" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi" 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
"i2s" at mainbus0 not configured
"i2s" 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 0x51: battery ok
"at,24c08" at iic1 addr 0x53 not configured
"watchdog" at mainbus0 not configured
com0 at mainbus0: dw16550, 64 byte fifo
com0: console
rktemp0 at mainbus0
"saradc" at mainbus0 not configured
dwpcie1 at mainbus0
dwpcie2 at mainbus0
dwqe0 at mainbus0: rev 0x00, address 12:11:aa:97:5b:e2
rgephy0 at dwqe0 phy 1: RTL8169S/8110S/8211 PHY, rev. 6
"hdmi-con" at mainbus0 not configured
gpioleds0 at mainbus0: no LEDs
"binman" at mainbus0 not configured
"dmc" at mainbus0 not configured
"nvmem" at mainbus0 not configured
"smbios" 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, 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

Reply via email to