leeboby / opizero3-uboot-dtb

保存opizero3 1.5gb和4gb版本的开发板linux6.x系统需要替换的u-boot和dtb文件
27 stars 3 forks source link

opizero3 4GB does not boot beyond "Trying to boot from MMC1" #1

Closed halmartin closed 11 months ago

halmartin commented 11 months ago

I tried both bookworm and jammy with several micro SD cards (including name brands like Samsung) and my board (4GB model) never gets further than the following:

U-Boot SPL 2021.07-orangepi (Jul 15 2023 - 15:02:23 +0800)
DRAM: 4096 MiB
Trying to boot from MMC1

I tried both:

I copied the 4GB dtb and u-boot as instructed:

$ sudo mount /dev/sda1 /mnt/
$ sudo cp sun50i-h616-orangepi-zero3-4gb.dtb /mnt/boot/dtb/allwinner/sun50i-h616-orangepi-zero3.dtb
$ sudo dd bs=1k seek=8 if=u-boot-sunxi-with-spl-opizero3-4gb.bin of=/dev/sda
631+1 records in
631+1 records out
646523 bytes (647 kB, 631 KiB) copied, 0.156442 s, 4.1 MB/s

I can confirm that my board is working, because when I attempt to boot without an SD card inserted, I get the following UART output:

U-Boot SPL 2021.07-orangepi (Jul 15 2023 - 15:02:23 +0800)
DRAM: 4096 MiB
Trying to boot from MMC1
[53]HELLO! BOOT0 is starting!
[56]BOOT0 commit : 3ae35eb
[59]set pll start
[61]periph0 has been enabled
[64]set pll end
[67]unknow PMU
[69]unknow PMU
[73]PMU: AXP1530
[77]dram return write ok
[80]board init ok
[81]DRAM BOOT DRIVE INFO: V0.651
[85]the chip id is 0x2000
[87]chip id check OK
[98]DRAM_VCC set to 1100 mv
[101]DRAM CLK =792 MHZ
[103]DRAM Type =8 (3:DDR3,4:DDR4,7:LPDDR3,8:LPDDR4)
[114]Actual DRAM SIZE =4096 M
[117]DRAM SIZE =4096 MBytes, para1 = 310a, para2 = 10001000, dram_tpr13 = 2006c61
[130]DRAM simple test OK.
[133]rtc standby flag is 0x0, super standby flag is 0x0
[138]dram size =4096
[141]Use rtc to store dram tuning para
[146]spinor id is: 5e 40 18, read cmd: 0b
[150]Succeed in reading toc file head.
[154]The size of toc is 9c000.
[317]Entry_name        = u-boot
[322]Entry_name        = monitor
[326]Entry_name        = dtb
[330]Jump to second Boot.
NOTICE:  BL3-1: v1.0(debug):05d6c57
NOTICE:  BL3-1: Built : 13:35:35, 2021-10-28
NOTICE:  BL3-1 commit: 8
NOTICE:  cpuidle init version V2.0
ERROR:   Error initializing runtime service tspd_fast
NOTICE:  BL3-1: Preparing for EL3 exit to normal world
NOTICE:  BL3-1: Next image address = 0x4a000000
NOTICE:  BL3-1: Next image spsr = 0x1d3<FF>

U-Boot 2018.05 (Jul 10 2023 - 10:32:18 +0800) Allwinner Technology

