This updates rk3588 to 2024-04. Notable differences are; I can have
root installed on the nvme and rkdrm is now configured. u-boot
and boot messages at end.

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/u-boot/rk3588/Makefile,v
retrieving revision 1.4
diff -u -p -u -r1.4 Makefile
--- Makefile    14 Apr 2024 04:21:30 -0000      1.4
+++ Makefile    14 Apr 2024 19:03:19 -0000
@@ -1,5 +1,4 @@
-VERSION=       2024.01-rc3
-REVISION=      2
+VERSION=       2024.04
 
 SOC=           rk3588
 
@@ -18,8 +17,8 @@ BUILD_DEPENDS+= devel/arm-none-eabi/gcc,
                sysutils/e2fsprogs
 CROSS_COMPILE= aarch64-none-elf-
 
-RK3588_TPL=    rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin
-RK3588_BL31=   rk3588_bl31_v1.40.elf
+RK3588_TPL=    rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin
+RK3588_BL31=   rk3588_bl31_v1.45.elf
 
 DISTFILES.rkbin= ${RK3588_TPL} ${RK3588_BL31}
 SITES.rkbin=   https://github.com/rockchip-linux/rkbin/raw/master/bin/rk35/
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/u-boot/rk3588/distinfo,v
retrieving revision 1.1
diff -u -p -u -r1.1 distinfo
--- distinfo    26 Nov 2023 21:06:26 -0000      1.1
+++ distinfo    14 Apr 2024 19:03:19 -0000
@@ -1,6 +1,6 @@
-SHA256 (rk3588_bl31_v1.40.elf) = KLye1YfQEWcJgihTDK0RRILh8w+qGm2XRL/HsFlE028=
-SHA256 (rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin) = 
qyD6dtVTW7lcQnsReyQlEDFrjCeIljndDEwqRIMs+y8=
-SHA256 (u-boot-2024.01-rc3.tar.bz2) = 
Amk3LQ2t5Yok2sHYK+Q/WSzIJi6tWpqaIsBupaf5geo=
-SIZE (rk3588_bl31_v1.40.elf) = 418592
-SIZE (rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.12.bin) = 72816
-SIZE (u-boot-2024.01-rc3.tar.bz2) = 19914182
+SHA256 (rk3588_bl31_v1.45.elf) = jEBNnPBVkRJ1Qq3sDrkrBmzxnTxqr/0Jf3ES4X6LMEQ=
+SHA256 (rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin) = 
WqYnEZXkIqLDCo6AG6pk5KEMvGpfGWP5op5tyFCWx78=
+SHA256 (u-boot-2024.04.tar.bz2) = GKhT/jn6160DqQzC1Cda6u1tppc13vrDSSuAUIhD3Uo=
+SIZE (rk3588_bl31_v1.45.elf) = 430880
+SIZE (rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin) = 75480
+SIZE (u-boot-2024.04.tar.bz2) = 20228837


DDR 9fffbe1e78 cym 24/02/04-10:09:20,fwver: v1.16
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
Manufacturer ID:0xff
CH0 RX Vref:26.7%, TX Vref:21.8%,20.8%
CH1 RX Vref:25.4%, TX Vref:21.8%,21.8%
CH2 RX Vref:26.7%, TX Vref:22.8%,22.8%
CH3 RX Vref:28.5%, TX Vref:22.8%,22.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out

U-Boot SPL 2024.04 (Apr 13 2024 - 09:31:42 -0400)
Trying to boot from MMC2
## 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: 0x1
INFO:    code: 0x88
INFO:    ext 32k is not 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:    enable 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 (Apr 13 2024 - 09:31:42 -0400)

Model: Radxa ROCK 5 Model B
DRAM:  16 GiB (effective 15.7 GiB)
Core:  356 devices, 30 uclasses, devicetree: separate
MMC:   mmc@fe2c0000: 1, mmc@fe2d0000: 2, mmc@fe2e0000: 0
Loading Environment from nowhere... OK
In:    serial@feb50000
Out:   serial@feb50000
Err:   serial@feb50000
Model: Radxa ROCK 5 Model B
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  
----------------
Scanning global bootmeth 'efi_mgr':
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
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
 0  efi_mgr      ready   (none)       0  <NULL>                    
** Booting bootflow '<NULL>' with efi_mgr
Loading Boot0000 'mmc 1' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Scanning bootdev 'mmc@fe2c0000.bootdev':
Scanning bootdev 'mmc@fe2e0000.bootdev':
Card did not respond to voltage select! : -110
pcie_dw_rockchip pcie@fe170000: PCIe-4 Link Fail
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
Scanning bootdev 'nvme#0.blk#1.bootdev':
 1  efi          ready   nvme         1  nvme#0.blk#1.bootdev.part 
