Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Radxa Rock 5B+ w/EDK2, some progress, some problems
Hi,
I finally manned up and attacked the issue of how to get the EDK2
"firmware" into the SPI NOR on my Radxa Rock 5B+ SBC (which uses
the RK3588 SoC).
It turns out that
a) you do evidently not need to erase the SPI NOR flash before
programming the EDK2 firmware (the documentation is
... "unclear" on lots of points having to do with handling of
the SPI NOR and early boot and what goes where; I've posted an
entry to their forum page)
b) I used the single EDK2 file downloaded from
https://github.com/edk2-porting/edk2-rk3588
in the "releases" section for my SBC type, version 1.1.
Status so far trying to use the generic64 kernels from armbsd.org:
NetBSD 10.1 boots up, finds my nVME drive that I want to install
to, finds the ethernet port and an ethernet address, but does not
manage to find the booted-from uSD card, so the installation
cannot proceed. Ref.:
...
[ 1.0000040] sdhc0 at acpi0 (SDC3, RKCP0D40-3): mem 0xfe2e0000-0xfe2effff irq 237
[ 1.0000040] sdhc0: SDHC 4.2, rev 0, 32-bit ADMA2, 200000 kHz, HS SDR50 DDR50 SDR104 HS200 3.0V, re-tuning mode 1, 1024 byte blocks
[ 1.0000040] sdmmc0 at sdhc0 slot 0
...
[ 1.3750063] sdmmc0: couldn't identify card
[ 1.3750063] sdmmc0: no functions
...
Full dmesg attached below.
NetBSD 11.0-daily marked 20251124173355Z runs the boot loader,
loads the kernel, and then there is no more output to the serial
port. Ref.:
\\-__,------,___.
\\ __,---` NetBSD/evbarm efiboot (arm64)
\\ `---,_. Revision 2.15 (Mon Nov 24 17:33:55 UTC 2025)
\\-,_____,.---`
\\
\\
\\
Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.
8842320+3914424+4345836+1739988 [659195+983664+732460]=0x16126f8
(wedge)
I also noticed that in 10.1 there is no rnd device, apparently.
Didn't mlelstv@ post on Oct 6 that he had a self-built UEFI with
that added? Has this been submitted upstream?
The NetBSD-10-aaarch64-20251124171312Z-generic.img.gz also
behaves the same as NetBSD 11.0-daily as above: no serial output
after the kernel is loaded.
And ... if I re-write the uSD card with the
NetBSD-10-aarch64--generic.img image, I now get the same
behaviour with wedge when the kernel is started. I am beginning
to distrust that uSD card... Will get new ones tomorrow.
I also connected a monitor via one of the HDMI ports, and I see
the Radxa logo and the NetBSD boot loader text, but once the
kernel starts the screen is garbled with a slightly-askew static
pattern.
The script from power-on of the board to the wedge of the latter
is also attached below.
So ... "Help!"
Best regards,
- Håvard
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 10.1 (GENERIC64) #0: Mon Dec 16 13:08:11 UTC 2024
[ 1.0000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64
[ 1.0000000] total memory = 32454 MB
[ 1.0000000] avail memory = 31280 MB
[ 1.0000000] entropy: ready
[ 1.0000000] armfdt0 (root)
[ 1.0000000] armfdt0: using EFI runtime services for RTC
[ 1.0000000] simplebus0 at armfdt0: Radxa ROCK 5 Model B Plus
[ 1.0000000] simplebus1 at simplebus0
[ 1.0000000] acpifdt0 at simplebus0
[ 1.0000000] acpifdt0: SMBIOS rev. 3.3.0 @ 0xefe50000
[ 1.0000000] ACPI: RSDP 0x00000000EED9C018 000024 (v02 RKCP )
[ 1.0000000] ACPI: XSDT 0x00000000EED9CF18 000064 (v01 RKCP RK3588 00000000 01000013)
[ 1.0000000] ACPI: FACP 0x00000000EED9CC18 000114 (v06 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: DSDT 0x00000000EE38D018 0036C8 (v02 RKCP RK3588 00000002 INTL 20230628)
[ 1.0000000] ACPI: DBG2 0x00000000EED9CB18 00005C (v00 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: GTDT 0x00000000EED9CD98 000060 (v02 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: APIC 0x00000000EED9C098 0002D4 (v04 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: MCFG 0x00000000EED9C498 00007C (v01 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: PPTT 0x00000000EED9C598 000220 (v01 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: SPCR 0x00000000EED9CE98 000050 (v02 RKCP RK3588 00000000 EDK2 00000000)
[ 1.0000000] ACPI: BGRT 0x00000000EED9C818 000038 (v01 INTEL EDK2 00000002 01000013)
[ 1.0000000] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 1.0000000] acpi0 at acpifdt0: Intel ACPICA 20221020
[ 1.0000000] cpu0 at acpi0: Arm Cortex-A55 r2p0 (v8.2-A+), id 0x0
[ 1.0000000] cpu0: package 0, core 0, smt 0
[ 1.0000000] cpu1 at acpi0: Arm Cortex-A55 r2p0 (v8.2-A+), id 0x100
[ 1.0000000] cpu1: package 0, core 1, smt 0
[ 1.0000000] cpu2 at acpi0: Arm Cortex-A55 r2p0 (v8.2-A+), id 0x200
[ 1.0000000] cpu2: package 0, core 2, smt 0
[ 1.0000000] cpu3 at acpi0: Arm Cortex-A55 r2p0 (v8.2-A+), id 0x300
[ 1.0000000] cpu3: package 0, core 3, smt 0
[ 1.0000000] cpu4 at acpi0: Arm Cortex-A76 r4p0 (v8.2-A+), id 0x400
[ 1.0000000] cpu4: package 0, core 4, smt 0
[ 1.0000000] cpu5 at acpi0: Arm Cortex-A76 r4p0 (v8.2-A+), id 0x500
[ 1.0000000] cpu5: package 0, core 5, smt 0
[ 1.0000000] cpu6 at acpi0: Arm Cortex-A76 r4p0 (v8.2-A+), id 0x600
[ 1.0000000] cpu6: package 0, core 6, smt 0
[ 1.0000000] cpu7 at acpi0: Arm Cortex-A76 r4p0 (v8.2-A+), id 0x700
[ 1.0000000] cpu7: package 0, core 7, smt 0
[ 1.0000000] gicvthree0 at acpi0: GICv3
[ 1.0000000] gtmr0 at acpi0: irq 27
[ 1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
[ 1.0000040] SCMI (PNP0C02) at acpi0 not configured
[ 1.0000040] acpipcd0 at acpi0 (PKG0, ACPI0010-8): Processor Container Device
[ 1.0000040] acpipcd1 at acpi0 (CLU0, ACPI0010-9): Processor Container Device
[ 1.0000040] CPU0 (ACPI0007) at acpi0 not configured
[ 1.0000040] CPU1 (ACPI0007) at acpi0 not configured
[ 1.0000040] CPU2 (ACPI0007) at acpi0 not configured
[ 1.0000040] CPU3 (ACPI0007) at acpi0 not configured
[ 1.0000040] acpipcd2 at acpi0 (CLU1, ACPI0010-10): Processor Container Device
[ 1.0000040] CPU4 (ACPI0007) at acpi0 not configured
[ 1.0000040] CPU5 (ACPI0007) at acpi0 not configured
[ 1.0000040] acpipcd3 at acpi0 (CLU2, ACPI0010-11): Processor Container Device
[ 1.0000040] CPU6 (ACPI0007) at acpi0 not configured
[ 1.0000040] CPU7 (ACPI0007) at acpi0 not configured
[ 1.0000040] acpipchb0 at acpi0 (PCI0, PNP0A08-0): PCI Express Host Bridge
[ 1.0000040] pci0 at acpipchb0 bus 1
[ 1.0000040] acpipchb1 at acpi0 (PCI1, PNP0A08-1): PCI Express Host Bridge
[ 1.0000040] pci1 at acpipchb1 bus 1
[ 1.0000040] nvme0 at pci1 dev 0 function 0: vendor 1d89 product ef25 (rev. 0x01)
[ 1.0000040] nvme0: NVMe 1.4
[ 1.0000040] nvme0: interrupting at irq 287
[ 1.0000040] nvme0: Fanxiang S500Pro 256GB, firmware 21B5311A, serial FXS500Pro252840076
[ 1.0000040] ld4 at nvme0 nsid 1
[ 1.0000040] ld4: 238 GB, 31130 cyl, 255 head, 63 sec, 512 bytes/sect x 500118192 sectors
[ 1.0000040] acpipchb2 at acpi0 (PCI2, PNP0A08-2): PCI Express Host Bridge
[ 1.0000040] pci2 at acpipchb2 bus 1
[ 1.0000040] vendor 10ec product b852 (miscellaneous network) at pci2 dev 0 function 0 not configured
[ 1.0000040] RES0 (AMZN0001) at acpi0 not configured
[ 1.0000040] RES1 (PNP0C02) at acpi0 not configured
[ 1.0000040] acpipchb3 at acpi0 (PCI4, PNP0A08-4): PCI Express Host Bridge
[ 1.0000040] pci3 at acpipchb3 bus 1
[ 1.0000040] rge0 at pci3 dev 0 function 0: vendor 10ec product 8125 (rev. 0x05)
[ 1.0000040] rge0: interrupting at irq 282
[ 1.0000040] rge0: Ethernet address 00:48:54:20:44:21
[ 1.0000040] sdhc0 at acpi0 (SDC3, RKCP0D40-3): mem 0xfe2e0000-0xfe2effff irq 237
[ 1.0000040] sdhc0: SDHC 4.2, rev 0, 32-bit ADMA2, 200000 kHz, HS SDR50 DDR50 SDR104 HS200 3.0V, re-tuning mode 1, 1024 byte blocks
[ 1.0000040] sdmmc0 at sdhc0 slot 0
[ 1.0000040] SDHC (RKCPFE2C) at acpi0 not configured
[ 1.0000040] DMA0 (ARMH0330) at acpi0 not configured
[ 1.0000040] DMA1 (ARMH0330) at acpi0 not configured
[ 1.0000040] DMA2 (ARMH0330) at acpi0 not configured
[ 1.0000040] GPI0 (RKCP3002) at acpi0 not configured
[ 1.0000040] GPI1 (RKCP3002) at acpi0 not configured
[ 1.0000040] GPI2 (RKCP3002) at acpi0 not configured
[ 1.0000040] GPI3 (RKCP3002) at acpi0 not configured
[ 1.0000040] GPI4 (RKCP3002) at acpi0 not configured
[ 1.0000040] PINC (PRP0001) at acpi0 not configured
[ 1.0000040] I2C1 (RKCP3001) at acpi0 not configured
[ 1.0000040] I2C2 (RKCP3001) at acpi0 not configured
[ 1.0000040] I2C3 (RKCP3001) at acpi0 not configured
[ 1.0000040] I2C4 (RKCP3001) at acpi0 not configured
[ 1.0000040] I2C5 (RKCP3001) at acpi0 not configured
[ 1.0000040] I2C6 (RKCP3001) at acpi0 not configured
[ 1.0000040] I2C7 (RKCP3001) at acpi0 not configured
[ 1.0000040] JACK (ESSX8316) at acpi0 not configured
[ 1.0000040] I2C8 (RKCP3001) at acpi0 not configured
[ 1.0000040] com0 at acpi0 (UAR2, HISI0031-2): mem 0xfeb50000-0xfeb50fff irq 365
[ 1.0000040] com: DesignWare APB UART, 64-byte FIFO
[ 1.0000040] com0: console
[ 1.0000040] I2S0 (RKCP3003) at acpi0 not configured
[ 1.0000040] ehci0 at acpi0 (EHC0, RKCP0D20-0): mem 0xfc800000-0xfc83ffff irq 247
[ 1.0000040] ehci0: 1 companion controller, 1 port
[ 1.0000040] ehci0: Using DMA subregion for control data structures
[ 1.0000040] usb0 at ehci0: USB revision 2.0
[ 1.0000040] ehci1 at acpi0 (EHC1, RKCP0D20-1): mem 0xfc880000-0xfc8bffff irq 250
[ 1.0000040] ehci1: 1 companion controller, 1 port
[ 1.0000040] ehci1: Using DMA subregion for control data structures
[ 1.0000040] usb1 at ehci1: USB revision 2.0
[ 1.0000040] ohci0 at acpi0 (OHC0, PRP0001-0): mem 0xfc840000-0xfc87ffff irq 248
[ 1.0000040] ohci0: OHCI version 1.0
[ 1.0000040] usb2 at ohci0: USB revision 1.0
[ 1.0000040] ohci1 at acpi0 (OHC1, PRP0001-1): mem 0xfc8c0000-0xfc8fffff irq 251
[ 1.0000040] ohci1: OHCI version 1.0
[ 1.0000040] usb3 at ohci1: USB revision 1.0
[ 1.0000040] xhci0 at acpi0 (XHC0, PNP0D10-0): mem 0xfc000000-0xfc3fffff irq 252
[ 1.0000040] usb4 at xhci0: USB revision 3.0
[ 1.0000040] usb5 at xhci0: USB revision 2.0
[ 1.0000040] xhci1 at acpi0 (XHC1, PNP0D10-1): mem 0xfc400000-0xfc7fffff irq 253
[ 1.0000040] usb6 at xhci1: USB revision 3.0
[ 1.0000040] usb7 at xhci1: USB revision 2.0
[ 1.0000040] xhci2 at acpi0 (XHC2, PNP0D10-2): mem 0xfcd00000-0xfd0fffff irq 254
[ 1.0000040] usb8 at xhci2: USB revision 3.0
[ 1.0000040] usb9 at xhci2: USB revision 2.0
[ 1.0000040] genfb0 at simplebus1: Simple Framebuffer (640x480 32-bpp @ 0xedf30000)
[ 1.0000040] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
[ 1.2650028] uhub0 at usb4: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.2650028] uhub1 at usb5: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.2650028] uhub2 at usb6: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.2650028] uhub3 at usb7: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.2650028] uhub4 at usb8: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.2650028] uhub5 at usb9: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.2650028] cpu0: PMU interrupting on irq 23
[ 1.2850041] uhub6 at usb3: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[ 1.2850041] uhub7 at usb0: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.2850041] uhub8 at usb2: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[ 1.2850041] uhub9 at usb1: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.3750063] sdmmc0: couldn't identify card
[ 1.3750063] sdmmc0: no functions
[ 2.3550279] uhub10 at uhub7 port 1: vendor 1a40 (0x1a40) USB 2.0 Hub (0x0101), class 9/0, rev 2.00/1.11, addr 2
[ 2.3550279] uhub10: single transaction translator
[ 3.2050470] ubt0 at uhub10 port 3
[ 3.2050470] ubt0: Realtek (0x13d3) Bluetooth Radio (0x3572), rev 1.00/0.00, addr 3
[ 3.2050470] swwdog0: software watchdog initialized
[ 3.2050470] WARNING: 2 errors while detecting hardware; check system log.
[ 3.2050470] boot device: <unknown>
[ 3.2050470] root device:
Script started on Thu Nov 27 00:19:41 2025
# tip rx
connected
À?DDR 9fa84341ce typ 24/09/06-09:51:11,fwver: v1.18
ch0 ttot6
ch1 ttot6
ch2 ttot6
ch3 ttot6
ch0 ttot6
LPDDR5, 2400MHz
channel[0] BW=16 Col=10 Bk=16 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
ch1 ttot6
channel[1] BW=16 Col=10 Bk=16 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
ch2 ttot6
channel[2] BW=16 Col=10 Bk=16 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
ch3 ttot6
channel[3] BW=16 Col=10 Bk=16 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
Manufacturer ID:0xff
DQS rds:l0,l0,
CH0 RX Vref:29.7%, TX Vref:22.0%,22.0%
DQ rds:h3 h2 h5 h1 h3 h5 h4 l0 , l0 h1 h3 h1 h4 h5 h2 h2
DQS rds:l0,l0,
CH1 RX Vref:26.7%, TX Vref:23.0%,23.0%
DQ rds:l0 h3 l0 h3 l0 h1 h1 h7 , h2 h1 h2 h4 h1 h3 l0 l0
DQS rds:l0,h1,
CH2 RX Vref:27.9%, TX Vref:22.0%,23.0%
DQ rds:h6 h3 h1 h1 h2 h1 h7 h1 , l1 h1 h3 h7 h1 h1 h4 h7
DQS rds:h1,l0,
CH3 RX Vref:29.3%, TX Vref:21.0%,21.0%
DQ rds:h1 h3 h1 h4 h3 h4 h2 h2 , h2 h3 h5 h1 h2 h2 h1 l0
stride=0x2, ddr_config=0x6
hash ch_mask0-1 0x20 0x40, bank_mask0-3 0x0 0x2400 0x44800 0x89000, rank_mask0 0x2000
change to F1: 534MHz
ch0 ttot6
ch1 ttot6
ch2 ttot6
ch3 ttot6
change to F2: 1320MHz
ch0 ttot8
ch1 ttot8
ch2 ttot8
ch3 ttot8
change to F3: 1968MHz
ch0 ttot7
ch1 ttot7
ch2 ttot7
ch3 ttot7
change to F0: 2400MHz
ch0 ttot6
ch1 ttot6
ch2 ttot6
ch3 ttot6
out
U-Boot SPL board init
U-Boot SPL 2017.09-g5f53abfa1e-221223 #zzz (Dec 26 2022 - 09:10:09)
Trying to boot from MMC2
No misc partition
spl: partition error
Trying fit image at 0x4000 sector
Not fit magic
Trying fit image at 0x5000 sector
Not fit magic
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 13
spl: mmc init failed with error: -95
Trying to boot from MTD2
No misc partition
Trying fit image at 0x800 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(055fb57dea...) + OK
## Checking edk2 0x00200000 ... sha256(398af06cff...) + OK
## Checking atf-2 0x000f0000 ... sha256(e3b0c44298...) + OK
## Checking atf-3 0xff100000 ... sha256(f6c21c7eec...) + OK
## Checking optee 0x08400000 ... sha256(66e4b7a4cd...) + OK
## Checking nvdata 0x007c0000 ... OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 837.136 ms
NOTICE: BL31: v2.12.0(release):d5c68fd
NOTICE: BL31: Built : 22:15:48, Apr 9 2025
UEFI firmware (version v1.1 built at 22:17:40 on Apr 9 2025)
[2J[04D[=3h[2J[09D[2J[04D[=3h[2J[09D[2J[04D[=3h[2J[09D[2J[04D
\\-__,------,___.
\\ __,---` NetBSD/evbarm efiboot (arm64)
\\ `---,_. Revision 2.13 (Mon Dec 16 13:08:11 UTC 2024)
\\-,_____,.---`
\\
\\
\\
Press return to boot now, any other key for boot prompt
booting netbsd - starting in 5 seconds. 4 seconds. 3 seconds. 2 seconds. 0 seconds.
|/-\|/-\|/-\|/7629248-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+3443768/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+4192232\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+1767544|/-\ [599195|/-\|/-\|+954168/-\|/-\|/-\|/-\+712340|/-\|/-\|/-\]=0x13d8de0
~
[EOT]
# ^Dexit
Script done on Thu Nov 27 00:20:23 2025
Home |
Main Index |
Thread Index |
Old Index