[00.408]CPU:   Allwinner Family
[00.411]Model: sun50iw9
I2C:   ready
[00.415]DRAM:  2 GiB
[00.419]Relocation Offset is: 75f5d000
[00.439]secure enable bit: 0
[00.441]pmu_axp152_probe pmic_bus_read fail
[00.445]PMU: AXP1530
[00.451]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
[00.457]gic: sec monitor mode
[00.462]flash init start
[00.464]workmode = 0,storage type = 3
SF: Detected zb25vq128as with page size 256 Bytes, erase size 64 KiB, total 16 MiB
[00.481]sunxi flash init ok
[00.485]Loading Environment from SUNXI_FLASH... OK
[00.514]get secure storage map err
[00.517]sunxi secure storage is not supported
[00.521]usb burn from boot
delay time 0
weak:otg_phy_config
[00.535]usb prepare ok
[53]HELLO! BOOT0 is starting!
[56]BOOT0 commit : 3ae35eb
[59]set pll start
[61]periph0 has been enabled
[64]set pll end
[67]unknow PMU
[69]unknow PMU
[73]PMU: AXP1530
[77]dram return write ok
[80]board init ok
[81]DRAM BOOT DRIVE INFO: V0.651
[85]the chip id is 0x2000
[87]chip id check OK
[98]DRAM_VCC set to 1100 mv
[100]DRAM CLK =792 MHZ
[103]DRAM Type =8 (3:DDR3,4:DDR4,7:LPDDR3,8:LPDDR4)
[114]Actual DRAM SIZE =4096 M
[117]DRAM SIZE =4096 MBytes, para1 = 310a, para2 = 10001000, dram_tpr13 = 2006c61
[130]DRAM simple test OK.
[133]rtc standby flag is 0x0, super standby flag is 0x0
[138]dram size =4096
[141]Use rtc to store dram tuning para
[146]spinor id is: 5e 40 18, read cmd: 0b
[150]Succeed in reading toc file head.
[154]The size of toc is 9c000.
[312]Entry_name        = u-boot
[317]Entry_name        = monitor
[321]Entry_name        = dtb
[325]Jump to second Boot.
NOTICE:  BL3-1: v1.0(debug):05d6c57
NOTICE:  BL3-1: Built : 13:35:35, 2021-10-28
NOTICE:  BL3-1 commit: 8
NOTICE:  cpuidle init version V2.0
ERROR:   Error initializing runtime service tspd_fast
NOTICE:  BL3-1: Preparing for EL3 exit to normal world
NOTICE:  BL3-1: Next image address = 0x4a000000
NOTICE:  BL3-1: Next image spsr = 0x1d3<FF>

U-Boot 2018.05 (Jul 10 2023 - 10:32:18 +0800) Allwinner Technology

[00.403]CPU:   Allwinner Family
[00.406]Model: sun50iw9
I2C:   ready
[00.410]DRAM:  2 GiB
[00.413]Relocation Offset is: 75f5d000
[00.434]secure enable bit: 0
[00.436]pmu_axp152_probe pmic_bus_read fail
[00.440]PMU: AXP1530
[00.445]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
[00.452]gic: sec monitor mode
[00.457]flash init start
[00.459]workmode = 0,storage type = 3
SF: Detected zb25vq128as with page size 256 Bytes, erase size 64 KiB, total 16 MiB
[00.476]sunxi flash init ok
[00.480]Loading Environment from SUNXI_FLASH... OK
[00.509]get secure storage map err
[00.512]sunxi secure storage is not supported
[00.516]usb burn from boot
delay time 0
weak:otg_phy_config
[00.530]usb prepare ok
[01.333]overtime
[01.337]do_burn_from_boot usb : no usb exist
[01.341]get secure storage map err
[01.344]secure storage init fail
[01.349]update dts
[01.353]update part info
[01.357]update bootcmd
[01.359]No ethernet found.
Hit any key to stop autoboot:  0
Android's image name: sun50i_arm64
[04.895]Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.170 (orangepi@ubuntu) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #15 SMP PREEMPT Thu Jun 29 17:36:03 CST 2023
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] bootconsole [earlycon0] enabled

Could you please confirm that the u-boot release for the 4GB board is correct?

$ sha256sum u-boot-sunxi-with-spl-opizero3-4gb.bin
382ca5a45d205fdb1b09ebf3b7e83ceae0aceee849ea0e83f7925f4c4a2994ab  u-boot-sunxi-with-spl-opizero3-4gb.bin
rtissera commented 11 months ago

@halmartin I face the same situation on same 4GB board. I first suspected defective microSD slot before stumbling on this post and yours on Armbian forum.

leeboby commented 11 months ago

https://drive.google.com/drive/folders/1ek_VaZiNpCTq_H3T_e1AgKKWyXAxL9q1

First, try the official Orange Pi Linux 6.1 4GB image to see if it can boot.

halmartin commented 11 months ago

