Can't boot Dietpi on Orangepi 3B from SD or eMMC (Armbian works)

I used to boot Dietpi from SD card and MMC fine (copied to eMMC from SD using dd). Worked for a few days, then I messed with the SPI bootloader via dietpi-configAdvanced OptionsUpdate SPI bootloader .

Now I can’t boot Dietpi anymore and it’s only Dietpi.

I cleared the SPI Flash several times using the Orange Pi official method.

Now tried to boot from SD or eMMC:

  • Armbian works
  • Orange Pi official linux works
  • ANdroid works
  • DietPi ca’t boot!

Any tips? Tried several SD cards, same behaviour.

@MichaIng can you have a look please

I also tried to install dietpi from armbian Linux, using the dietpi script installation. It worked but can’t boot after reboot.

The SPI bootloader should not be used when you boot from SD card or eMMC. Or does it have a switch to enforce SPI bootloader usage?

So it would be the MMC bootloader our image is shipped with. Do you have a UART adapter to check serial console output?

There’s no switch to force SPI boot.

I just got an UART adapter. The boot is on loop when I put a DietPi sdcard. THe funny thing is it was working before I messed with SPI updater

DDR V1.18 f366f69a7d typ 23/07/17-15:48:58
ln
LP4/4x derate en, other dram:1x trefi
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: -24ps, dqs1: -96ps, dqs2: -24ps, dqs3: -120ps,
tdqss: cs1 dqs0: -24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -120ps,

change to: 324MHz
clk skew:0x62

change to: 528MHz
clk skew:0x58

change to: 780MHz
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x3c
cs 0:
the read training result:
DQS0:0x3f, DQS1:0x3c, DQS2:0x40, DQS3:0x3b,
min  : 0xb  0xa  0xd  0xd  0x2  0x3  0x5  0x7 , 0x4  0x5  0x2  0x1  0x9  0xe  0x                                                                                                                                                             f 0x10 ,
       0x2  0x1 0x10  0xf  0xc  0xc  0xd  0xc , 0x5  0x4  0x8  0x1  0xc  0xc  0x                                                                                                                                                             b  0xb ,
mid  :0x29 0x28 0x2a 0x2a 0x20 0x20 0x23 0x25 ,0x22 0x23 0x20 0x1f 0x27 0x2c 0x2                                                                                                                                                             c 0x2e ,
      0x1f 0x1f 0x2c 0x2c 0x28 0x28 0x29 0x28 ,0x23 0x22 0x26 0x1f 0x29 0x29 0x2                                                                                                                                                             9 0x28 ,
max  :0x47 0x46 0x48 0x48 0x3f 0x3d 0x41 0x43 ,0x40 0x42 0x3f 0x3d 0x45 0x4b 0x4                                                                                                                                                             a 0x4c ,
      0x3d 0x3d 0x49 0x4a 0x45 0x45 0x46 0x45 ,0x41 0x41 0x44 0x3d 0x46 0x47 0x4                                                                                                                                                             8 0x46 ,
range:0x3c 0x3c 0x3b 0x3b 0x3d 0x3a 0x3c 0x3c ,0x3c 0x3d 0x3d 0x3c 0x3c 0x3d 0x3                                                                                                                                                             b 0x3c ,
      0x3b 0x3c 0x39 0x3b 0x39 0x39 0x39 0x39 ,0x3c 0x3d 0x3c 0x3c 0x3a 0x3b 0x3                                                                                                                                                             d 0x3b ,
the write training result:
DQS0:0x39, DQS1:0x30, DQS2:0x39, DQS3:0x2c,
min  :0x56 0x57 0x57 0x57 0x4e 0x4e 0x50 0x55 0x53 ,0x49 0x4a 0x47 0x45 0x4d 0x5                                                                                                                                                             4 0x55 0x56 0x4f ,
      0x4a 0x49 0x55 0x53 0x51 0x53 0x53 0x54 0x52 ,0x46 0x45 0x48 0x41 0x4d 0x4                                                                                                                                                             d 0x4e 0x4e 0x46 ,
mid  :0x72 0x73 0x73 0x73 0x69 0x69 0x6c 0x71 0x6e ,0x65 0x66 0x63 0x62 0x69 0x7                                                                                                                                                             0 0x70 0x72 0x6c ,
      0x65 0x65 0x70 0x70 0x6d 0x6d 0x6e 0x6f 0x6e ,0x63 0x62 0x64 0x5d 0x69 0x6                                                                                                                                                             9 0x6a 0x6a 0x62 ,
max  :0x8f 0x8f 0x90 0x8f 0x84 0x85 0x88 0x8e 0x8a ,0x82 0x82 0x7f 0x7f 0x86 0x8                                                                                                                                                             c 0x8c 0x8f 0x8a ,
      0x81 0x82 0x8c 0x8d 0x89 0x88 0x8a 0x8a 0x8b ,0x80 0x7f 0x81 0x7a 0x85 0x8                                                                                                                                                             6 0x87 0x86 0x7f ,
range:0x39 0x38 0x39 0x38 0x36 0x37 0x38 0x39 0x37 ,0x39 0x38 0x38 0x3a 0x39 0x3                                                                                                                                                             8 0x37 0x39 0x3b ,
      0x37 0x39 0x37 0x3a 0x38 0x35 0x37 0x36 0x39 ,0x3a 0x3a 0x39 0x39 0x38 0x3                                                                                                                                                             9 0x39 0x38 0x39 ,
cs 1:
the read training result:
DQS0:0x3e, DQS1:0x3d, DQS2:0x42, DQS3:0x3c,
min  : 0xb  0x9  0xb  0xb  0x1  0x1  0x4  0x6 , 0x5  0x5  0x2  0x1  0xa  0xe  0x                                                                                                                                                             f 0x10 ,
       0x3  0x1 0x10  0xe  0xc  0xd  0xb  0xb , 0x5  0x5  0x9  0x1  0xd  0xc  0x                                                                                                                                                             c  0xb ,
mid  :0x29 0x27 0x29 0x29 0x1f 0x1f 0x22 0x24 ,0x23 0x23 0x21 0x20 0x28 0x2d 0x2                                                                                                                                                             d 0x2e ,
      0x21 0x20 0x2d 0x2d 0x29 0x2a 0x28 0x29 ,0x23 0x23 0x27 0x1f 0x2a 0x2a 0x2                                                                                                                                                             a 0x28 ,
