No boot from SD card on Orange Pi 4 LTS

I’m trying to get Manjaro running on the Orange Pi 4 LTS. I’ve tried the Plasma image as well as the Minimal image (both 23.02). Either way, it reports this on the serial console and stops:

Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 265
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=30436MB
FwPartOffset=2000 , 0
StorageInit ok = 189852
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part:  0, name:          primary, start:0xf424, size:0xe4e1d
GPT part:  1, name:          primary, start:0xf4241, size:0xabad9e
no find partition:uboot.
LoadTrust Addr:0x4000
LoadTrust Addr:0x4400
LoadTrust Addr:0x4800
LoadTrust Addr:0x4c00
LoadTrust Addr:0x5000
LoadTrust Addr:0x5400
LoadTrust Addr:0x5800
LoadTrust Addr:0x5c00
Addr:0x4000 No find trust.img!
LoadTrustBL error:-3
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04

I take it this means it doesn’t recognize the boot partition?

I can boot the Ubuntu image from the Orange Pi website, using the same SD card, so the board itself or the card isn’t faulty.

I figured it out. Booted Ubuntu from the SD, copied it to the eMMC and suddenly Manjaro boots from the SD.

I would like to find out why, though. Does installing an officially supported Linux to the eMMC change the bootloader? Or does it create a boot partition on the eMMC that then chains to the SD card?

1 Like

Looks like you’re having bsp uboot in emmc.

Uboot 2019 is quiet old so I suspect there is uboot clash.

I will have to understand what you had in emmc when trying to boot from sdcard with manjaro in it.

I can confirm you had bsp uboot on emmc that’s overriding sdcard boot for some reason.

As you can see we use 2023 uboot on our images.

1 Like

There was an Android image on eMMC (which came pre-flashed with the board).

Unfortunately, I have since run into a new problem. I’ve had Manjaro up and running and then updated everything I could using pamac. Since then, it doesn’t boot anymore, but doesn’t give any error messages, it just sits at a black screen with a blinking cursor. I’m going to reset the SD with the official image and see if I can reproduce this issue.

That sounds like plasma 6 issue which we’re facing on x86 also.

I will have to see what will be a permanent solution for plasma6 not loading the login screen on panfrost.

For the booting issue when you have Android on emmc then you have to press and hold maskrom button on the boot while booting from sdcard.

I’m on the stable branch, there is no Plasma 6 yet.

But I think I found the problem. I did the upgrade with pacman this time, and at the very end of the upgrade, the creation of initramfs fails with “module not found: rtc_rk808”. There is an initramfs-linux.img on the BOOT_MNJRO partition, but I assume it is corrupted.