First, try the official Orange Pi Linux 6.1 4GB image to see if it can boot.

Yes, it boots:

U-Boot SPL 2021.07-orangepi (Jul 10 2023 - 22:15:11 +0800)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.9(debug):8e31faa0
NOTICE:  BL31: Built : 19:54:29, Jul  3 2023
NOTICE:  BL31: Detected Allwinner H616 SoC (1823)
NOTICE:  BL31: Found U-Boot DTB at 0x4a0827f8, model: OrangePi Zero3
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP305 on RSB
ERROR:   RSB: set run-time address: 0x10003
INFO:    Could not init RSB: -65539
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9
INFO:    Changed devicetree.

U-Boot 2021.07-orangepi (Jul 10 2023 - 22:15:11 +0800) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: OrangePi Zero3
I2C:   ready
DRAM:  4 GiB
MMC:   mmc@4020000: 0
Loading Environment from FAT... Unable to use mmc 0:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No working controllers found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3636 bytes read in 5 ms (710 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
156 bytes read in 3 ms (50.8 KiB/s)
39163 bytes read in 10 ms (3.7 MiB/s)
4203 bytes read in 8 ms (512.7 KiB/s)
Applying kernel provided DT fixup script (sun50i-h616-fixup.scr)
## Executing script at 45000000
19400812 bytes read in 1598 ms (11.6 MiB/s)
9351350 bytes read in 773 ms (11.5 MiB/s)
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=417f0000
## Loading init Ramdisk from Legacy Image at 4ff00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    19400748 Bytes = 18.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 48d7f000, end 49fff82c ... OK
   Loading Device Tree to 0000000048d0d000, end 0000000048d7efff ... OK

Starting kernel ...

1;-1fdone.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.37.2
[/usr/sbin/fsck.ext4 (1) -- /dev/mmcblk1p1] fsck.ext4 -a -C0 /dev/mmcblk1p1
opi_root: clean, 49256/169008 files, 562375/675840 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Orange Pi 1.0.0 Jammy!

Using:

80590e1ad0ba00b519f63d221903d4fefaa7c35c72044202efab845fa750ebf9  Orangepizero3_1.0.0_ubuntu_jammy_server_linux6.1.31.img

I copied the u-boot SPL out of Orangepizero3_1.0.0_ubuntu_jammy_server_linux6.1.31.img:

$ dd if=Orangepizero3_1.0.0_ubuntu_jammy_server_linux6.1.31.img bs=1k skip=8 count=635 of=u-boot-jammy.bin

(Looking at hexdump it seems that this u-boot build is actually 631k (0x0009db70 bytes), but the extra bit of padding doesn't have any bad effect)

I flashed the extracted u-boot-jammy.bin after writing Armbian_23.08.0-trunk_Orangepizero3_bookworm_current_6.1.31-1GB-2GB.img and now my board boots:

U-Boot SPL 2021.07-orangepi (Jul 10 2023 - 22:15:11 +0800)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.9(debug):8e31faa0
NOTICE:  BL31: Built : 19:54:29, Jul  3 2023
NOTICE:  BL31: Detected Allwinner H616 SoC (1823)
NOTICE:  BL31: Found U-Boot DTB at 0x4a0827f8, model: OrangePi Zero3
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP305 on RSB
ERROR:   RSB: set run-time address: 0x10003
INFO:    Could not init RSB: -65539
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9
INFO:    Changed devicetree.

U-Boot 2021.07-orangepi (Jul 10 2023 - 22:15:11 +0800) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: OrangePi Zero3
I2C:   ready
DRAM:  4 GiB
MMC:   mmc@4020000: 0
Loading Environment from FAT... Unable to use mmc 0:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No working controllers found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3259 bytes read in 3 ms (1 MiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
158 bytes read in 3 ms (50.8 KiB/s)
39163 bytes read in 9 ms (4.1 MiB/s)
4203 bytes read in 7 ms (585.9 KiB/s)
Applying kernel provided DT fixup script (sun50i-h616-fixup.scr)
## Executing script at 45000000
18189653 bytes read in 1498 ms (11.6 MiB/s)
22464520 bytes read in 1850 ms (11.6 MiB/s)
Moving Image from 0x40080000 to 0x40200000, end=417f0000
## Loading init Ramdisk from Legacy Image at 4ff00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    18189589 Bytes = 17.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 48ea7000, end 49fffd15 ... OK
   Loading Device Tree to 0000000048e35000, end 0000000048ea6fff ... OK

Starting kernel ...

Loading, please wait...
Starting systemd-udevd version 252.6-1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... 1;-1fdone.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
armbi_root: clean, 46135/114016 files, 401614/455680 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Armbian 23.08.0-trunk bookworm!

[  OK  ] Created slice system-modpr<E2><80><A6>lice - Slice /system/modprobe.
[  OK  ] Created slice system-seria<E2><80><A6> - Slice /system/serial-getty.

It seems that the u-boot-sunxi-with-spl-opizero3-4gb.bin (sha256: 382ca5a45d205fdb1b09ebf3b7e83ceae0aceee849ea0e83f7925f4c4a2994ab) provided in this repository does not boot on 4GB boards.


In summary:

It would be great if you could correct the u-boot build in this repository so that others do not have the same issue.

leeboby commented 11 months ago

I have updated the u-boot. Please help me test it again. Thank you.

halmartin commented 11 months ago

The new u-boot build (sha256: a5524c2921ebb60a42bbd5f5d4df9fb8158b4547038b6871a3e64960942fcf7b) with the build date U-Boot SPL 2021.07-orangepi (Aug 08 2023 - 16:39:36 +0800) is working :+1:

U-Boot SPL 2021.07-orangepi (Aug 08 2023 - 16:39:36 +0800)
DRAM: 4096 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.9(debug):8e31faa0
NOTICE:  BL31: Built : 19:54:29, Jul  3 2023
NOTICE:  BL31: Detected Allwinner H616 SoC (1823)
NOTICE:  BL31: Found U-Boot DTB at 0x4a0827f8, model: OrangePi Zero3
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP305 on RSB
ERROR:   RSB: set run-time address: 0x10003
INFO:    Could not init RSB: -65539
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9
INFO:    Changed devicetree.

U-Boot 2021.07-orangepi (Aug 08 2023 - 16:39:36 +0800) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: OrangePi Zero3
I2C:   ready
DRAM:  4 GiB
MMC:   mmc@4020000: 0
Loading Environment from FAT... Unable to use mmc 0:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   No ethernet found.
starting USB...
No working controllers found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3259 bytes read in 4 ms (794.9 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
207 bytes read in 4 ms (49.8 KiB/s)
39163 bytes read in 9 ms (4.1 MiB/s)
4203 bytes read in 9 ms (456.1 KiB/s)
Applying kernel provided DT fixup script (sun50i-h616-fixup.scr)
## Executing script at 45000000
18189653 bytes read in 1498 ms (11.6 MiB/s)
22464520 bytes read in 1851 ms (11.6 MiB/s)
Moving Image from 0x40080000 to 0x40200000, end=417f0000
## Loading init Ramdisk from Legacy Image at 4ff00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    18189589 Bytes = 17.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 48ea7000, end 49fffd15 ... OK
   Loading Device Tree to 0000000048e35000, end 0000000048ea6fff ... OK

Starting kernel ...

Loading, please wait...
Starting systemd-udevd version 252.6-1

Could you please provide a link to the u-boot source code?

choikangjae commented 11 months ago

I tried to flash the image like you said, but I couldn't make it boot.

  1. Downloaded Armbian_23.08.0-trunk_Orangepizero3_bookworm_current_6.1.31-1GB-2GB (debian12 server).
  2. Flash it using balenaEtcher.
  3. Download the updated dtb and u-boot.
  4. Mount it somewhere and sudo cp sun50i-h616-orangepi-zero3-4gb.dtb /mnt/boot/dtb/allwinner/sun50i-h616-orangepi-zero3.dtb.
  5. sudo dd bs=1k seek=8 if=u-boot-sunxi-with-spl-opizero3-4gb.bin of=/dev/sdax.

I tried the another bin you uploaded but didn't work either. Could you give me an advice?

halmartin commented 11 months ago

I tried the another bin you uploaded but didn't work either. Could you give me an advice?

Please provide the UART output.

choikangjae commented 11 months ago

Sorry I am too novice to understand, I couldn't find the way how to see UART output. Does that mean boot the board without SD card?

EDIT: Never mind it please. What I have done: sudo dd bs=1k seek=8 if=u-boot-sunxi-with-spl-opizero3-4gb.bin of=/dev/sda1. But actually it should be: sudo dd bs=1k seek=8 if=u-boot-sunxi-with-spl-opizero3-4gb.bin of=/dev/sda.

Now I can booted it up. Thanks for your posts here and on Armbian forum!

rtissera commented 11 months ago

@halmartin I do confirm latest blobs work for me too. @leeboby thanks for the work, could you share both your U-Boot source code for 1.5 GB and 4GB variants, and also the DTS source for 4GB variant ?

fizban99 commented 7 months ago

In my case I did not manage to boot with any 6.1 image, including this one. My orange pi has the following UART output without SD inserted:

[53]HELLO! BOOT0 is starting!
[56]BOOT0 commit : 3ae35eb
[59]set pll start
[61]periph0 has been enabled
[64]set pll end
[67]unknow PMU
[69]unknow PMU
[73]PMU: AXP1530
[77]dram return write ok
[80]board init ok
[81]DRAM BOOT DRIVE INFO: V0.651
[85]the chip id is 0x2000
[87]chip id check OK
[98]DRAM_VCC set to 1100 mv
[101]DRAM CLK =792 MHZ
[103]DRAM Type =8 (3:DDR3,4:DDR4,7:LPDDR3,8:LPDDR4)
[114]Actual DRAM SIZE =4096 M
[117]DRAM SIZE =4096 MBytes, para1 = 310a, para2 = 10001000, dram_tpr13 = 2006c61
[130]DRAM simple test OK.
[133]rtc standby flag is 0x0, super standby flag is 0x0
[138]dram size =4096
[141]Use rtc to store dram tuning para
[146]spinor id is: 5e 40 18, read cmd: 0b
[150]Succeed in reading toc file head.
[154]The size of toc is 9c000.
[317]Entry_name        = u-boot
[323]Entry_name        = monitor
[327]Entry_name        = dtb
[330]Jump to second Boot.
NOTICE:  BL3-1: v1.0(debug):05d6c57
NOTICE:  BL3-1: Built : 13:35:35, 2021-10-28
NOTICE:  BL3-1 commit: 8
NOTICE:  cpuidle init version V2.0
ERROR:   Error initializing runtime service tspd_fast
NOTICE:  BL3-1: Preparing for EL3 exit to normal world
NOTICE:  BL3-1: Next image address = 0x4a000000
NOTICE:  BL3-1: Next image spsr = 0x1d3

U-Boot 2018.05 (Jul 10 2023 - 10:32:18 +0800) Allwinner Technology

[00.409]CPU:   Allwinner Family
[00.412]Model: sun50iw9
I2C:   ready
[00.416]DRAM:  2 GiB
[00.419]Relocation Offset is: 75f5d000
[00.440]secure enable bit: 0
[00.442]pmu_axp152_probe pmic_bus_read fail
[00.446]PMU: AXP1530
[00.452]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
[00.458]gic: sec monitor mode
[00.463]flash init start
[00.465]workmode = 0,storage type = 3
SF: Detected zb25vq128as with page size 256 Bytes, erase size 64 KiB, total 16 MiB
[00.482]sunxi flash init ok
[00.486]Loading Environment from SUNXI_FLASH... OK
[00.515]get secure storage map err
[00.518]sunxi secure storage is not supported
[00.522]usb burn from boot
delay time 0
weak:otg_phy_config
[00.536]usb prepare ok
[01.339]overtime
[01.343]do_burn_from_boot usb : no usb exist
[01.347]get secure storage map err
[01.350]secure storage init fail
[01.355]update dts
[01.359]update part info
[01.363]update bootcmd
[01.365]No ethernet found.
Hit any key to stop autoboot:  0
Android's image name: sun50i_arm64
[04.901]Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.170 (orangepi@ubuntu) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #15 SMP PREEMPT Thu Jun 29 17:36:03 CST 2023
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] bootconsole [earlycon0] enabled

An the following with a 5.4 jammy:

[103]HELLO! BOOT0 is starting!
[106]BOOT0 commit : 4b34f2890a
[109]set pll start
[112]periph0 has been enabled
[115]set pll end
[118]unknow PMU
[120]unknow PMU
[124]PMU: AXP1530
[128]vaild para:1  select dram para0
[132]board init ok
[134]enable_jtag
[136]DRAM BOOT DRIVE INFO: V0.651
[139]the chip id is 0x2000
[142]chip id check OK
[152]DRAM_VCC set to 1100 mv
[155][DST] Dram DST Loop1
[180][AUTO DEBUG]32bit,2 ranks training success!
[351][DST] Lclk,0x00008888,Memtest Pass
[355][DST] Clk =792 MHz
[357][DST] R_2d
[1463][DST] R_2d_hv_D2:0x1c-0x5c,0x41(280mV),4
[1468][DST] R_2d_hv_D2:0x3c~0x44,0x40
[1472][DST] R_2d tpr6 = 0x40808080
[1481][DST] R_1st
[1496][DST] DB0 R_1st:0,2~27,26,0x0e
[1512][DST] DB1 R_1st:0,2~27,26,0x0e
[1528][DST] DB2 R_1st:0,0~27,28,0x0d
[1544][DST] DB3 R_1st:0,1~26,26,0x0d
[1547][DST] R_1st Tpr12 = 0x0d0d0e0e
[1551][DST] W_2st
[1596][DST] DB0 W_2st:0,27~49,23,0x26
[1648][DST] DB1 W_2st:0,27~52,26,0x27
[1698][DST] DB2 W_2st:0,27~51,25,0x27
[1749][DST] DB3 W_2st:0,26~51,26,0x26
[1753][DST] W_2st Tpr11 = 0x26272726
[1756][DST] R_2st
[1783][DST] DB0 R_2st:0,5~26,22,0x0f
[1810][DST] DB1 R_2st:0,4~26,23,0x0f
[1845][DST] DB2 R_2st:0,2~26,25,0x0e
[1876][DST] DB3 R_2st:0,3~26,24,0x0e
[1879][DST] R_2st Tpr12 = 0x0e0e0f0f
[2030][DST] RV_C, VW:0x3a-0x46, DW:120ps
[2117][DST] Dram DST Success
[2120]DRAM CLK =792 MHZ
[2122]DRAM Type =8 (3:DDR3,4:DDR4,7:LPDDR3,8:LPDDR4)
[2134]Actual DRAM SIZE =4096 M
[2137]DRAM SIZE =4096 MBytes, para1 = 310a, para2 = 10001000, dram_tpr13 = 2006c61
[2150]DRAM simple test OK.
[2153]rtc standby flag is 0x0, super standby flag is 0x0
[2158]dram size =4096
[2162]Use rtc to store dram tuning para
[2165]card no is 0
[2167]sdcard 0 line count 4
[2170][mmc]: mmc driver ver 2021-10-12 13:56
[2174][mmc]: b mmc 0 bias 0
[2183][mmc]: Wrong media type 0x0
[2186][mmc]: ***Try SD card 0***
[2197][mmc]: HSSDR52/SDR25 4 bit
[2200][mmc]: 50000000 Hz
[2203][mmc]: 30448 MB
[2205][mmc]: ***SD/MMC 0 init OK!!!***
[2302]Loading boot-pkg Succeed(index=0).
[2306][mmc]: b mmc 0 bias 0
[2308]Entry_name        = u-boot
[2317]Entry_name        = monitor
[2320]Entry_name        = dtbo
[2323]Entry_name        = optee
[2328]Entry_name        = dtb
[2331]mmc not para
[2333]Jump to second Boot.
NOTICE:  BL3-1: v1.0(debug):54937d5
NOTICE:  BL3-1: Built : 17:44:59, 2021-12-13
NOTICE:  BL3-1 commit: 8
NOTICE:  cpuidle init version V2.0
NOTICE:  secure os exist
MESSAGE: [0x0] TEE-CORE: OP-TEE version: 81ab7a47 #1 2020? 05? 06? ??? 02:40:04 UTC arm
NOTICE:  BL3-1: Preparing for EL3 exit to normal world
NOTICE:  BL3-1: Next image address = 0x4a000000
¦OTICE:  BL3-1: Next image spsr = 0x1d3

U-Boot 2018.05-orangepi (Jun 30 2023 - 11:55:59 +0800) Allwinner Technology

[02.422]CPU:   Allwinner Family
[02.425]Model: Orange Pi Zero 3
I2C:   FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
ready
[02.515]DRAM:  4 GiB
[02.518]Relocation Offset is: 75efe000
[02.552]secure enable bit: 0
[02.554]smc_tee_inform_fdt failed with: ffffffff
[02.559]PMU: AXP1530
FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL
[02.575]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
[02.582]gic: sec monitor mode
[02.584]flash init start
[02.587]workmode = 0,storage type = 1
[02.590][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
[02.596][mmc]: get sdc_type fail and use default host:tm1.
[02.604][mmc]: Using default timing para
[02.607][mmc]: SUNXI SDMMC Controller Version:0x40200[02.626][mmc]: card_caps:0x3000000a
[02.629][mmc]: host_caps:0x3000003f
[02.633]sunxi flash init ok
[02.636]drv_disp_init
of_clk_get: index is error,reset it.
tv_init()950 fetch tv0 err.
[02.707]drv_disp_init finish
[02.714]Loading Environment from FAT... [02.717][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
[02.723][mmc]: get sdc_type fail and use default host:tm1.
[02.731][mmc]: Using default timing para
[02.734][mmc]: SUNXI SDMMC Controller Version:0x40200[02.739][mmc]:  (SD)[02.740][mmc]: , ** Bad device mmc 1 **
Failed (-5)
[02.747]boot_gui_init:start

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     40960           61661184        10f8a986-01     83
248 bytes read in 10 ms (23.4 KiB/s)

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     40960           61661184        10f8a986-01     83
248 bytes read in 9 ms (26.4 KiB/s)
Set HDMI disp_mode to 1080p60
[02.812]tcon_tv clk get failed

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     40960           61661184        10f8a986-01     83
248 bytes read in 10 ms (23.4 KiB/s)
Set fb0_width to 1920
Set fb0_height to 1080
[02.963]boot_gui_init:finish
[02.966]usb burn from boot
delay time 0
weak:otg_phy_config
[02.979]usb prepare ok
[03.782]overtime
[03.786]do_burn_from_boot usb : no usb exist
disable nand error: FDT_ERR_BADPATH
[03.813]update dts
Hit any key to stop autoboot:  0
no mmc device at slot 1
[04.839][mmc]: card_caps:0x3000000a
[04.842][mmc]: host_caps:0x3000003f
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3584 bytes read in 10 ms (349.6 KiB/s)
## Executing script at 43100000
Boot script loaded from mmc
248 bytes read in 11 ms (21.5 KiB/s)
15162160 bytes read in 1274 ms (11.3 MiB/s)
27764808 bytes read in 2318 ms (11.4 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    27764744 Bytes = 26.5 MiB
   Load Address: 41000000
   Entry Point:  41000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    15162096 Bytes = 14.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 4918a000, end 49fffaf0 ... OK
## Linux machid: 00000000, FDT addr: bbeca5f8

Starting kernel ...

orangepizero3 login: orangepi (automatic login)

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

Welcome to Orange Pi 1.0.0 Jammy with Linux 5.4.125

System load:   108%             Up time:       1 min
Memory usage:  12% of 3.81G     IP:            192.168.188.24
CPU temp:      42°C             Usage of /:    18% of 30G

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

Last login: Sat Nov 25 20:45:59 CET 2023 on tty1
orangepi@orangepizero3:~$
fizban99 commented 7 months ago

I finally managed to boot it. I noticed that there was an updated image for jammy desktop: Orangepizero3_1.0.2_ubuntu_jammy_desktop_xfce_linux6.1.31.img, which actually worked. So I extracted the uboot and patched the armbian image with it. An now it boots on my orangepi.