max  :0x47 0x46 0x47 0x48 0x3d 0x3d 0x40 0x42 ,0x42 0x42 0x40 0x3f 0x46 0x4c 0x4                                                                                                                                                             b 0x4d ,
      0x40 0x3f 0x4b 0x4c 0x47 0x48 0x46 0x47 ,0x41 0x42 0x45 0x3d 0x48 0x48 0x4                                                                                                                                                             9 0x46 ,
range:0x3c 0x3d 0x3c 0x3d 0x3c 0x3c 0x3c 0x3c ,0x3d 0x3d 0x3e 0x3e 0x3c 0x3e 0x3                                                                                                                                                             c 0x3d ,
      0x3d 0x3e 0x3b 0x3e 0x3b 0x3b 0x3b 0x3c ,0x3c 0x3d 0x3c 0x3c 0x3b 0x3c 0x3                                                                                                                                                             d 0x3b ,
the write training result:
DQS0:0x39, DQS1:0x30, DQS2:0x39, DQS3:0x2c,
min  :0x54 0x56 0x56 0x56 0x4d 0x4e 0x50 0x53 0x52 ,0x4a 0x4a 0x48 0x45 0x4d 0x5                                                                                                                                                             4 0x55 0x57 0x50 ,
      0x47 0x46 0x51 0x50 0x4e 0x50 0x50 0x51 0x50 ,0x46 0x45 0x47 0x41 0x4c 0x4                                                                                                                                                             b 0x4e 0x4d 0x46 ,
mid  :0x71 0x72 0x72 0x72 0x68 0x69 0x6c 0x6f 0x6e ,0x66 0x66 0x64 0x62 0x69 0x7                                                                                                                                                             0 0x70 0x73 0x6d ,
      0x63 0x62 0x6d 0x6d 0x6a 0x6a 0x6b 0x6c 0x6c ,0x62 0x62 0x63 0x5d 0x68 0x6                                                                                                                                                             8 0x6a 0x69 0x62 ,
max  :0x8e 0x8f 0x8f 0x8e 0x83 0x85 0x88 0x8c 0x8a ,0x82 0x82 0x80 0x7f 0x86 0x8                                                                                                                                                             c 0x8c 0x90 0x8a ,
      0x7f 0x7f 0x8a 0x8a 0x86 0x85 0x87 0x87 0x88 ,0x7f 0x7f 0x80 0x79 0x84 0x8                                                                                                                                                             6 0x86 0x86 0x7f ,
range:0x3a 0x39 0x39 0x38 0x36 0x37 0x38 0x39 0x38 ,0x38 0x38 0x38 0x3a 0x39 0x3                                                                                                                                                             8 0x37 0x39 0x3a ,
      0x38 0x39 0x39 0x3a 0x38 0x35 0x37 0x36 0x38 ,0x39 0x3a 0x39 0x38 0x38 0x3                                                                                                                                                             b 0x38 0x39 0x39 ,
CA Training result:
cs:0 min  :0x46 0x40 0x41 0x3f 0x40 0x3b 0x41 ,0x48 0x41 0x45 0x3f 0x43 0x3d 0x4                                                                                                                                                             1 ,
cs:0 mid  :0x83 0x81 0x7f 0x7f 0x7d 0x7c 0x72 ,0x86 0x82 0x82 0x7f 0x80 0x7e 0x7                                                                                                                                                             1 ,
cs:0 max  :0xc1 0xc2 0xbd 0xbf 0xba 0xbe 0xa3 ,0xc4 0xc4 0xbf 0xbf 0xbe 0xbf 0xa                                                                                                                                                             1 ,
cs:0 range:0x7b 0x82 0x7c 0x80 0x7a 0x83 0x62 ,0x7c 0x83 0x7a 0x80 0x7b 0x82 0x6                                                                                                                                                             0 ,
cs:1 min  :0x42 0x43 0x3f 0x41 0x3e 0x3e 0x40 ,0x45 0x44 0x41 0x40 0x40 0x40 0x4                                                                                                                                                             0 ,
cs:1 mid  :0x83 0x81 0x7f 0x7f 0x7e 0x7b 0x72 ,0x85 0x82 0x80 0x7e 0x80 0x7e 0x7                                                                                                                                                             2 ,
cs:1 max  :0xc4 0xbf 0xbf 0xbd 0xbe 0xb9 0xa4 ,0xc6 0xc1 0xc0 0xbd 0xc0 0xbd 0xa                                                                                                                                                             4 ,
cs:1 range:0x82 0x7c 0x80 0x7c 0x80 0x7b 0x64 ,0x81 0x7d 0x7f 0x7d 0x80 0x7d 0x6                                                                                                                                                             4 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g1861e3c #orangepi (Aug 24 2023 - 19:06:02)
Trying to boot from MMC2
No misc partition
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(0d5225a4ab...) + OK
## Checking u-boot 0x00a00000 ... sha256(0ef7770a35...) + OK
## Checking fdt-1 0x00ad1f00 ... sha256(5c7da73aa1...) + OK
## Checking atf-2 0x00069000 ... sha256(6ede7a3b44...) + OK
## Checking atf-3 0x0006b000 ... sha256(fde0ef262b...) + OK
## Checking atf-4 0xfdcc1000 ... sha256(3e94d16e6a...) + OK
## Checking atf-5 0xfdcce000 ... sha256(c9eb312bf2...) + OK
## Checking atf-6 0xfdcd0000 ... sha256(befba422b8...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 819.580 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-607-gbf602aff1:cl
NOTICE:  BL31: Built : 10:16:03, Jun  5 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE init                                                                                                                                                             ialization. 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.10-rc4-armbian (Feb 23 2024 - 10:38:09 +0000)

Model: Rockchip RK3566 OPi 3B
DRAM:  8 GiB (effective 7.7 GiB)
PMIC:  RK8090 (on=0x40, off=0x00)
Core:  338 devices, 32 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe2c0000: 2, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Rockchip RK3566 OPi 3B
download key pressed, entering download mode...resetting ...
DDR V1.18 f366f69a7d typ 23/07/17-15:48:58
ln
LP4/4x derate en, other dram:1x trefi
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: -24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -120ps,
tdqss: cs1 dqs0: -24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -120ps,

change to: 324MHz
clk skew:0x62

change to: 528MHz
clk skew:0x58