efi/boot/bootaa64.efi
** Booting bootflow 'nvme#0.blk#1.bootdev.part_1' with efi
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
OpenBSD/arm64 BOOTAA64 1.18
boot> 
booting sd0a:/bsd: 11489320+2740432+301644+846324 
[938592+91+1303704+806057]=0x1400b48
[ using 3049224 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-2024 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.5-current (GENERIC.MP) #11: Thu Apr 11 17:03:03 MDT 2024
   dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 16901328896 (16118MB)
avail mem = 16294182912 (15539MB)
random: good seed from bootblocks
mainbus0 at root: Radxa ROCK 5 Model B
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: radxa Radxa ROCK 5 Model B
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,SSBS
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: 128KB 64b/line 4-way L2 cache
cpu1: 4096KB 64b/line 16-way L3 cache
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: 128KB 64b/line 4-way L2 cache
cpu2: 4096KB 64b/line 16-way L3 cache
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: 128KB 64b/line 4-way L2 cache
cpu3: 4096KB 64b/line 16-way L3 cache
cpu4 at mainbus0 mpidr 400: ARM Cortex-A76 r4p0
cpu4: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
cpu4: 512KB 64b/line 8-way L2 cache
cpu4: 4096KB 64b/line 16-way L3 cache
cpu4: 
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,CSV3,CSV2,SSBS
cpu5 at mainbus0 mpidr 500: ARM Cortex-A76 r4p0
cpu5: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
cpu5: 512KB 64b/line 8-way L2 cache
cpu5: 4096KB 64b/line 16-way L3 cache
cpu6 at mainbus0 mpidr 600: ARM Cortex-A76 r4p0
cpu6: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
cpu6: 512KB 64b/line 8-way L2 cache
cpu6: 4096KB 64b/line 16-way L3 cache
cpu7 at mainbus0 mpidr 700: ARM Cortex-A76 r4p0
cpu7: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache
cpu7: 512KB 64b/line 8-way L2 cache
cpu7: 4096KB 64b/line 16-way L3 cache
"optee" at mainbus0 not configured
scmi0 at mainbus0: SCMI 2.0
"gap2" at mainbus0 not configured
"gap1" at mainbus0 not configured
apm0 at mainbus0
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"
"usb2-phy" at syscon7 not configured
syscon8 at mainbus0: "syscon"
"usb2-phy" at syscon8 not configured
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 ipi: 0, 1, 2: 
"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"
rkcomphy2 at mainbus0
rkpciephy0 at mainbus0
syscon61 at mainbus0: "syscon"
syscon62 at mainbus0: "syscon"
"usb2-phy" at syscon62 not configured
syscon63 at mainbus0: "syscon"
syscon64 at mainbus0: "syscon"
syscon65 at mainbus0: "syscon"
syscon66 at mainbus0: "syscon"
"usb2-phy" at syscon66 not configured
"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
rkdrm0 at mainbus0
drm0 at rkdrm0
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
ehci1 at mainbus0
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
ohci1 at mainbus0: version 1.0
xhci0 at mainbus0, 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
"sram" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
fanpwr0 at iic0 addr 0x42: RK8602, 0.80 VDC
fanpwr1 at iic0 addr 0x43: RK8602, 0.80 VDC
rkpwm0 at mainbus0
dwpcie0 at mainbus0
"dfi" at mainbus0 not configured
"spi" at mainbus0 not configured
dwmmc0 at mainbus0: 49 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
dwmmc1 at mainbus0: 50 MHz base clock
sdmmc1 at dwmmc1: 4-bit, dma
"mmc" 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
fusbtc0 at iic1 addr 0x22
"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
com1 at mainbus0: dw16550, 64 byte fifo
"adc" at mainbus0 not configured
rkiic2 at mainbus0
iic2 at rkiic2
pcxrtc0 at iic2 addr 0x51: battery ok
rkiic3 at mainbus0
iic3 at rkiic3
escodec0 at iic3 addr 0x11
"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
"syscon" at mainbus0 not configured
"syscon" at mainbus0 not configured
dwpcie1 at mainbus0
dwpcie2 at mainbus0
"phy" at mainbus0 not configured
"phy" at mainbus0 not configured
graphaudio0 at mainbus0
gpioleds0 at mainbus0: no LEDs
pwmfan0 at mainbus0
"vcc3v3-pcie2x1l0-regulator" at mainbus0 not configured
"vcc3v3-pcie2x1l2-regulator" at mainbus0 not configured
"vcc3v3-pcie30-regulator" at mainbus0 not configured
"vcc5v0-host-regulator" at mainbus0 not configured
"vcc5v0-sys-regulator" at mainbus0 not configured
"vcc-1v1-nldo-s3-regulator" at mainbus0 not configured
"binman" at mainbus0 not configured
"dmc" at mainbus0 not configured
xhci1 at mainbus0, 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
"syscon" at mainbus0 not configured
"syscon" at mainbus0 not configured
"syscon" at mainbus0 not configured
"syscon" at mainbus0 not configured
"phy" at mainbus0 not configured
xhci2 at mainbus0, xHCI 1.10
usb4 at xhci2: USB revision 3.0
uhub4 at usb4 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 
addr 1
"syscon" at mainbus0 not configured
"syscon" at mainbus0 not configured
"phy" at mainbus0 not configured
"vcc12v-dcin-regulator" at mainbus0 not configured
usb5 at ohci0: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 
addr 1
usb6 at ohci1: USB revision 1.0
uhub6 at usb6 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 65
rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x05: msi, address 
00:e0:4c:03:1f:1a
pci2 at dwpcie1
ppb1 at pci2 dev 0 function 0 "Rockchip RK3588" rev 0x00
pci3 at ppb1 bus 1
nvme0 at pci3 dev 0 function 0 vendor "SK hynix", unknown product 0x174a rev 
0x00: msix, NVMe 1.3
nvme0: SHGP31-500GM, firmware 41062C20, serial FJBCN53201010CI4Z
scsibus0 at nvme0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <NVMe, SHGP31-500GM, 4106>
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
dwpcie2: can't initialize hardware
fusbtc0: attached (sink)
fusbtc0: connected in device mode
fusbtc0: can draw 1500 mA
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SD/MMC, JB1RT, 0030> removable
sd1: 30528MB, 512 bytes/sector, 62521344 sectors
sdmmc1: can't enable card
uhub7 at uhub0 port 1 configuration 1 interface 0 "Terminus Technology USB 2.0 
Hub" rev 2.00/1.11 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (5707c9ece8a4013f.a) swap on sd0b dump on sd0b

Reply via email to