Closed nazgee closed 6 years ago
Not sure what is wrong. I modified the u-boot source code to display the offset of the environment, and saveenv seem to be OK
u-boot
saveenv
=> setenv ethaddr 00:19:b8:00:00:02 => saveenv Saving Environment to MMC... Writing to MMC(0) @ 1048576... done
1048576 matches this:
/* 1MB after beginning of disk (uboot ends around 0.5MB right now) */ #define CONFIG_ENV_OFFSET (1 * 1024 * 1024)
But on 50% (?) of boots, I get this:
U-Boot 2017.07-28702-g93ad9ec-dirty (Feb 24 2018 - 13:02:05 +0100) CPU: Freescale i.MX6QP rev1.0 at 792 MHz Reset cause: WDOG Board: nexo I2C: ready DRAM: 2 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 *** Warning - read failed, using default environment
No idea if there is something wrong with board layout, or we've miss-configured it somehow....
note: there is no point in trying to read the environment if you have not saved it using saveenv
switched card from a 1GB 'no category' to 4GB CAT-4 and it works... shit.
Not sure what is wrong. I modified the
u-boot
source code to display the offset of the environment, andsaveenv
seem to be OK1048576 matches this:
But on 50% (?) of boots, I get this:
No idea if there is something wrong with board layout, or we've miss-configured it somehow....
note: there is no point in trying to read the environment if you have not saved it using
saveenv