change to: 780MHz
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x3c
cs 0:
the read training result:
DQS0:0x3f, DQS1:0x3c, DQS2:0x40, DQS3:0x3b,
min  : 0xc  0xb  0xd  0xd  0x2  0x3  0x5  0x8 , 0x4  0x5  0x2  0x1  0x9  0xe  0x                                                                                                                                                             f 0x10 ,
       0x3  0x1 0x10  0xf  0xc  0xc  0xd  0xc , 0x5  0x4  0x8  0x1  0xc  0xc  0xb  0xb ,
mid  :0x29 0x28 0x2a 0x2a 0x20 0x20 0x23 0x25 ,0x22 0x23 0x20 0x1f 0x27 0x2c 0x2c 0x2e ,
      0x20 0x1f 0x2c 0x2c 0x28 0x28 0x2a 0x28 ,0x23 0x22 0x26 0x1f 0x29 0x29 0x29 0x28 ,
max  :0x47 0x46 0x48 0x48 0x3f 0x3d 0x41 0x43 ,0x41 0x42 0x3f 0x3d 0x45 0x4a 0x4a 0x4c ,
      0x3d 0x3d 0x49 0x49 0x44 0x45 0x47 0x45 ,0x41 0x41 0x44 0x3d 0x46 0x47 0x48 0x46 ,
range:0x3b 0x3b 0x3b 0x3b 0x3d 0x3a 0x3c 0x3b ,0x3d 0x3d 0x3d 0x3c 0x3c 0x3c 0x3b 0x3c ,
      0x3a 0x3c 0x39 0x3a 0x38 0x39 0x3a 0x39 ,0x3c 0x3d 0x3c 0x3c 0x3a 0x3b 0x3d 0x3b ,
the write training result:
DQS0:0x39, DQS1:0x30, DQS2:0x36, DQS3:0x2c,
min  :0x56 0x57 0x57 0x56 0x4d 0x4e 0x50 0x55 0x53 ,0x49 0x4a 0x47 0x44 0x4b 0x55 0x55 0x56 0x4f ,
      0x47 0x46 0x51 0x4f 0x4e 0x50 0x50 0x51 0x4f ,0x46 0x45 0x48 0x41 0x4d 0x4d 0x4e 0x4e 0x46 ,
mid  :0x72 0x73 0x73 0x72 0x68 0x69 0x6c 0x71 0x6e ,0x65 0x65 0x63 0x61 0x68 0x70 0x70 0x72 0x6c ,
      0x63 0x62 0x6d 0x6c 0x6a 0x6a 0x6b 0x6b 0x6b ,0x63 0x62 0x64 0x5d 0x69 0x69 0x6a 0x6a 0x62 ,
max  :0x8e 0x8f 0x90 0x8f 0x84 0x85 0x88 0x8d 0x8a ,0x82 0x81 0x7f 0x7f 0x85 0x8c 0x8b 0x8f 0x89 ,
      0x7f 0x7f 0x89 0x8a 0x86 0x84 0x86 0x86 0x88 ,0x80 0x7f 0x81 0x7a 0x85 0x86 0x86 0x86 0x7f ,
range:0x38 0x38 0x39 0x39 0x37 0x37 0x38 0x38 0x37 ,0x39 0x37 0x38 0x3b 0x3a 0x37 0x36 0x39 0x3a ,
      0x38 0x39 0x38 0x3b 0x38 0x34 0x36 0x35 0x39 ,0x3a 0x3a 0x39 0x39 0x38 0x39 0x38 0x38 0x39 ,
cs 1:
the read training result:
DQS0:0x3e, DQS1:0x3d, DQS2:0x42, DQS3:0x3d,
min  : 0xb  0x9  0xb  0xb  0x1  0x1  0x3  0x5 , 0x5  0x5  0x2  0x2  0xa  0xe  0xf 0x10 ,
       0x3  0x1 0x10  0xe  0xd  0xd  0xb  0xb , 0x7  0x6  0xa  0x2  0xd  0xe  0xd  0xc ,
mid  :0x29 0x27 0x29 0x29 0x1f 0x1f 0x21 0x23 ,0x23 0x23 0x21 0x20 0x27 0x2c 0x2d 0x2e ,
      0x21 0x20 0x2d 0x2d 0x2a 0x2a 0x28 0x29 ,0x25 0x25 0x28 0x20 0x2b 0x2b 0x2b 0x29 ,
max  :0x47 0x45 0x47 0x47 0x3d 0x3d 0x3f 0x42 ,0x42 0x42 0x40 0x3f 0x45 0x4b 0x4b 0x4d ,
      0x40 0x3f 0x4b 0x4c 0x47 0x48 0x46 0x47 ,0x43 0x44 0x46 0x3f 0x49 0x49 0x4a 0x47 ,
range:0x3c 0x3c 0x3c 0x3c 0x3c 0x3c 0x3c 0x3d ,0x3d 0x3d 0x3e 0x3d 0x3b 0x3d 0x3c 0x3d ,
      0x3d 0x3e 0x3b 0x3e 0x3a 0x3b 0x3b 0x3c ,0x3c 0x3e 0x3c 0x3d 0x3c 0x3b 0x3d 0x3b ,
the write training result:
DQS0:0x39, DQS1:0x30, DQS2:0x36, DQS3:0x2c,
min  :0x54 0x56 0x56 0x56 0x4c 0x4e 0x50 0x54 0x52 ,0x49 0x4a 0x47 0x44 0x4c 0x54 0x56 0x57 0x4f ,
      0x47 0x45 0x51 0x4f 0x4e 0x50 0x50 0x51 0x4f ,0x45 0x45 0x48 0x40 0x4c 0x4c 0x4e 0x4d 0x46 ,
mid  :0x70 0x72 0x72 0x72 0x67 0x69 0x6c 0x70 0x6d ,0x65 0x66 0x63 0x61 0x68 0x70 0x71 0x73 0x6c ,
      0x63 0x62 0x6d 0x6c 0x6a 0x6a 0x6b 0x6b 0x6b ,0x62 0x62 0x64 0x5d 0x68 0x68 0x6a 0x69 0x62 ,
max  :0x8d 0x8e 0x8f 0x8e 0x83 0x84 0x88 0x8c 0x89 ,0x82 0x82 0x7f 0x7f 0x85 0x8c 0x8c 0x8f 0x89 ,
      0x7f 0x7f 0x89 0x89 0x86 0x85 0x86 0x86 0x88 ,0x7f 0x7f 0x80 0x7a 0x84 0x85 0x86 0x85 0x7f ,
