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.
Tool/software:
I am working on am437x based custom board which is already in production, and we are migrating to 6.1 kernel and u-boot 2024.
With EMMC boot mode, when we give saveenv command on u-boot environment. after that existing EMMC partitions are not visible with mmc command.
After the reboot board was not boot up, we figured out by doing a usbboot and observed that partitions & content not available.
Hi Hong
Sorry for the delayed response as i am ooo.
We tried using the TI SDK: 9.00.00.006 with yocto build set up.
1 |
bitbake |
0c6f86b60cfba67c20733516957c0a654eb2b44c |
|
2 |
meta-ti |
2e3ffb73630f4ff78227822bdb4c23e75a720223 |
|
3 |
meta-arm |
96aad3b29aa7a5ee4df5cf617a6336e5218fa9bd |
|
4 |
meta-arago |
e1d3561ec681fd05509affa063e0d6212f1571d1 |
|
5 |
meta-openembedded |
346753705e49a2486867dc150181a1c7f4d69377 |
|
6 |
meta-virtualization |
b3b3dbc67504e8cd498d6db202ddcf5a9dd26a9d |
|
7 |
openembedded-core |
f20a12ead2d5890e88e7f4ce149a777de47edc48 |
|
8 |
meta-processor-sdk |
9dad5765d33783f940ba3c32f4fc431e2b308621 |
|
9 |
meta-edgeai |
a1d9091cd914ce0bc69958891628a4cf86ed3e96 |
Regards,
Siva.
"saveenv" is not supported in newer SDK.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1304187/am625-saveenv-throws-error-exceeds-max-0x2000/4953387#4953387
Best,
-Hong
Hi Huang,
With same SDK there is another board based on am3358 processor with u-boot 2023. There saveenv is working fine.
Could you please let us know from which sdk it is supported.
This ticket talks about error message with saveenv dueto size. In my case there is no error, But partitions and content get erased after saveenv which is wierd.
Regards,
Siva.
I'd recommend using alternative options instead of "saveenv" if possible.
Here're few alternatives:
- use "env export..." and "env import...",
- modify u-boot environment variables as necessary, and re-build u-boot
Best,
-Hong
please elaborate how to use env export & import.
env default -a ## Resetting to default environment
=> saveenv Saving Environment to MMC... Writing to MMC(0)... OK
=> fatls mmc 0:1 ** No partition table - mmc 0 ** Couldn't find partition mmc 0:1
=> fatls mmc 1:0 ** Bad device specification mmc 1 ** Couldn't find partition mmc 1:0
After saveenv my fat partion is missing and after reset nothing is visible on serial as the partitions got corrupted.
As per my understanding env export & import need u-boot.env file which is getting genaerated with saveenv command.
There're online resource on how to use "env export..." and "env import...".
Here is one e2e on the topic.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1070402/sk-am64-start-u-boot-from-ospi-with-the-sk-am64-starter-kit/3963627#3963627
Best,
-Hong