This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62-LP:Android u-boot saveenv 失败

Guru**** 2547070 points
Other Parts Discussed in Thread: SK-AM62-LP

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1316681/sk-am62-lp-android-u-boot-saveenv-fails

器件型号:SK-AM62-LP

您好!

我最终的目标是从 SK-AM62-LP 上的 Android SDK 9上的 SD 卡启动 Android。

我已经能够启动和运行引导加载程序、但每次我尝试使用 saveenv 保存环境时、都会出现无法保存环境的错误:

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 optee.readthedocs.io/.../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
=>   

我认为这不是 SD 卡引导特定问题、因为我在尝试使用 USB DFU 引导以及仅从 SD 卡引导和写入 EMMC 时遇到了该问题。

我确实在 Android A53配置中看到设置了 CONFIG_SPL_ENV_IS_NOWATE=y 标志、但这与常规 SK 配置没有区别、这是否是个问题?

为什么我在 saveenv 上收到此错误?

穆南