I Have a dart Imx8mmq mini from varisicte.
I run kernel: 5.15.60-imx8mm
I build all linux using buildroot
I use Vari debian repos to build u-boot + atf from sources.
See below the u-boot details
After I flash the emmc and the board boots up and we acquire the shell the
fw_printenv prints:
Cannot read environment, using default
Cannot read default environment from file
If at least once, after fresh flashing I stop at u-boot prompt and I type saveenv then the fw_printenv and fw_saveenv starts working fine and conserves the env between power cycles
Here is the fw_emv.config
/dev/mmcblk2 0x400000 0x1000
How can I automatically make u-boot to saveenv or after flashing using uuu to make the u-boot to call at least once 'saveenv'
I found a link but targets a u-boot from 2014 and is not longer applicable.
Our u-boot excerpt:
Authenticate image from DDR location 0x401fcdc0...
U-Boot 2020.04 (Sep 22 2023 - 12:34:31 -0400)
CPU: i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 45C
Reset cause: POR
Model: Variscite DART-MX8M-MINI
DRAM: 2 GiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from EXT4... Loading Environment from MMC... OK
Thank you.
Hi @mariusoctavian !
Thank you for contacting NXP Support!
That is not a normal behavior of the U-boot terminal.
Unfortunately you are using a BSP that is not provided by NXP.
I recommend to contacting varisicte to obtain support or refer to the U-boot documentation.
https://u-boot.readthedocs.io/en/latest/
Best Regards!
Chavira