Hi Vagrant,

On 29/12/2022 00:07, Vagrant Cascadian wrote:
On 2022-12-28, Vagrant Cascadian wrote:
The odroid-c2 fails to boot syslinux/extlinux style menus (e.g. those
produced by u-boot-menu) or boot.scr as of upstream 2022.07-rc1. The
commit triggering the issue has been identified as:

   a9bf024b2933bba0e23038892970a18b72dfaeb4
   efi_loader: disk: a helper function to create efi_disk objects from
   udevice

Workarounds I've heard are to disable EFI support for that board, or to
boot using EFI rather than boot scripts or syslinux/extlinux style
menus.

I will also want to get confirmation if other amlogic boards are
affected...
The currently supported amlogic platforms are:

   # Neil Armstrong <narmstr...@baylibre.com>
   u-boot-amlogic_platforms += khadas-vim

   # Neil Armstrong <narmstr...@baylibre.com>
   u-boot-amlogic_platforms += khadas-vim2

   # Frederic Danis <frederic.da...@collabora.com>
   u-boot-amlogic_platforms += libretech-cc

   # Neil Armstrong <narmstr...@baylibre.com>
   u-boot-amlogic_platforms += nanopi-k2

   # Vagrant Cascadian <vagr...@debian.org>
   u-boot-amlogic_platforms += odroid-c2

   # Reco <b...@enotuniq.net>
   u-boot-amlogic_platforms += odroid-n2

Please test if the current versions from Debian unstable (2022.10*) and
experimental (2023.01-rc*) are affected by this issue... and if there
are other issues for Debian bookworm/testing (2022.04*).

This is part of what has been blocking u-boot from migrating to testing.


I do not see (m)any records of tests for most of these platforms at:

   https://wiki.debian.org/U-boot/Status


live well,
   vagrant

u-boot bookworm version works fine with LePotato board (libretech-cc), see attached lepotato-bookworm.txt. Afaiu, the bug is not reproducible with unstable and experimental versions, but boot crash before starting the kernel, see lepotato-unstable.txt and lepotato-experimental.txt.

Happy new year,
Fred

--
Frédéric Danis
Senior Software Engineer

Collabora Ltd.
Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, United Kingdom
Registered in England & Wales, no. 5513718
GXL:BL1:9ac50e:bb16dc;FEAT:ADFC318C:0;POC:0;RCY:0;USB:0;SPI:0;CHK:A7;EMMC:400;NAND:81;SD:0;READ:0;0.0;CHK:0;
no sdio debug board detected 
TE: 1823918

BL2 Built : 16:20:27, Apr 19 2018. gxl g9478cf1 - jenkins@walle02-sh

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 6
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz
bist_test rank: 0 18 00 31 2f 17 48 17 00 2f 34 19 50 17 00 2f 2b 11 45 17 00 
2f 32 1a 4a 660  rank: 1 14 00 29 2f 19 45 13 00 27 33 19 4e 13 00 27 2c 14 45 
16 00 2c 32 1b 4a 660   - PASS

Rank0: 1024MB(auto)-2T-13

Rank1: 1024MB(auto)-2T-13
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x013c0000, size: 0x0000d600
Load bl31 from SD, src: 0x00020200, des: 0x05100000, size: 0x0002c600
Load bl33 from SD, src: 0x00050200, des: 0x01000000, size: 0x000aa400
NOTICE:  BL3-1: v1.0(release):b60a036
NOTICE:  BL3-1: Built : 17:03:54, Apr 10 2018
[BL31]: GXL CPU setup!
NOTICE:  BL3-1: GXL normal boot!
mpu_config_enable:ok
[Image: gxl_v1.1.3308-45470c4 2018-04-12 16:22:58 jenkins@walle02-sh]
OPS=0x84
21 0d 84 00 2d e0 db ea f1 9c b1 98 59 10 99 67 
[3.545323 Inits done]
secure task start!
high task start!
low task start!
ERROR:   Error initializing runtime service opteed_fast

<debug_uart>


U-Boot 2022.04+dfsg-2+b1 (May 14 2022 - 19:14:13 +0000) libretech-cc

