[U-Boot] U-Boot Tool: fw_setenv - kernel option?

Tom Rini trini at konsulko.com
Tue Jul 18 22:55:43 UTC 2017


On Mon, Jul 17, 2017 at 04:08:27PM +0200, Arno Steffens wrote:

> After using a plain vanilla instead of a vendor kernel I do have
> problems with fw_setenv.
> Althoug fw_printenv still works fine, after usage of fw_setenv the
> environment is destroyed, CRC error.
> 
> I checked a lot of things, changed u-boot, devicetree, fw_setenv ...
> and finally came to the point, that it just depends on the kernel.
> Only changing the kernel makes the difference. I assume that there is
> an option not enabled. Honestly, I am lost with the differences - I
> couldn't identify the one that makes difference. 
> Using an older config file, with lot more options, than it works also
> with a newer kernel.
> 
> Someone has an idea, which of the million settings is my friend?
> CONFIG_CRC16 and 32 are both enabled.

The most likely answer here is that in the working kernel you have
things enabled correctly for your environment storage device (I would
guess some form of NAND) and in the not working kernel you do not have
things such as ECC scheme configured correctly, so writes do not work.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170718/447aa053/attachment.sig>


More information about the U-Boot mailing list