I thought some stupidity on my side for a while: At some point the PROJECT=Allwinner ARCH=arm DEVICE=H3 UBOOT_SYSTEM="orangepi-pc" make image doesn't generate bootable sd card images any more. I was just using some previously written card with an older image and just exchanged the KERNEL and SYSTEM with the newly compiled one (on the first partition). Which works without any problems. Only problem: It is quite tedious (slow) to clone a card to get a fresh booting version that way. Diffing the scripts/(mk)image files there are some changes ... but they do not look very dramatic to me. Any ideas? Thank you!
Compiling from master doesn't generate bootable Orange Pi PC images any more
-
ds000 -
March 27, 2024 at 8:18 PM -
Thread is Unresolved
-
-
If swapping newer KERNEL/SYSTEM to older SD card works the issue is related to u-boot which is installed to the SD card, and the card has an old version; a newly created card has a newer (non-working) version.
jernej ?
-
I unfortunately don't have OrangePi PC to test this. I checked OrangePi Plus2E, but everything works fine. Can you connect serial console and see what, if anything, is outputed during boot with non-working U-Boot?
-
I confirm that with any of the following images, the Orange Pi PC does NOT boot:
1. current stable image LibreELEC-H3.arm-12.0.0-orangepi-pc.img.gz
2. current nightly for 12.0 LibreELEC-H3.arm-12.0-nightly-20240605-61123a8-orangepi-pc.img.gz
3. current nightly for 13.0 LibreELEC-H3.arm-13.0-nightly-20240606-58f0779-orangepi-pc.img.gzHere is the serial console output for 2:
Display Spoiler
Code
Display MoreU-Boot SPL 2024.01 (Jun 05 2024 - 13:19:28 +0000) DRAM: 1024 MiB Trying to boot from MMC1 U-Boot 2024.01 (Jun 05 2024 - 13:19:28 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi PC DRAM: 1 GiB Core: 58 devices, 17 uclasses, devicetree: separate WDT: Not starting watchdog@1c20ca0 MMC: mmc@1c0f000: 0 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: serial@1c28000 Out: serial@1c28000 Err: serial@1c28000 Net: No ethernet found. Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf 1: LibreELEC Retrieving file: /KERNEL append: boot=UUID=0506-0815 disk=UUID=c7985365-59e0-4fa8-bc24-81ba168d0d6d quiet console=ttyS0,115200 console=tty1 Retrieving file: /sun8i-h3-orangepi-pc.dtb Kernel image @ 0x42000000 [ 0x000000 - 0x9cfe48 ] ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 Working FDT set to 43000000 Loading Device Tree to 49ff4000, end 49fff32e ... OK Working FDT set to 49ff4000 Starting kernel ...
And for 3:
Display Spoiler
Code
Display MoreU-Boot SPL 2024.04 (Jun 06 2024 - 10:12:07 +0000) DRAM: 1024 MiB Trying to boot from MMC1 U-Boot 2024.04 (Jun 06 2024 - 10:12:07 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi PC DRAM: 1 GiB Core: 58 devices, 17 uclasses, devicetree: separate WDT: Not starting watchdog@1c20ca0 MMC: mmc@1c0f000: 0 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: serial@1c28000 Out: serial@1c28000 Err: serial@1c28000 Net: No ethernet found. Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf 1: LibreELEC Retrieving file: /KERNEL append: boot=UUID=0606-5509 disk=UUID=7dd3a53b-8a56-4bed-8e37-d60a6fadd293 quiet console=ttyS0,115200 console=tty1 Retrieving file: /sun8i-h3-orangepi-pc.dtb Kernel image @ 0x42000000 [ 0x000000 - 0x9fdf58 ] ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 Working FDT set to 43000000 Loading Device Tree to 49ff4000, end 49fff32e ... OK Working FDT set to 49ff4000 Starting kernel ...
-
jernej, is there any further information which would be useful for debugging this issue?
-
Tried to find when it was broken. u-boot 2023.10 works OK. Starting from 2024.01 my Orange Pi PC doesn't boot.
When I delete these patches from projects/Allwinner/devices/H3/patches/u-boot/:
0012-DO-NOT-MERGE-sunxi-psci-Delegate-PSCI-to-SCPI.patch
0013-DO-NOT-MERGE-sunxi-Enable-SCP-SCPI-on-A33-as-well.patchsystem boots normally but can not be woken up from suspend via on-board button.
-
I checked OrangePi Plus2E, but everything works fine.
Tried plus2e image on my Orange Pi PC and it worked.
After some research it turned out that CONFIG_REMOTEPROC_SUN6I_AR100 in u-boot is enabled for orangepi_plus2e but not for orangepi_pc.
The reason is that in this commit: https://github.com/LibreELEC/Libr…0b9c2db50a03683
projects/Allwinner/patches/u-boot/0012-DO-NOT-MERGE-sunxi-Enable-remoteproc-on-H3.patch
is replaced by
projects/Allwinner/patches/u-boot/0011-DO-NOT-MERGE-sunxi-Enable-remoteproc-on-some-H3-boar.patch
which enables AR100 only for Orange Pi One and Orange Pi Plus2E.
After enabling AR100 for Orange Pi PC, it works fine too.