Model: Libre Computer AML-S905X-CC
SoC:   Amlogic Meson GXL (S905X) Revision 21:d (84:2)
DRAM:  2 GiB
Core:  160 devices, 24 uclasses, devicetree: separate
MMC:   mmc@72000: 0, mmc@74000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64
2:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64 (rescue target)
Enter choice:   1:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64
Retrieving file: /boot/initrd.img-6.0.0-6-arm64
Retrieving file: /boot/vmlinuz-6.0.0-6-arm64
append: root=UUID=b9201afb-b394-4fde-a235-a55726e651c6 ro quiet
Retrieving file: 
/usr/lib/linux-image-6.0.0-6-arm64/amlogic/meson-gxl-s905x-libretech-cc.dtb
Moving Image from 0x8080000 to 0x8200000, end=a0e0000
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
   Loading Ramdisk to 78e60000, end 7bf41475 ... OK
   Loading Device Tree to 0000000078e55000, end 0000000078e5f1a3 ... OK

Starting kernel ...




GXL:BL1:9ac50e:bb16dc;FEAT:ADFC318C:0;POC:0;RCY:0;USB:0;SPI:0;CHK:A7;EMMC:400;NAND:81;SD:0;READ:0;0.0;CHK:0;
no sdio debug board detected 
TE: 1825302

BL2 Built : 16:20:27, Apr 19 2018. gxl g9478cf1 - jenkins@walle02-sh

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 6
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz
bist_test rank: 0 19 00 32 2f 16 48 17 00 2f 34 1a 4e 17 00 2f 29 10 43 17 00 
2f 31 19 4a 660  rank: 1 15 00 2a 2e 18 44 14 00 28 33 19 4e 15 00 2a 2b 13 43 
16 00 2c 32 1b 4a 660   - PASS

Rank0: 1024MB(auto)-2T-13

Rank1: 1024MB(auto)-2T-13
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x013c0000, size: 0x0000d600
Load bl31 from SD, src: 0x00020200, des: 0x05100000, size: 0x0002c600
Load bl33 from SD, src: 0x00050200, des: 0x01000000, size: 0x000aec00
NOTICE:  BL3-1: v1.0(release):b60a036
NOTICE:  BL3-1: Built : 17:03:54, Apr 10 2018
[BL31]: GXL CPU setup!
NOTICE:  BL3-1: GXL normal boot!
mpu_config_enable:ok
[Image: gxl_v1.1.3308-45470c4 2018-04-12 16:22:58 jenkins@walle02-sh]
OPS=0x84
21 0d 84 00 2d e0 db ea f1 9c b1 98 59 10 99 67 
[3.547703 Inits done]
secure task start!
high task start!
low task start!
ERROR:   Error initializing runtime service opteed_fast

<debug_uart>


U-Boot 2022.10+dfsg-2 (Dec 23 2022 - 23:18:44 +0000) libretech-cc

Model: Libre Computer AML-S905X-CC
SoC:   Amlogic Meson GXL (S905X) Revision 21:d (84:2)
DRAM:  2 GiB
Core:  168 devices, 27 uclasses, devicetree: separate
MMC:   mmc@72000: 0, mmc@74000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64
2:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64 (rescue target)
Enter choice: 1:        Debian GNU/Linux bookworm/sid 6.0.0-6-arm64
Retrieving file: /boot/initrd.img-6.0.0-6-arm64
Retrieving file: /boot/vmlinuz-6.0.0-6-arm64
append: root=UUID=b9201afb-b394-4fde-a235-a55726e651c6 ro quiet
Retrieving file: 
/usr/lib/linux-image-6.0.0-6-arm64/amlogic/meson-gxl-s905x-libretech-cc.dtb
Moving Image from 0x8080000 to 0x8200000, end=a0e0000
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
   Loading Ramdisk to 78e5c000, end 7bf3d475 ... OK
   Loading Device Tree to 0000000078e51000, end 0000000078e5b1a3 ... OK
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000001065560 lr : 0000000001054edc (reloc)
elr: 000000007dfb5560 lr : 000000007dfa4edc
x0 : db1c903731b6b827 x1 : 000000007dfbd1b8
x2 : 0000000000000010 x3 : 000000007bf55d50
x4 : 0000000000000000 x5 : db1c903731b6b827
x6 : 0000000001000000 x7 : 0000000000000000
x8 : 0000000000000007 x9 : 0000000000000000
x10: 000000007bf41a7c x11: 0000000000000002
x12: 00000000000000a4 x13: 000000007bf41a38
x14: 0000000078e51000 x15: 0000000000000200
x16: 000000007df834c4 x17: 0000000000000000
x18: 000000007bf4ddb0 x19: 000000007af42040
x20: 000000007df50b98 x21: 000000007bf73f30
x22: 0000000000001000 x23: 000000007bf55ca0
x24: 000000007dfdba48 x25: 0000000001000000
x26: 0000000000000000 x27: 0000000001000000
x28: 0000000000001000 x29: 000000007bf41a40