range:0x39 0x38 0x39 0x38 0x37 0x36 0x38 0x38 0x37 ,0x39 0x38 0x38 0x3b 0x39 0x38 0x36 0x38 0x3a ,
      0x38 0x3a 0x38 0x3a 0x38 0x35 0x36 0x35 0x39 ,0x3a 0x3a 0x38 0x3a 0x38 0x39 0x38 0x38 0x39 ,
CA Training result:
cs:0 min  :0x46 0x40 0x41 0x40 0x40 0x3b 0x42 ,0x47 0x41 0x44 0x40 0x43 0x3d 0x41 ,
cs:0 mid  :0x83 0x81 0x7f 0x80 0x7d 0x7d 0x72 ,0x85 0x82 0x81 0x7f 0x80 0x7e 0x71 ,
cs:0 max  :0xc1 0xc2 0xbd 0xc0 0xba 0xbf 0xa3 ,0xc3 0xc4 0xbf 0xbf 0xbe 0xbf 0xa1 ,
cs:0 range:0x7b 0x82 0x7c 0x80 0x7a 0x84 0x61 ,0x7c 0x83 0x7b 0x7f 0x7b 0x82 0x60 ,
cs:1 min  :0x42 0x43 0x40 0x41 0x3e 0x3f 0x40 ,0x45 0x44 0x41 0x40 0x40 0x40 0x40 ,
cs:1 mid  :0x83 0x81 0x7f 0x7f 0x7e 0x7c 0x72 ,0x85 0x82 0x80 0x7e 0x7f 0x7e 0x72 ,
cs:1 max  :0xc4 0xbf 0xbf 0xbd 0xbe 0xb9 0xa4 ,0xc6 0xc1 0xc0 0xbd 0xbf 0xbd 0xa4 ,
cs:1 range:0x82 0x7c 0x7f 0x7c 0x80 0x7a 0x64 ,0x81 0x7d 0x7f 0x7d 0x7f 0x7d 0x64 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g1861e3c #orangepi (Aug 24 2023 - 19:06:02)
Trying to boot from MMC2
No misc partition
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(0d5225a4ab...) + OK
## Checking u-boot 0x00a00000 ... sha256(0ef7770a35...) + OK
## Checking fdt-1 0x00ad1f00 ... sha256(5c7da73aa1...) + OK
## Checking atf-2 0x00069000 ... sha256(6ede7a3b44...) + OK
## Checking atf-3 0x0006b000 ... sha256(fde0ef262b...) + OK
## Checking atf-4 0xfdcc1000 ... sha256(3e94d16e6a...) + OK
## Checking atf-5 0xfdcce000 ... sha256(c9eb312bf2...) + OK
## Checking atf-6 0xfdcd0000 ... sha256(befba422b8...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 613.705 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-607-gbf602aff1:cl
NOTICE:  BL31: Built : 10:16:03, Jun  5 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
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.10-rc4-armbian (Feb 23 2024 - 10:38:09 +0000)

Model: Rockchip RK3566 OPi 3B
DRAM:  8 GiB (effective 7.7 GiB)
PMIC:  RK8090 (on=0x40, off=0x00)
Core:  338 devices, 32 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe2c0000: 2, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Rockchip RK3566 OPi 3B
download key pressed, entering download mode...resetting ...
DDR V1.18 f366f69a7d typ 23/07/17-15:48:58
ln
LP4/4x derate en, other dram:1x trefi
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: 24ps, dqs1: -72ps, dqs2: -48ps, dqs3: -120ps,
tdqss: cs1 dqs0: -24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -96ps,

change to: 324MHz
clk skew:0x61

change to: 528MHz
clk skew:0x58

change to: 780MHz
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x3c
cs 0:
the read training result:
DQS0:0x3f, DQS1:0x3c, DQS2:0x40, DQS3:0x3b,
min  : 0xc  0xb  0xd  0xd  0x1  0x3  0x5  0x7 , 0x4  0x5  0x2  0x1  0x9  0xd  0xf 0x10 ,
       0x3  0x1 0x10  0xf  0xc  0xd  0xc  0xc , 0x5  0x3  0x8  0x1  0xc  0xc  0xc  0xb ,
mid  :0x29 0x28 0x2a 0x2a 0x20 0x20 0x23 0x24 ,0x22 0x23 0x21 0x1f 0x27 0x2b 0x2c 0x2e ,
      0x20 0x1f 0x2c 0x2c 0x28 0x29 0x29 0x28 ,0x23 0x22 0x26 0x1f 0x29 0x29 0x2a 0x28 ,
max  :0x47 0x46 0x48 0x48 0x3f 0x3d 0x41 0x42 ,0x41 0x42 0x40 0x3d 0x45 0x4a 0x4a 0x4c ,
      0x3d 0x3d 0x49 0x4a 0x44 0x45 0x46 0x45 ,0x41 0x41 0x44 0x3d 0x46 0x47 0x48 0x45 ,
range:0x3b 0x3b 0x3b 0x3b 0x3e 0x3a 0x3c 0x3b ,0x3d 0x3d 0x3e 0x3c 0x3c 0x3d 0x3b 0x3c ,
      0x3a 0x3c 0x39 0x3b 0x38 0x38 0x3a 0x39 ,0x3c 0x3e 0x3c 0x3c 0x3a 0x3b 0x3c 0x3a ,
the write training result:
DQS0:0x3f, DQS1:0x33, DQS2:0x36, DQS3:0x2c,
min  :0x5b 0x5e 0x5d 0x5d 0x53 0x54 0x56 0x5a 0x59 ,0x4b 0x4d 0x49 0x47 0x4e 0x57 0x57 0x58 0x52 ,
      0x47 0x46 0x51 0x50 0x4e 0x50 0x50 0x51 0x4f ,0x47 0x45 0x48 0x41 0x4c 0x4d 0x4e 0x4e 0x46 ,
mid  :0x77 0x79 0x79 0x78 0x6e 0x6f 0x72 0x76 0x74 ,0x68 0x68 0x65 0x63 0x6b 0x73 0x73 0x75 0x6f ,
      0x63 0x62 0x6d 0x6d 0x6a 0x6a 0x6b 0x6b 0x6b ,0x63 0x62 0x64 0x5d 0x68 0x69 0x6a 0x6a 0x62 ,
