colemickens / h96-max-v58-investigation

2 stars 1 forks source link

u-boot work in progress #6

Open colemickens opened 1 year ago

colemickens commented 1 year ago

It's "close"-ish, I guess. But still doesn't want to really boot off USB, seems to hang? Not sure, quick braindump.

This is using a hacked up defconfig, starting from the rock5b dtb.

It gets closer than when I tried to use the evb-rk3588_defconfig from the collabora repo.

my upstream, collabora: https://gitlab.collabora.com/hardware-enablement/rockchip-3588/u-boot/-/tree/2023.07-rc4-rock5b

my fork: https://github.com/colemickens/u-boot/tree/h96maxv58

Boot1 Release Time: Jun  6 2022 17:57:22, version: 1.09
Emmc IO init.
Emmc IO init.
mmc_set_bus_width: 1
SetEmmcClk: 375000, 2, 64
SetEmmcClk: 375000, 2, 64
mmc_set_bus_width: 8
SetEmmcClk: 200000000, 0, 3
Enable PHY CLK: 200000000, timing: 9
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=59640MB
FwPartOffset=2000 , 100000
UsbBoot ...415971
powerOn 418241
SoftReset, 5553803 us
DDR V1.11 f1474cf52f cym 23/05/09-11:02:36
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:0x6
CH0 RX Vref:27.9%, TX Vref:24.8%,24.8%
CH1 RX Vref:27.9%, TX Vref:24.8%,24.8%
CH2 RX Vref:27.5%, TX Vref:25.8%,23.8%
CH3 RX Vref:26.3%, 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 2023.07-rc4 (Jan 01 1980 - 00:00:00 +0000)
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-589-g3389cfdda:derrick.huang
NOTICE:  BL31: Built : 10:14:29, May  9 2023
INFO:    spec: 0x1
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:    system boots from cpu-hwid-0
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 2023.07-rc4 (Jan 01 1980 - 00:00:00 +0000)007-pre [variant: noenv]

Model: Radxa ROCK 5 Model B
DRAM:  8 GiB (effective 7.7 GiB)
Core:  741 devices, 29 uclasses, devicetree: separate
MMC:   mmc@fe2c0000: 1, mmc@fe2e0000: 0
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Model: Radxa ROCK 5 Model B
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
Bus usb@fc800000: USB EHCI 1.00
Bus usb@fc840000: USB OHCI 1.0
Bus usb@fc880000: USB EHCI 1.00
Bus usb@fc8c0000: USB OHCI 1.0
Bus usb@fc400000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fc800000 for devices... 1 USB Device(s) found
scanning bus usb@fc840000 for devices... 1 USB Device(s) found
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found
scanning bus usb@fc400000 for devices... 1 USB Device(s) found
colemickens commented 1 year ago

I can get it to see some USB devices, like it will see a certain ethernet adapter and complains about its MAC address, but it doesn't seem to actually try to net boot from it.

colemickens commented 1 year ago

I'm guessing some surgery to extract the DTB from the good dump I got: https://github.com/colemickens/h96-max-v58-investigation/issues/5, decompile the dtb->dts and then mashing it up with the rock5 device tree could get me closer. Not sure I'm going to be able to do that before I have to leave this board behind again.

colemickens commented 1 year ago

note to self: try the rock5b defconfig, but point it at the EVB device tree instead and see where that goes.

clort81 commented 9 months ago

fascinating work. far less expensive than the rk3588 'sbc's. Is this a rk3588 or rk3588s ?