Code: eb04005f 54000061 52800000 14000006 (386468a3) 
Resetting CPU ...

resetting ...
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.

GXL:BL1:9ac50e:bb16dc;FEAT:ADFC318C:0;POC:0;RCY:0;USB:0;SPI:0;CHK:A7;EMMC:400;NAND:81;SD:0;READ:0;0.0;CHK:0;
no sdio debug board detected 
TE: 1829131

BL2 Built : 16:20:27, Apr 19 2018. gxl g9478cf1 - jenkins@walle02-sh

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 6
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz
bist_test rank: 0 19 00 32 2f 17 48 17 00 2f 34 1a 4e 17 00 2f 2a 11 44 17 00 
2f 31 1a 49 660  rank: 1 15 00 2a 2e 18 44 14 00 28 33 19 4e 14 00 28 2b 13 44 
16 00 2c 32 1b 4a 660   - PASS

Rank0: 1024MB(auto)-2T-13

Rank1: 1024MB(auto)-2T-13
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x013c0000, size: 0x0000d600
Load bl31 from SD, src: 0x00020200, des: 0x05100000, size: 0x0002c600
Load bl33 from SD, src: 0x00050200, des: 0x01000000, size: 0x000af400
NOTICE:  BL3-1: v1.0(release):b60a036
NOTICE:  BL3-1: Built : 17:03:54, Apr 10 2018
[BL31]: GXL CPU setup!
NOTICE:  BL3-1: GXL normal boot!
mpu_config_enable:ok
[Image: gxl_v1.1.3308-45470c4 2018-04-12 16:22:58 jenkins@walle02-sh]
OPS=0x84
21 0d 84 00 2d e0 db ea f1 9c b1 98 59 10 99 67 
[3.548324 Inits done]
secure task start!
high task start!
low task start!
ERROR:   Error initializing runtime service opteed_fast

<debug_uart>


U-Boot 2023.01-rc4+dfsg-1 (Dec 24 2022 - 03:13:23 +0000) libretech-cc

Model: Libre Computer AML-S905X-CC
SoC:   Amlogic Meson GXL (S905X) Revision 21:d (84:2)
DRAM:  2 GiB
Core:  168 devices, 27 uclasses, devicetree: separate
MMC:   mmc@72000: 0, mmc@74000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64
2:      Debian GNU/Linux bookworm/sid 6.0.0-6-arm64 (rescue target)
Enter choice: 1:        Debian GNU/Linux bookworm/sid 6.0.0-6-arm64
Retrieving file: /boot/initrd.img-6.0.0-6-arm64
Retrieving file: /boot/vmlinuz-6.0.0-6-arm64
append: root=UUID=b9201afb-b394-4fde-a235-a55726e651c6 ro quiet
Retrieving file: 
/usr/lib/linux-image-6.0.0-6-arm64/amlogic/meson-gxl-s905x-libretech-cc.dtb
Moving Image from 0x8080000 to 0x8200000, end=a0e0000
## Flattened Device Tree blob at 08008000
   Booting using the fdt blob at 0x8008000
Working FDT set to 8008000
   Loading Ramdisk to 78e5b000, end 7bf3c475 ... OK
   Loading Device Tree to 0000000078e50000, end 0000000078e5a1a3 ... OK
Working FDT set to 78e50000
"Synchronous Abort" handler, esr 0x96000004
elr: 0000000001065da0 lr : 0000000001055718 (reloc)
elr: 000000007dfb4da0 lr : 000000007dfa4718
x0 : db1c903731b6b827 x1 : 000000007dfbcaa0
x2 : 0000000000000010 x3 : 000000007bf54d50
x4 : 0000000000000000 x5 : db1c903731b6b827
x6 : 0000000001000000 x7 : 0000000000000000
x8 : 0000000000000007 x9 : 0000000000000000
x10: 000000007bf40a8c x11: 0000000000000002
x12: 00000000000000a4 x13: 000000007bf40a48
x14: 0000000078e50000 x15: 0000000000000200
x16: 000000007df82b58 x17: 0000000000000000
x18: 000000007bf4cdb0 x19: 000000007af41040
x20: 000000007df4fb98 x21: 000000007bf742c0
x22: 0000000000001000 x23: 000000007bf54ca0
x24: 000000007dfdb140 x25: 0000000001000000
x26: 0000000000000000 x27: 0000000001000000
x28: 0000000000001000 x29: 000000007bf40a50

Code: eb04005f 54000061 52800000 14000006 (386468a3) 
Resetting CPU ...

resetting ...
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.

Reply via email to