max  :0x94 0x94 0x96 0x94 0x8a 0x8b 0x8e 0x92 0x90 ,0x85 0x84 0x82 0x80 0x88 0x8f 0x8f 0x92 0x8c ,
      0x7f 0x7e 0x89 0x8a 0x86 0x84 0x86 0x86 0x88 ,0x80 0x7f 0x81 0x7a 0x85 0x86 0x87 0x86 0x7f ,
range:0x39 0x36 0x39 0x37 0x37 0x37 0x38 0x38 0x37 ,0x3a 0x37 0x39 0x39 0x3a 0x38 0x38 0x3a 0x3a ,
      0x38 0x38 0x38 0x3a 0x38 0x34 0x36 0x35 0x39 ,0x39 0x3a 0x39 0x39 0x39 0x39 0x39 0x38 0x39 ,
cs 1:
the read training result:
DQS0:0x3e, DQS1:0x3d, DQS2:0x42, DQS3:0x3c,
min  : 0xb  0x9  0xb  0xb  0x1  0x1  0x4  0x6 , 0x5  0x5  0x2  0x2  0xa  0xe  0xf 0x10 ,
       0x3  0x1 0x10  0xf  0xc  0xc  0xb  0xb , 0x5  0x5  0x9  0x1  0xc  0xc  0xc  0xb ,
mid  :0x29 0x27 0x29 0x29 0x1f 0x1f 0x21 0x23 ,0x23 0x23 0x21 0x20 0x27 0x2d 0x2d 0x2e ,
      0x21 0x20 0x2d 0x2d 0x29 0x2a 0x28 0x29 ,0x23 0x23 0x27 0x1f 0x2a 0x2a 0x2a 0x28 ,
max  :0x47 0x46 0x47 0x47 0x3d 0x3d 0x3f 0x41 ,0x42 0x42 0x40 0x3f 0x45 0x4c 0x4b 0x4d ,
      0x40 0x3f 0x4b 0x4c 0x47 0x48 0x46 0x47 ,0x41 0x42 0x45 0x3e 0x48 0x48 0x49 0x46 ,
range:0x3c 0x3d 0x3c 0x3c 0x3c 0x3c 0x3b 0x3b ,0x3d 0x3d 0x3e 0x3d 0x3b 0x3e 0x3c 0x3d ,
      0x3d 0x3e 0x3b 0x3d 0x3b 0x3c 0x3b 0x3c ,0x3c 0x3d 0x3c 0x3d 0x3c 0x3c 0x3d 0x3b ,
the write training result:
DQS0:0x3f, DQS1:0x33, DQS2:0x36, DQS3:0x2c,
min  :0x54 0x56 0x56 0x56 0x4c 0x4e 0x50 0x53 0x52 ,0x49 0x4a 0x47 0x44 0x4c 0x54 0x55 0x57 0x4f ,
      0x47 0x45 0x51 0x50 0x4e 0x50 0x50 0x51 0x4f ,0x49 0x49 0x4b 0x45 0x50 0x51 0x52 0x51 0x4a ,
mid  :0x70 0x72 0x72 0x71 0x67 0x69 0x6c 0x6f 0x6d ,0x65 0x66 0x63 0x61 0x68 0x70 0x70 0x73 0x6c ,
      0x63 0x62 0x6d 0x6d 0x6a 0x6a 0x6b 0x6b 0x6b ,0x66 0x65 0x67 0x61 0x6c 0x6d 0x6e 0x6d 0x66 ,
max  :0x8d 0x8e 0x8f 0x8d 0x83 0x84 0x88 0x8c 0x88 ,0x82 0x82 0x7f 0x7f 0x85 0x8c 0x8c 0x8f 0x89 ,
      0x7f 0x7f 0x89 0x8a 0x86 0x85 0x86 0x86 0x88 ,0x83 0x82 0x84 0x7e 0x88 0x8a 0x8b 0x8a 0x82 ,
range:0x39 0x38 0x39 0x37 0x37 0x36 0x38 0x39 0x36 ,0x39 0x38 0x38 0x3b 0x39 0x38 0x37 0x38 0x3a ,
      0x38 0x3a 0x38 0x3a 0x38 0x35 0x36 0x35 0x39 ,0x3a 0x39 0x39 0x39 0x38 0x39 0x39 0x39 0x38 ,
CA Training result:
cs:0 min  :0x46 0x40 0x41 0x40 0x40 0x3b 0x42 ,0x48 0x41 0x45 0x40 0x43 0x3d 0x41 ,
cs:0 mid  :0x83 0x81 0x7f 0x80 0x7d 0x7d 0x72 ,0x86 0x82 0x82 0x7f 0x80 0x7e 0x71 ,
cs:0 max  :0xc1 0xc2 0xbd 0xc0 0xba 0xbf 0xa3 ,0xc4 0xc4 0xbf 0xbf 0xbe 0xbf 0xa1 ,
cs:0 range:0x7b 0x82 0x7c 0x80 0x7a 0x84 0x61 ,0x7c 0x83 0x7a 0x7f 0x7b 0x82 0x60 ,
cs:1 min  :0x42 0x43 0x3f 0x41 0x3e 0x3e 0x40 ,0x45 0x44 0x41 0x40 0x40 0x40 0x40 ,
cs:1 mid  :0x83 0x81 0x7f 0x7f 0x7e 0x7b 0x72 ,0x85 0x82 0x80 0x7e 0x7f 0x7e 0x72 ,
cs:1 max  :0xc4 0xbf 0xbf 0xbd 0xbe 0xb9 0xa4 ,0xc6 0xc1 0xc0 0xbd 0xbf 0xbc 0xa5 ,
cs:1 range:0x82 0x7c 0x80 0x7c 0x80 0x7b 0x64 ,0x81 0x7d 0x7f 0x7d 0x7f 0x7c 0x65 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g1861e3c #orangepi (Aug 24 2023 - 19:06:02)
Trying to boot from MMC2
No misc partition
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(0d5225a4ab...) + OK
## Checking u-boot 0x00a00000 ... sha256(0ef7770a35...) + OK
## Checking fdt-1 0x00ad1f00 ... sha256(5c7da73aa1...) + OK
## Checking atf-2 0x00069000 ... sha256(6ede7a3b44...) + OK
## Checking atf-3 0x0006b000 ... sha256(fde0ef262b...) + OK
## Checking atf-4 0xfdcc1000 ... sha256(3e94d16e6a...) + OK
## Checking atf-5 0xfdcce000 ... sha256(c9eb312bf2...) + OK
## Checking atf-6 0xfdcd0000 ... sha256(befba422b8...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 613.612 ms


EDIT: Updated the log woth the latest working image I tested

Just to compare, this is the official Opi3B linux output:

DDR V1.18 f366f69a7d typ 23/07/17-15:48:58
ln
LP4/4x derate en, other dram:1x trefi
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: -24ps, dqs1: -96ps, dqs2: -24ps, dqs3: -120ps,
tdqss: cs1 dqs0: -24ps, dqs1: -96ps, dqs2: -48ps, dqs3: -120ps,

change to: 324MHz
clk skew:0x62

change to: 528MHz
clk skew:0x58

change to: 780MHz
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x3c
cs 0:
the read training result:
DQS0:0x3f, DQS1:0x3c, DQS2:0x40, DQS3:0x3c,
min  : 0xc  0xa  0xc  0xd  0x2  0x3  0x5  0x7 , 0x4  0x5  0x2  0x1  0x9  0xd  0xf 0x10 ,
       0x3  0x1 0x10  0xf  0xc  0xc  0xd  0xc , 0x7  0x5  0x9  0x1  0xc  0xd  0xc  0xc ,
mid  :0x29 0x28 0x2a 0x2a 0x20 0x20 0x23 0x25 ,0x22 0x23 0x20 0x1f 0x27 0x2b 0x2c 0x2e ,
      0x20 0x1f 0x2c 0x2c 0x28 0x28 0x29 0x28 ,0x24 0x23 0x27 0x1f 0x2a 0x2a 0x2a 0x29 ,
max  :0x47 0x46 0x48 0x48 0x3f 0x3d 0x41 0x43 ,0x41 0x42 0x3f 0x3d 0x45 0x4a 0x4a 0x4c ,
      0x3d 0x3d 0x49 0x4a 0x45 0x45 0x46 0x45 ,0x42 0x42 0x45 0x3e 0x48 0x48 0x49 0x47 ,
range:0x3b 0x3c 0x3c 0x3b 0x3d 0x3a 0x3c 0x3c ,0x3d 0x3d 0x3d 0x3c 0x3c 0x3d 0x3b 0x3c ,
      0x3a 0x3c 0x39 0x3b 0x39 0x39 0x39 0x39 ,0x3b 0x3d 0x3c 0x3d 0x3c 0x3b 0x3d 0x3b ,
the write training result:
DQS0:0x39, DQS1:0x30, DQS2:0x39, DQS3:0x2c,
min  :0x56 0x57 0x57 0x56 0x4e 0x4e 0x50 0x55 0x53 ,0x49 0x4a 0x47 0x44 0x4c 0x54 0x55 0x56 0x50 ,
      0x4a 0x49 0x55 0x53 0x51 0x53 0x53 0x54 0x52 ,0x46 0x45 0x48 0x41 0x4d 0x4d 0x4e 0x4e 0x46 ,
mid  :0x72 0x73 0x73 0x72 0x69 0x69 0x6c 0x71 0x6e ,0x65 0x66 0x63 0x61 0x68 0x70 0x70 0x72 0x6d ,
      0x65 0x65 0x70 0x70 0x6d 0x6d 0x6e 0x6f 0x6e ,0x63 0x62 0x64 0x5d 0x69 0x69 0x6a 0x6a 0x62 ,
max  :0x8f 0x8f 0x90 0x8f 0x84 0x85 0x88 0x8e 0x8a ,0x82 0x82 0x7f 0x7f 0x85 0x8c 0x8c 0x8f 0x8a ,
      0x81 0x81 0x8c 0x8d 0x89 0x88 0x8a 0x8a 0x8b ,0x80 0x7f 0x81 0x7a 0x85 0x86 0x86 0x86 0x7f ,
range:0x39 0x38 0x39 0x39 0x36 0x37 0x38 0x39 0x37 ,0x39 0x38 0x38 0x3b 0x39 0x38 0x37 0x39 0x3a ,
      0x37 0x38 0x37 0x3a 0x38 0x35 0x37 0x36 0x39 ,0x3a 0x3a 0x39 0x39 0x38 0x39 0x38 0x38 0x39 ,
cs 1:
the read training result:
DQS0:0x3e, DQS1:0x3d, DQS2:0x42, DQS3:0x3d,
min  : 0xb  0x9  0xb  0xb  0x1  0x1  0x4  0x6 , 0x5  0x5  0x2  0x2  0xa  0xe  0xf 0x10 ,
       0x3  0x1 0x10  0xf  0xc  0xc  0xb  0xb , 0x6  0x6  0xa  0x2  0xe  0xd  0xd  0xb ,
mid  :0x29 0x27 0x29 0x29 0x1f 0x1f 0x22 0x24 ,0x23 0x23 0x21 0x20 0x27 0x2d 0x2d 0x2e ,
      0x21 0x20 0x2d 0x2d 0x29 0x2a 0x28 0x29 ,0x24 0x25 0x28 0x20 0x2b 0x2b 0x2b 0x29 ,
max  :0x47 0x46 0x47 0x47 0x3d 0x3d 0x40 0x42 ,0x42 0x42 0x40 0x3f 0x45 0x4c 0x4b 0x4d ,
      0x40 0x3f 0x4b 0x4c 0x47 0x49 0x46 0x47 ,0x43 0x44 0x46 0x3f 0x49 0x49 0x4a 0x47 ,
range:0x3c 0x3d 0x3c 0x3c 0x3c 0x3c 0x3c 0x3c ,0x3d 0x3d 0x3e 0x3d 0x3b 0x3e 0x3c 0x3d ,
      0x3d 0x3e 0x3b 0x3d 0x3b 0x3d 0x3b 0x3c ,0x3d 0x3e 0x3c 0x3d 0x3b 0x3c 0x3d 0x3c ,
the write training result:
DQS0:0x39, DQS1:0x30, DQS2:0x39, DQS3:0x2c,
min  :0x54 0x56 0x56 0x56 0x4d 0x4e 0x50 0x53 0x52 ,0x49 0x4a 0x48 0x45 0x4d 0x54 0x55 0x58 0x50 ,
      0x47 0x46 0x51 0x50 0x4e 0x50 0x50 0x51 0x50 ,0x46 0x45 0x47 0x41 0x4c 0x4c 0x4e 0x4d 0x46 ,
mid  :0x71 0x72 0x72 0x72 0x68 0x69 0x6c 0x6f 0x6e ,0x65 0x66 0x63 0x62 0x69 0x70 0x70 0x74 0x6d ,
      0x63 0x62 0x6d 0x6d 0x6a 0x6a 0x6b 0x6c 0x6c ,0x62 0x62 0x64 0x5d 0x68 0x68 0x6a 0x69 0x62 ,
max  :0x8e 0x8f 0x8f 0x8e 0x83 0x85 0x88 0x8c 0x8a ,0x82 0x82 0x7f 0x7f 0x86 0x8c 0x8c 0x90 0x8a ,
      0x7f 0x7f 0x8a 0x8a 0x86 0x85 0x87 0x87 0x88 ,0x7f 0x7f 0x81 0x79 0x84 0x85 0x87 0x86 0x7f ,
range:0x3a 0x39 0x39 0x38 0x36 0x37 0x38 0x39 0x38 ,0x39 0x38 0x37 0x3a 0x39 0x38 0x37 0x38 0x3a ,
      0x38 0x39 0x39 0x3a 0x38 0x35 0x37 0x36 0x38 ,0x39 0x3a 0x3a 0x38 0x38 0x39 0x39 0x39 0x39 ,
CA Training result:
cs:0 min  :0x46 0x40 0x41 0x3f 0x40 0x3b 0x41 ,0x47 0x41 0x44 0x3f 0x43 0x3d 0x41 ,
cs:0 mid  :0x83 0x81 0x7f 0x7f 0x7d 0x7c 0x72 ,0x85 0x82 0x81 0x7f 0x80 0x7e 0x71 ,
cs:0 max  :0xc1 0xc2 0xbd 0xc0 0xba 0xbe 0xa3 ,0xc3 0xc4 0xbf 0xbf 0xbe 0xbf 0xa1 ,
cs:0 range:0x7b 0x82 0x7c 0x81 0x7a 0x83 0x62 ,0x7c 0x83 0x7b 0x80 0x7b 0x82 0x60 ,
cs:1 min  :0x42 0x43 0x3f 0x41 0x3e 0x3e 0x40 ,0x45 0x44 0x41 0x40 0x40 0x40 0x40 ,
cs:1 mid  :0x83 0x81 0x7f 0x7f 0x7e 0x7b 0x72 ,0x85 0x82 0x80 0x7e 0x7f 0x7e 0x72 ,
cs:1 max  :0xc4 0xc0 0xbf 0xbd 0xbe 0xb9 0xa4 ,0xc6 0xc1 0xc0 0xbd 0xbf 0xbd 0xa4 ,
cs:1 range:0x82 0x7d 0x80 0x7c 0x80 0x7b 0x64 ,0x81 0x7d 0x7f 0x7d 0x7f 0x7d 0x64 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g1861e3c #orangepi (Aug 24 2023 - 19:06:02)
Trying to boot from MMC2
No misc partition
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(2f01bd8955...) + OK
## Checking uboot 0x00a00000 ... sha256(ad4ca03b61...) + OK
## Checking fdt 0x00b45168 ... sha256(5c6babd1aa...) + OK
## Checking atf-2 0xfdcc9000 ... sha256(f1fecab971...) + OK
## Checking atf-3 0xfdcd0000 ... sha256(d7aa45eb18...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 643.343 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-152-g4e725b15f:cl
NOTICE:  BL31: Built : 10:51:13, Jul 15 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
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 2017.09-orangepi (Apr 24 2024 - 19:03:26 +0800)

Model: Orange Pi 3B
PreSerial: 2, raw, 0xfe660000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: ed233000
Relocation fdt: eb9f5e30 - eb9fecc8
CR: M/C/I
Using default environment

no mmc device at slot 1
dwmmc@fe2b0000: 0, dwmmc@fe2c0000: 2, sdhci@fe310000: 1 (eMMC)
Bootdev(atags): mmc 1
MMC1: HS200, 200Mhz
PartType: EFI
DM: v1
boot mode: recovery (misc)
boot mode: None
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
vdd_cpu init 900000 uV
PMIC:  RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
Failed to get scmi clk dev
dmc_fsp failed, ret=-19
Model: Orange Pi 3B
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 528000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 1200000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 200000 KHz
  armclk 816000 KHz
  aclk_bus 150000 KHz
  pclk_bus 100000 KHz
  aclk_top_high 300000 KHz
  aclk_top_low 200000 KHz
  hclk_top 150000 KHz
  pclk_top 100000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 100000 KHz
Net:   eth1: ethernet@fe010000
Hit key to stop autoboot('CTRL+C'):  0
switch to partitions #0, OK
mmc0 is current device
dwmmc@fe2b0000: 0 (SD)
dwmmc@fe2c0000: 2
sdhci@fe310000: 1 (eMMC)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
3413 bytes read in 2 ms (1.6 MiB/s)
## Executing script at 00c00000
Boot script loaded from mmc 0
reading /orangepiEnv.txt
134 bytes read in 2 ms (65.4 KiB/s)
reading /uInitrd
15770083 bytes read in 1323 ms (11.4 MiB/s)
reading /Image
35064320 bytes read in 2939 ms (11.4 MiB/s)
reading /dtb/rockchip/rk3566-orangepi-3b.dtb
166360 bytes read in 17 ms (9.3 MiB/s)
reading /dtb/rockchip/overlay/rk356x-fixup.scr
2756 bytes read in 3 ms (896.5 KiB/s)
Applying kernel provided DT fixup script (rk356x-fixup.scr)
## Executing script at 09000000
Fdt Ramdisk skip relocation
## Loading init Ramdisk from Legacy Image at 0a200000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    15770019 Bytes = 15 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 0x08300000
   Booting using the fdt blob at 0x08300000
   reserving fdt memory region: addr=8300000 size=8e000
  'reserved-memory' ramoops@110000: addr=110000 size=f0000
   Using Device Tree in place at 0000000008300000, end 0000000008390fff
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
== DO RELOCATE == Kernel from 0x00280000 to 0x00400000
Total: 5531.439 ms

Starting kernel ...


orangepi3b login: orangepi (automatic login)

  ___  ____ ___   _____ ____
 / _ \|  _ \_ _| |___ /| __ )
