> On 3. Aug 2024, at 16:23, Mark Kettenis <mark.kette...@xs4all.nl> wrote: > > Two issues: > > 1. You're using serial console rate of 1500000 baud. But the U-Boot > from OpenBSD packages uses 115200 (because 1500000 isn't supported > by many USB serial dongles and often unreliable with the ones that > do support it).
That did help a lot! With the mismatching U-Boot versions the kernel got stuck at: ohci0 at mainbus0 > 2. You still have the first bootloader stages (DRAM initialization and > U-Boot SPL) from the vendor firmware in SPI flash or on eMMC. > Those will be incompatible with the U-Boot from OpenBSD packages > and OpenBSD's kernel. I don't think the NanoPi R6S has SPI flash, > so it must be the eMMC that's the problem. I found this page to be somewhat insightful: https://opensource.rock-chips.com/index.php?title=Boot_option&oldid=2187 Erased the first 16 MiB of the eMMC by flashing a file filled with zeros: $ upgrade_tool db MiniLoaderAll.bin # (source: FriendlyElec) $ upgrade_tool wl 0 zero ("upgrade_tool el 0 32768" for some reason didn’t seem to do anything, albeit reporting success.) Looks much better now, thank you! Attached is a successful boot of miniroot75-current (with U-Boot injected, see above) from SD. I copied the image 1:1 to the eMMC (upgrade_tool wl 0) and it booted as well. Then I tried with install75 (release) on eMMC and also that booted fine. In the end, installation to SD went flawlessly. DDR 9fffbe1e78 cym 24/02/04-10:09:20,fwver: v1.16 LPDDR4X, 2112MHz channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB Manufacturer ID:0x1 CH0 RX Vref:26.3%, TX Vref:19.8%,20.8% CH1 RX Vref:26.7%, TX Vref:20.8%,20.8% CH2 RX Vref:27.5%, TX Vref:20.8%,19.8% CH3 RX Vref:27.5%, TX Vref:21.8%,21.8% change to F1: 528MHz change to F2: 1068MHz change to F3: 1560MHz change to F0: 2112MHz out U-Boot SPL 2024.04 (Jul 31 2024 - 20:10:43 -0600) Trying to boot from MMC1 ## Checking hash(es) for config config-1 ... OK ## Checking hash(es) for Image atf-1 ... sha256+ OK ## Checking hash(es) for Image u-boot ... sha256+ OK ## Checking hash(es) for Image fdt-1 ... sha256+ OK ## Checking hash(es) for Image atf-2 ... sha256+ OK ## Checking hash(es) for Image atf-3 ... sha256+ OK INFO: Preloader serial: 2 NOTICE: BL31: v2.3():v2.3-682-g4ca8a8422:derrick.huang, fwver: v1.45 NOTICE: BL31: Built : 10:11:21, Dec 27 2023 INFO: spec: 0x13 INFO: code: 0x88 INFO: ext 32k is valid INFO: ddr: stride-en 4CH INFO: GICv3 without legacy support detected. INFO: ARM GICv3 driver initialized in EL3 INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0 INFO: l3 cache partition cfg-0 INFO: system boots from cpu-hwid-0 INFO: disable memory repair INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001 INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz INFO: BL31: Initialising Exception Handling Framework INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0xa00000 INFO: SPSR = 0x3c9 U-Boot 2024.04 (Jul 31 2024 - 20:10:43 -0600) Model: FriendlyElec NanoPi R6S DRAM: 8 GiB (effective 7.7 GiB) Core: 328 devices, 27 uclasses, devicetree: separate MMC: mmc@fe2c0000: 0, mmc@fe2e0000: 1 Loading Environment from nowhere... OK In: serial@feb50000 Out: serial@feb50000 Err: serial@feb50000 Model: FriendlyElec NanoPi R6S Net: eth0: ethernet@fe1c0000 Hit any key to stop autoboot: 210 Scanning for bootflows in all bootdevs Seq Method State Uclass Part Name Filename --- ----------- ------ -------- ---- ------------------------ ---------------- Scanning global bootmeth 'efi_mgr': No EFI system partition No EFI system partition Failed to persist EFI variables No EFI system partition Failed to persist EFI variables No EFI system partition Failed to persist EFI variables No EFI system partition Failed to persist EFI variables No EFI system partition Failed to persist EFI variables 0 efi_mgr ready (none) 0 <NULL> ** Booting bootflow '<NULL>' with efi_mgr Booting: mmc 0 disks: sd0* sd1 >> OpenBSD/arm64 BOOTAA64 1.20 boot> cannot open sd0a:/etc/random.seed: No such file or directory booting sd0a:/bsd Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2024 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.5-current (RAMDISK) #133: Thu Aug 1 15:20:37 MDT 2024 dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK real mem = 8317706240 (7932MB) avail mem = 7976226816 (7606MB) random: boothowto does not indicate good seed mainbus0 at root: FriendlyElec NanoPi R6S psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND efi0 at mainbus0: UEFI 2.10 efi0: Das U-Boot rev 0x20240400 smbios0 at efi0: SMBIOS 3.7.0 smbios0: vendor U-Boot version "2024.04" date 04/01/2024 smbios0: friendlyarm FriendlyElec NanoPi R6S 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: 128KB 64b/line 4-way L2 cache cpu0: 4096KB 64b/line 16-way L3 cache cpu0: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,AdvSIMD+HP,FP+HP,SSBS "optee" at mainbus0 not configured scmi0 at mainbus0: SCMI 2.0 "gap2" at mainbus0 not configured "gap1" at mainbus0 not configured syscon0 at mainbus0: "syscon" syscon1 at mainbus0: "syscon" syscon2 at mainbus0: "syscon" syscon3 at mainbus0: "syscon" syscon4 at mainbus0: "syscon" syscon5 at mainbus0: "syscon" syscon6 at mainbus0: "syscon" syscon7 at mainbus0: "syscon" rkusbphy0 at syscon7: phy 2 syscon8 at mainbus0: "syscon" syscon9 at mainbus0: "syscon" rkclock0 at mainbus0 CRU_GATE_CON20: 0x0000aa05 CRU_GATE_CON21: 0x000000a0 CRU_GATE_CON22: 0x00000263 CRU_GATE_CON23: 0x0000aa05 CRU_GATE_CON24: 0x000000a0 CRU_GATE_CON25: 0x00000263 syscon10 at mainbus0: "power-management" "power-controller" at syscon10 not configured 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" syscon32 at mainbus0: "qos" syscon33 at mainbus0: "qos" syscon34 at mainbus0: "qos" syscon35 at mainbus0: "qos" syscon36 at mainbus0: "qos" syscon37 at mainbus0: "qos" syscon38 at mainbus0: "qos" syscon39 at mainbus0: "qos" syscon40 at mainbus0: "qos" syscon41 at mainbus0: "qos" syscon42 at mainbus0: "qos" syscon43 at mainbus0: "qos" syscon44 at mainbus0: "qos" syscon45 at mainbus0: "qos" syscon46 at mainbus0: "qos" syscon47 at mainbus0: "qos" syscon48 at mainbus0: "qos" syscon49 at mainbus0: "qos" syscon50 at mainbus0: "qos" syscon51 at mainbus0: "qos" syscon52 at mainbus0: "qos" syscon53 at mainbus0: "qos" syscon54 at mainbus0: "qos" syscon55 at mainbus0: "qos" syscon56 at mainbus0: "qos" syscon57 at mainbus0: "qos" syscon58 at mainbus0: "qos" agintc0 at mainbus0 mbi shift 4:4 nirq 512 nredist 8: "interrupt-controller" agintcmsi0 at agintc0 agintcmsi1 at agintc0 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 syscon59 at mainbus0: "syscon" syscon60 at mainbus0: "syscon" syscon61 at mainbus0: "syscon" syscon62 at mainbus0: "syscon" "fit-images" at mainbus0 not configured "firmware" at mainbus0 not configured "pmu-a55" at mainbus0 not configured "pmu-a76" at mainbus0 not configured "clock-0" at mainbus0 not configured "display-subsystem" at mainbus0 not configured agtimer0 at mainbus0: 24000 kHz "clock-1" at mainbus0 not configured "clock-2" at mainbus0 not configured "sram" at mainbus0 not configured ehci0 at mainbus0 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 ohci0 at mainbus0: version 1.0 "sram" at mainbus0 not configured rkiic0 at mainbus0 iic0 at rkiic0 "rockchip,rk8602" at iic0 addr 0x42 not configured "rockchip,rk8603" at iic0 addr 0x43 not configured dwpcie0 at mainbus0 dwpcie1 at mainbus0 "dfi" at mainbus0 not configured dwqe0 at mainbus0 gmac 1: rev 0x51, address a2:f7:e7:3d:cb:33 rgephy0 at dwqe0 phy 1: RTL8169S/8110S/8211, rev. 6 dwmmc0 at mainbus0: 49 MHz base clock sdmmc0 at dwmmc0: 4-bit, sd high-speed, dma dwmshc0 at mainbus0 dwmshc0: SDHC 4.20, 200 MHz base clock sdmmc1 at dwmshc0: 8-bit, sd high-speed, mmc high-speed, dma "dma-controller" at mainbus0 not configured "dma-controller" at mainbus0 not configured rkiic1 at mainbus0 iic1 at rkiic1 "rockchip,rk8602" at iic1 addr 0x42 not configured "timer" at mainbus0 not configured "watchdog" at mainbus0 not configured rkspi0 at mainbus0 rkpmic0 at rkspi0: RK806 com0 at mainbus0: dw16550, 64 byte fifo com0: console "tsadc" at mainbus0 not configured "adc" at mainbus0 not configured rkiic2 at mainbus0 iic2 at rkiic2 pcxrtc0 at iic2 addr 0x51: battery ok "efuse" at mainbus0 not configured "dma-controller" at mainbus0 not configured "sram" at mainbus0 not configured "pinctrl" at mainbus0 not configured "video-codec" at mainbus0 not configured "adc-keys" at mainbus0 not configured "gpio-keys" at mainbus0 not configured "leds" at mainbus0 not configured "vcc5v0-sys-regulator" at mainbus0 not configured "vcc-1v1-nldo-s3-regulator" at mainbus0 not configured "vcc-3v3-s0-regulator" at mainbus0 not configured "vcc-3v3-sd-s0-regulator" at mainbus0 not configured "vcc3v3-pcie20-regulator" at mainbus0 not configured "vcc5v0-usb-regulator" at mainbus0 not configured "vcc5v0-usb-otg0-regulator" at mainbus0 not configured "vcc5v0-host-20-regulator" at mainbus0 not configured "binman" at mainbus0 not configured "dmc" at mainbus0 not configured "syscon" at mainbus0 not configured "syscon" at mainbus0 not configured "syscon" at mainbus0 not configured "syscon" at mainbus0 not configured usb1 at ohci0: USB revision 1.0 uhub1 at usb1 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 RK3588" rev 0x00 pci1 at ppb0 bus 49 rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x05: msix, address 00:00:00:00:00:00 pci2 at dwpcie1 ppb1 at pci2 dev 0 function 0 "Rockchip RK3588" rev 0x00 pci3 at ppb1 bus 65 rge1 at pci3 dev 0 function 0 "Realtek RTL8125" rev 0x05: msix, address 00:00:00:00:00:00 scsibus0 at sdmmc0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <Sandisk, SD128, 0085> removable sd0: 121942MB, 512 bytes/sector, 249737216 sectors sdmmc1: can't enable card softraid0 at root scsibus1 at softraid0: 256 targets root on rd0a swap on rd0b dump on rd0b WARNING: CHECK AND RESET THE DATE! erase ^?, werase ^W, kill ^U, intr ^C, status ^T Welcome to the OpenBSD/arm64 7.5 installation program. (I)nstall, (U)pgrade, (A)utoinstall or (S)hell?