Hello,
My eventual goal is to get Android booted from an SD card on the Android SDK 9 on the SK-AM62-LP.
I've been able to get the boot loader up and running but every time I try to save the environment using saveenv it gives me the error of there's nowhere to save the environment:
U-Boot SPL 2023.04-dirty (Jan 23 2024 - 08:31:14 -0600) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)') SPL initial stack usage: 13376 bytes Trying to boot from MMC2 Authentication passed Authentication passed Authentication passed Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.8(release):08.06.00.006 NOTICE: BL31: Built : 13:03:37, Jan 16 2024 I/TC: I/TC: OP-TEE version: 3.22.0-rc1 (gcc version 11.3.1 20220712 (Arm GNU Toolchain 11.3.Rel1)) #1 Tue Jan 16 19:04:12 UTC 2024 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.5--v09.00.05 (Kool Koala)') I/TC: HUK Initialized I/TC: Primary CPU switching to normal world boot U-Boot SPL 2023.04-dirty (Jan 23 2024 - 08:33:50 -0600) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)') Trying to boot from MMC2 Authentication passed Authentication passed U-Boot 2023.04-dirty (Jan 23 2024 - 08:33:50 -0600) SoC: AM62X SR1.0 HS-FS Model: Texas Instruments AM62x LP SK EEPROM not available at 80, trying to read at 81 Board: AM62-LP-SKEVM rev E2 DRAM: 2 GiB Core: 78 devices, 30 uclasses, devicetree: separate NAND: 0 MiB MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from MMC... *** Warning - bad CRC, using default environment Loading Environment from nowhere... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 0 => mmc dev 0 0 switch to partitions #0, OK mmc0(part 0) is current device => mmc erase 0 0x10000 MMC erase: dev # 0, block # 0, count 65536 ... 65536 blocks erased: OK => mmc dev 0 1 switch to partitions #1, OK mmc0(part 1) is current device => mmc erase 0 0x10000 MMC erase: dev # 0, block # 0, count 65536 ... 65536 blocks erased: OK => env default -a ## Resetting to default environment => setenv mmcdev 1; saveenv; Saving Environment to nowhere... not possible =>
I don't think this is a SD card boot specific issue because I had this issue trying to use the USB DFU boot and also just booting from SD card and writing to the EMMC.
I do see in the android a53 config the CONFIG_SPL_ENV_IS_NOWHERE=y flag is set, but this is not different from the regular SK config, could this be an issue?
Why am I getting this error with saveenv?
Munan