| | | | |_) | |    |_ \|  _ \
| |_| |  __/| |   ___) | |_) |
 \___/|_|  |___| |____/|____/

Welcome to Orange Pi 1.0.6 Bookworm with Linux 5.10.160-rockchip-rk356x

System load:   74%              Up time:       0 min
Memory usage:  2% of 7.51G      IP:
CPU temp:      40°C             Usage of /:    5% of 56G

[ General system configuration (beta): orangepi-config ]

orangepi@orangepi3b:~$

Ok it seems like Dietpi recognizes the mask key is pressed, but it is not, and it happens only with DietPi image

EDIT:

Armbian versions with kernel 6+ also have the same problem, it seems for some reason only versions with older firmware can boot fine… I’m just don’t know why

Well @MichaIng it seems there’s an problem with u-boot from DietPi on Orangepi 3B board. How can I install a specific u-boot into Dietpi, like the one from Orangepi SDK?

Ok, I bought the new Opi 3B version (aka 2.1) and DietPi can boot without problem, and my NVME SSD is working, so the problem is my board. I really don’t know if DietPi is the culprit, I believe it’s not.

Strange enough, I got DietPi working in my defective board doing these steps:

1 - Compile the official Opi 3b uboot following the steps from:

Orange Pi 3B - Wiki-Orange Pi

2 - Save the file somewhere.
3 - Burn the official Opi Linux into eMMC
4 - Burn the DietPi image into sd card
5 - Be prepared to insert the sdcard into Opi 3B, but don’t do it yet
6- Starting boot the Opi 3B from NVME and after 2 seconds or soo, quickly insert the SD Card containing DietPi
7 - That way, DietPi will start with the Opi official linux bootloader.
8 - Now install the uboot file you just compiled into DietPi
9 - using the dietpi menu, burn the uboot into sd card
10 - now you have a bootable dietpi in a defective board

I believe the Opi team knows about this problem, that’s why their uboot works every time, and maybe that’s why they made a new board version.

See reference about the NVME problem:

Orange pi 3b NVME problem - Troubleshooting - DietPi Community Forum

Also, in the new Opi 3B board, ethernet is not working with DietPi (that’s another thing).

@MichaIng @Joulinar I’m using for months now the latest dietpi version, but with the original u-boot from Orangepi package (I believe it is based on kernel 5.x). Any problem with that?

As long as it’s U-Boot only, and it does boot (load the /boot/boot.scr), no problem with that. Sticking with an old OS kernel can become a security issue. But as far as I know, for the bootloader in a home server/device SBC scenario, it is uncritical.

Interesting this “download key pressed, entering download mode…resetting …” might be indeed to issue? It sees all MMC devices/slots at first, but tries only and fails on MMC 2, while the correct one would be MMC 0.

So yeah, reading your next posts, same analysis. The Armbian-based U-Boot is much newer mainline U-Boot. But it should be actually newer v2024.04: orangepi3b: bump u-boot to Kwiboo's `rk3xxx-2024.04` · armbian/build@80262fa · GitHub
Our latest image ships with this version already. However, generally it is not so rare that mainline U-Boot with some patched support for newer SBCs contains certain bugs. They are tested, but not every bug appears with every device/in every situation, as you can see, and the Orange Pi 3B is at community support only.

Mainline U-Boot got Orange Pi 3B support quite recently: board: rockchip: Add Xunlong Orange Pi 3B · u-boot/u-boot@a52099b · GitHub
Will be released October. But if others are facing similar issues, we could just test this release candidate in our Armbian fork, and see whether it works better.

1 Like

Well, i’m pretty sure that my board has something burned, since the bootloader was working until I put a samsung NVME 2230. After 2 days, the NVME stops working and I got this strange u-boot behavior. I belive it’s some HW problem from initial version of the board, this guy also has a NVME problem:

Funny thing, the NVME is working fine in another boards, and different NVME are working on Opi 3B.

Maybe the problem was related with some voltage difference between the boards on u-boot, idk,

Anyway, I’ll wait to the mainline u-boot and tested it.

Yesterday I pushed a U-Boot package upgrade to our APT server, which is based on mainline U-Boot. A release candidate, while the release is out already, but should not make a big difference. I triggered an image build with this bootloader: DietPi-Build · MichaIng/DietPi@64af7e9 · GitHub
Once done, you can find it here: Index of /downloads/images/testing

Of course you can also flash the bootloader image from the recent linux-u-boot-orangepi3b-edge package manually.

https://docs.armbian.com/User-Guide_Board-Support-Rules/#criteria-for-supported

I see some work related to this board done by Armbian … so I guess support is still better then Dietpi. This looks more like a business decision?

Building from fork now upgraded Dietpi freeloader status to official.

“A freeloader is a person who takes things from others without paying for them or giving anything in return .” (ChatGpt) .

Yes Igor we need to do this as you personally blocked us from contributing to Armbian on your forum and GitHub. Means we would love to contribute but you simply don’t want. But this you know.

:rofl: You have a strange perspective on what love is.

Git has a public history. From 14397 commits to Armbian, Dietpi in 11 years contributed 3 (three) trivial commits:

https://github.com/armbian/build/commits?author=MichaIng

There is one from 2016 from Fourdee:

https://github.com/armbian/build/commits?author=Fourdee

and you

https://github.com/Joulinar

never contributed to (what is publicly visible) any other open source project. If you are blocked or not, that changes nothing.

And now you should be clever enough to imagine why Fourdee was not exactly motivated to contribute, after being personally insulted by you again and again, and why I did not want to warm up this fight and started to contribute very carefully, before you started to heavily and personally insult me as well, and banned me from Armbian GitHub orga to not only demotivate me, but prevent me from contributing to Armbian.

Well, I stopped to reason with you, I tried to ignore you for the best of the two of us, but you keep wasting days of your “valuable” time to crawl around in our forum with a different name and different email, spreading lies and nonsense, making a fool of yourself. I hence silenced you now, for your own good. Go work on Armbian instead of wasting your time here.

I cannot imagine that I am dealing with an adult here …

4 Likes

Just wanted to chime in that I was having a similar issue. Orange pi 3b that would boot once, and then fail on every reboot. I’m pretty sure its an older model, though I don’t know how I’d tell. Mainly making this comment to confirm using the linux-u-boot-orangepi3b-edge package fixed it for me.

1 Like