
Hi.
I am seeing a boot failure on AM64-SK.
I got the following error in SPL of the main core. Do you have any clue?
Error reading cluster fit read sector 0, sectors=985528, dst=, count=18446744073709551615, size=0xf09b8
The resulting count looks crazy, but I imagine it was just that the negative error code was converted to ulong.
For debugging, I enabled debug() under common/spl/. The rest is the same as the latest mainline.
The full log is as follows:
U-Boot SPL 2023.10-rc4-00047-gb9b83a86f0-dirty (Sep 21 2023 - 14:38:15 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)') EEPROM not available at 0x50, trying to read at 0x51 SPL initial stack usage: 13384 bytes SPL malloc() before relocation used 0x32ec bytes (12 KB)
SPL: board_init_r()
spl_init Trying to boot from MMC2 spl: mmc boot mode: fs Found FIT fit read sector 0, sectors=874340, dst=, count=874339, size=0xd5764 firmware: 'atf' Embedded data: dst=701c0000, size=b2a8 Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Image OS is ARM Trusted Firmware loadables: 'tee' Embedded data: dst=9e800000, size=753e0 Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Loadable is Trusted Execution Environment loadables: 'dm' Embedded data: dst=89000000, size=0 Loadable is Unknown OS loadables: 'spl' Embedded data: dst=80080000, size=4ff18 Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Loadable is U-Boot fdt: 'fdt-1' Embedded data: dst=800cf888, size=2af2 Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted loadables: 'spl' no string for index 3 Unsupported OS image.. Jumping nevertheless.. Loading Environment from MMC... MMC Device 0 not found *** Warning - No MMC card found, using default environment
Starting ATF on ARM64 core...
NOTICE: BL31: v2.9(release):v2.9.0 NOTICE: BL31: Built : 10:06:58, Sep 21 2023 I/TC: I/TC: OP-TEE version: 3.22.0 (gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)) #1 Thu Sep 21 10:06:54 UTC 2023 aarch64 I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)') I/TC: HUK Initialized I/TC: Activated SA2UL device I/TC: Fixing SA2UL firewall owner for GP device I/TC: Enabled firewalls for SA2UL TRNG device I/TC: SA2UL TRNG initialized I/TC: SA2UL Drivers initialized I/TC: Primary CPU switching to normal world boot
U-Boot SPL 2023.10-rc4-00047-gb9b83a86f0-dirty (Sep 21 2023 - 14:38:20 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.7--v09.00.07 (Kool Koala)') SPL malloc() before relocation used 0x1f80 bytes (7 KB)
SPL: board_init_r()
spl_init Trying to boot from MMC2 spl: mmc boot mode: fs Found FIT Error reading cluster fit read sector 0, sectors=985528, dst=, count=18446744073709551615, size=0xf09b8 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
My build sequence is something like this:
# for wakeup make -j "$(nproc)" O=build-wakeup CROSS_COMPILE=arm-linux-gnueabihf- \ BINMAN_INDIRS="${SNAPCRAFT_STAGE}/ti-linux-firmware" \ am64x_evm_r5_defconfig all cp build-wakeup/tiboot3-am64x-gp-evm.bin "${STAGE}/tiboot3.bin"
# for main make -j "$(nproc)" O=build-main am64x_evm_a53_defconfig make -j "$(nproc)" O=build-main CROSS_COMPILE=aarch64-linux-gnu- \ BINMAN_INDIRS="${STAGE}/ti-linux-firmware" \ BL31="${STAGE}/bl31.bin" \ TEE="${STAGE}/tee-raw.bin" \ all cp build-main/tispl.bin build-main/u-boot.img "${STAGE}"
Strangely, AM62-SK booted successfully, but AM64-SK failed. I do not know why.