Jump to content

Recommended Posts

Posted

Yes, it works correctly

 

debian@orangepi5pro:~$ lsusb -t
...
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

 

Posted (edited)

@C127I just saw that @whywontitworkmessage and decided to try your image(0.3) directly in the sdcard ( emmc removed ) and that image does not boot. The UART is also stuck in starting kernel as mentioned by @whywontitwork, but I can get the HDMI output and the boot process drops to a  initramfs shell because it can not find the root device.

 

This is the console log.

 

DDR 9fa84341ce typ 24/09/06-09:51:11,fwver: v1.18
ch0 ttot6
ch1 ttot6
ch2 ttot6
ch3 ttot6
ch0 ttot7
LPDDR5, 2400MHz
channel[0] BW=16 Col=10 Bk=16 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
ch1 ttot7
channel[1] BW=16 Col=10 Bk=16 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
ch2 ttot7
channel[2] BW=16 Col=10 Bk=16 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
ch3 ttot7
channel[3] BW=16 Col=10 Bk=16 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
Manufacturer ID:0xff
DQS rds:h1,l0
CH0 RX Vref:24.6%, TX Vref:22.0%,22.0%
DQ rds:h5 h2 h1 h2 h1 h4 l0 h7, h1 h1 h3 h3 h1 h1 h7 l0

DQS rds:l0,h2
CH1 RX Vref:27.9%, TX Vref:21.0%,21.0%
DQ rds:h4 l0 h2 h3 h6 l0 h7 l0, h7 h4 h4 h4 l1 h1 h6 h7

DQS rds:l0,h2
CH2 RX Vref:25.0%, TX Vref:21.0%,21.0%
DQ rds:h1 l0 h2 l2 h1 h1 h5 h1, l1 h6 l1 h3 l2 h1 h1 h2

DQS rds:l0,h1
CH3 RX Vref:27.9%, TX Vref:20.0%,20.0%
DQ rds:h3 h1 h2 h1 h4 h1 h1 h1, h4 h7 h2 h2 h3 h5 l0 h5

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 ttot6
ch1 ttot6
ch2 ttot6
ch3 ttot6
change to F0: 2400MHz
ch0 ttot7
ch1 ttot7
ch2 ttot7
ch3 ttot7
out

U-Boot SPL 2024.04-armbian-2024.04-S2504-Pa35d-H29de-Vbf83-Bb703-R448a (Jul 02 2025 - 19:31:47 +0000)
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-868-g040d2de11:derrick.huang, fwver: v1.48
NOTICE:  BL31: Built : 15:02:44, Dec 19 2024
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:    bypass memory repair
INFO:    idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO:    dfs DDR fsp_params[0].freq_mhz= 2400MHz
INFO:    dfs DDR fsp_params[1].freq_mhz= 534MHz
INFO:    dfs DDR fsp_params[2].freq_mhz= 1320MHz
INFO:    dfs DDR fsp_params[3].freq_mhz= 1968MHz
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
ns16550_serial serial@feb50000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19


U-Boot 2024.04-armbian-2024.04-S2504-Pa35d-H29de-Vbf83-Bb703-R448a (Jul 02 2025 - 19:31:47 +0000)

Model: Xunlong Orange Pi 5 Pro
DRAM:  16 GiB (effective 15.7 GiB)
Core:  323 devices, 30 uclasses, devicetree: separate
MMC:   mmc@fe2c0000: 0
Loading Environment from nowhere... OK
In:    serial@feb50000
Out:   serial@feb50000
Err:   serial@feb50000
Model: Xunlong Orange Pi 5 Pro
rockchip_dnl_key_pressed: no saradc device found
Net:   eth0: ethernet@fe1c0000
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':
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 0' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Scanning bootdev 'mmc@fe2c0000.bootdev':
  1  script       ready   mmc          1  mmc@fe2c0000.bootdev.part /boot/boot.scr
** Booting bootflow 'mmc@fe2c0000.bootdev.part_1' with script
Boot script loaded from mmc 0:1
200 bytes read in 4 ms (48.8 KiB/s)
15754859 bytes read in 1321 ms (11.4 MiB/s)
39287296 bytes read in 3289 ms (11.4 MiB/s)
162018 bytes read in 28 ms (5.5 MiB/s)
Working FDT set to 12000000
Trying kaslrseed command... Info: Unknown command can be safely ignored since kaslrseed does not apply to all boards.
Unknown command 'kaslrseed' - try 'help'
## Loading init Ramdisk from Legacy Image at 12180000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    15754795 Bytes = 15 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 12000000
   Booting using the fdt blob at 0x12000000
Working FDT set to 12000000
   Loading Ramdisk to ebf92000, end ece9862b ... OK
   Loading Device Tree to 00000000ebf02000, end 00000000ebf91fff ... OK
Working FDT set to ebf02000

Starting kernel ...

 

 

Setting loglevel=8 and verbose=8 shows this is console:

 

[    2.028301] dwmmc_rockchip fe2d0000.mmc: IDMAC supports 32-bit address mode.
[    2.029020] dwmmc_rockchip fe2d0000.mmc: Using internal DMA controller.
[    2.029624] dwmmc_rockchip fe2d0000.mmc: Version ID is 270a
[    2.030163] dwmmc_rockchip fe2d0000.mmc: DW MMC controller at irq 84,32 bit host data width,256 deep fifo
[    2.031384] dwmmc_rockchip fe2d0000.mmc: allocated mmc-pwrseq
[    2.031921] mmc_host mmc2: card is non-removable.
[    2.217056] dwmmc_rockchip fe2c0000.mmc: Busy; trying anyway
[    2.250531] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    2.376463] mmc_host mmc2: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
[    2.409028] dwmmc_rockchip fe2d0000.mmc: Successfully tuned phase to 223
[    2.423188] mmc2: new UHS-I speed SDR104 SDIO card at address 0001
[    2.953845] mmc_host mmc0: Timeout sending command (cmd 0x202000 arg 0x0 status 0x80202000)
[    2.991412] mmc0: error -110 whilst initialising SD card
[    3.527479] dwmmc_rockchip fe2c0000.mmc: Busy; trying anyway
[    4.257059] mmc_host mmc0: Timeout sending command (cmd 0x202000 arg 0x0 status 0x80202000)
[    4.271710] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    4.831481] dwmmc_rockchip fe2c0000.mmc: Busy; trying anyway
[    5.560980] mmc_host mmc0: Timeout sending command (cmd 0x202000 arg 0x0 status 0x80202000)
[    5.575632] mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[    6.140278] dwmmc_rockchip fe2c0000.mmc: Busy; trying anyway
[    6.869893] mmc_host mmc0: Timeout sending command (cmd 0x202000 arg 0x0 status 0x80202000)

 

Edited by salas
Posted (edited)

You are right, this is a strange DTS issue. U-Boot is working, but the kernel can't initialize the SD card, which is why it drops to the initramfs shell.
Unfortunately, I can't reproduce this specific error myself, but I agree with the analysis. I suspect this is the same reason why newer U-Boot versions initially failed to boot for me.
I will start working on fixing the DTS next week.

Thanks for finding this bug!

Edited by C127

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines