Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start LE11 on Orangepi one plus #7731

Open
ComradeSerg opened this issue Mar 30, 2023 · 13 comments
Open

Can't start LE11 on Orangepi one plus #7731

ComradeSerg opened this issue Mar 30, 2023 · 13 comments
Assignees

Comments

@ComradeSerg
Copy link

I tried to replace LE10 to LE11 but after sd card creation with "LibreELEC USB-SD Creator" LE11 can't start because of error:

*** Error in mount_flash: mount_common: Could not mount UUID=1803-1707 ***

Starting debuggin shell for boot step: mount_flash... type exit to quit

but keyboard doesn't work.

I have OrangePi One Plus (allwinner H6), microSD ADATA 16GB UHS-I (class 10)

@jernejsk
Copy link
Member

Can you try to use Balena Etcher instead of LibreELEC USB-CD Creator and see if that works?

@ComradeSerg
Copy link
Author

ComradeSerg commented Apr 15, 2023

Yes, before I tried Win32DiskImager with the same outcome, but now I installed Balena Etcher and nothing changed - Could not mount UUID=1803-1707 ***

@jernejsk
Copy link
Member

Hm... I manually mount LibreELEC-H6.arm-11.0.1-orangepi-one-plus.img and checked all those UUIDs. They match, so I'm not sure what could be wrong. I don't have the board, so I can't test it directly.

However, you can try to fix them:

  1. execute blkid in that debug shell
  2. check and update, if necessary, UUID values in extlinux/extlinux.conf

@maartenjd
Copy link

I have the same issue on my orangepi-one-plus. LE10 boots normally. LE11 11.0.1 produces same error. Serial output differs from boot to boot.

First boot:
U-Boot SPL 2022.10 (Mar 18 2023 - 17:20:38 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.8(release):11.0.1-dirty
NOTICE: BL31: Built : 16:10:38, Mar 18 2023
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xa06f740, model: OrangePi One Plus
ERROR: PMIC: Found unknown PMIC 00
ERROR: RSB: read command: 0x103
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3

U-Boot 2022.10 (Mar 18 2023 - 17:20:38 +0000) Allwinner Technology

CPU: Allwinner H6 (SUN50I)
Model: OrangePi One Plus
DRAM: 1 GiB
Core: 48 devices, 15 uclasses, devicetree: separate
WDT: Not starting watchdog@7020400
MMC: mmc@4020000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial@5000000
Out: serial@5000000
Err: serial@5000000
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
Ignoring unknown command: disk=UUID=e74196e7-acc6-47fe-9d35-e547de3eae47
Ignoring unknown command: console=tty1
1: LibreELEC
Retrieving file: /KERNEL
append: boot=UUID=1803-1707
Retrieving file: /sun50i-h6-orangepi-one-plus.dtb
Moving Image from 0x40080000 to 0x40200000, end=417c0000
Flattened Device Tree blob at 4fa00000
Booting using the fdt blob at 0x4fa00000
Loading Device Tree to 0000000049ff4000, end 0000000049fff03c ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.1.19 (docker@244ea9df888c) (aarch64-none-elf-gcc-12.2.0 (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39) #1 SMP PREEMPT Sat Mar 18 16:53:01 UTC 2023
...
[ 0.000000] Kernel command line: boot=UUID=1803-1707
[ 0.000000] Unknown kernel command line parameters "boot=UUID=1803-1707", will be passed to user space.

*** Error in mount_flash: mount_common: Could not mount UUID=1803-1707 ***
Starting debugging shell for boot step: mount_flash... type exit to quit

Hot reboot from debugging shell:
reboot

[ 744.543306] reboot: Restarting system

U-Boot SPL 2022.10 (Mar 18 2023 - 17:20:38 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.8(release):11.0.1-dirty
NOTICE: BL31: Built : 16:10:38, Mar 18 2023
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xa06f740, model: OrangePi One Plus
ERROR: PMIC: Found unknown PMIC 00
ERROR
U-Boot SPL 2022.10 (Mar 18 2023 - 17:20:38 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.8(release):11.0.1-dirty
NOTICE: BL31: Built : 16:10:38, Mar 18 2023
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xa06f740, model: OrangePi One Plus
ERROR: PMIC: Found unknown PMIC 00
ERROR: RSB: read command: 0x103
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3

Cold reboot:

U-Boot 2022.10 (Mar 18 2023 - 17:20:38 +0000) Allwinner Technology

CPU: Allwinner H6 (SUN50I)
Model: OrangePi One Plus
DRAM: 1 GiB
Core: 48 devices, 15 uclasses, devicetree: separate
WDT: Not starting watchdog@7020400
MMC: mmc@4020000: 0
Loading Environment from FAT... ** Bad device specification mmc 0 **
In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Net: No ethernet found.
Hit any key to stop autoboot: 0
No ethernet found.
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
=>
=> mmc
mmc - MMC sub system
=> mmc rescan
=> mmc info
=>

Booting LE10.0.4 (boots correctly)

U-Boot SPL 2021.01 (Jan 07 2023 - 10:03:17 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.4(release):10.0.4-dirty
NOTICE: BL31: Built : 09:16:45, Jan 7 2023
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xc06b3e0, model: OrangePi One Plus
NOTICE: PSCI: System suspend is available via SCPI

U-Boot 2021.01 (Jan 07 2023 - 10:03:17 +0000) Allwinner Technology

CPU: Allwinner H6 (SUN50I)
Model: OrangePi One Plus
DRAM: 1 GiB
MMC: mmc@4020000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Net: No ethernet found.
starting USB...
No working controllers 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
187 bytes read in 6 ms (30.3 KiB/s)
1: LibreELEC
Retrieving file: /KERNEL
23007240 bytes read in 1923 ms (11.4 MiB/s)
append: boot=UUID=0701-0042 disk=UUID=6675ba48-2766-4def-9e11-3d988e312d16 debug console=ttyS0,115200 console=tty1
Retrieving file: /sun50i-h6-orangepi-one-plus.dtb
31227 bytes read in 8 ms (3.7 MiB/s)
Moving Image from 0x40080000 to 0x40200000, end=41860000
Flattened Device Tree blob at 4fa00000
Booting using the fdt blob at 0x4fa00000
Loading Device Tree to 0000000049ff5000, end 0000000049fff9fa ... OK

Starting kernel ...

[?r??????] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.161 (docker@2c3ea15273f4) (aarch64-none-linux-gnu-gcc.real (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 20201103, GNU ld (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 2.35.1.20201028)
...
[ 2.336113] Run /init as init process
[ 2.339799] with arguments:
[ 2.342779] /init
[ 2.345063] with environment:
[ 2.348205] HOME=/
[ 2.350573] TERM=linux
[ 2.353290] boot=UUID=0701-0042
[ 2.356780] disk=UUID=6675ba48-2766-4def-9e11-3d988e312d16

@heitbaum
Copy link
Contributor

heitbaum commented Dec 2, 2023

@ComradeSerg / @maartenjd - is this still occurring on LE12 nightlies?

@maartenjd
Copy link

Hello heitbaum.

Erros(s) still occur. All with the same SD-card but previously the same error also with other SD-cards. See below. Is it U-boot related? Suggestions for any further troubleshooting?

Tested it with LibreELEC-H6.aarch64-12.0-nightly-20231214-8a29159-orangepi-one-plus and it seems to boot fine now (removed quiet from cmd line in extlinux.conf). See bootlog.

Also tested LibreELEC-H6.arm-11.0-nightly-20231214-ec82496-orangepi-one-plus. See bootlog.

Finally also booted LibreELEC-H6.arm-10.0.4-orangepi-one-plus (stable). See bootlog.

Unfortunately still the same "Error in mount_flash" with the 11 and 12 nightlies (see screenshot).
20211215_Error in mount_flash_opi1plus

Note the particularities in the 11 en 12 bootlogs, that do not show in 10:

  • U-Boot (2023.10 and 2022.10):
    ERROR: PMIC: Found unknown PMIC 00
    ERROR: RSB: read command: 0x103
    ERROR: RSB: write command: 0x3
    ERROR: RSB: read command: 0x3
    ERROR: RSB: write command: 0x3
    ERROR: RSB: read command: 0x3
    ERROR: RSB: write command: 0x3

  • U-boot:
    Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...

  • Kernel:
    [ 0.000000] Kernel command line: boot=UUID=1512-2531 disk=UUID=5830d71a-14e9-409c-b6b1-992f76f28ae7 console=ttyS0,115200 console=tty1
    [ 0.000000] Unknown kernel command line parameters "boot=UUID=1512-2531 disk=UUID=5830d71a-14e9-409c-b6b1-992f76f28ae7", will be passed to user space.

@jernejsk
Copy link
Member

So it seems that the issue is in PMIC bus switch from I2C (LE10, Linux 5.10) to RSB (LE11, Linux 6.1). PMIC is responsible for power regulation to most subsystems, including SD card. That would explain issues you see in boot log.

Currently the only idea that I have is to lower RSB frequency, since it's much higher than I2C. However, that needs to be changed in U-Boot and Linux. I'll build test image when I'll have some time.

@maartenjd
Copy link

Issue continues to exist on Latest Beta Version 12.0 (2024.04). Did you already have a chance to look at the RSB-timings, jernejsk? I made some build with some uneducated guesses for timings, but to no avail.

@maartenjd
Copy link

Today I built LE12 with Orangepi One Plus Rollback to i2c patch.
Had a few successful boots. Will provide serial output later on.

@maartenjd
Copy link

ComradeSerge
Can you try this image, compiled with i2c rollback patch?
link to image

@heitbaum heitbaum added LE 12.0 and removed LE 11.0 labels Sep 15, 2024
@heitbaum
Copy link
Contributor

Is this issue still occurring?

@maartenjd
Copy link

maartenjd commented Oct 29, 2024

Yes, still the same issue with LibreELEC-H6.aarch64-12.0-devel-20241029210940-a0b3874-orangepi-one-plus.

I2C-patch applied in:

./build.LibreELEC-H6.aarch64-12.0-devel/build/linux-6.6.46/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
./build.LibreELEC-H6.aarch64-12.0-devel/build/u-boot-2024.01/arch/arm/dts/sun50i-h6-orangepi.dtsi

U-Boot SPL 2024.01 (Oct 29 2024 - 20:37:19 +0100)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.10.0 (release):12.0.0
NOTICE: BL31: Built : 16:58:06, May 3 2024
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xa070328, model: OrangePi One Plus
ERROR: PMIC: Found unknown PMIC 00
ERROR: RSB: read command: 0x103
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3

With previous version I sometimes had successful boots. This time 0 out of 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants