
Yes of course I can do that. My question was if there was a way (or a
plan)
to embed this CRC in the U-boot image, otherwise I'd have to burn it elsewhere (in another sector for instance).
The environment is a convenient place, unless your environment is embedded within U-Boot, in which case you need to split this up anyway.
Won't work in our case I'm afraid. First, we would like the booted application to be able to check the CRC after upgrading U-boot, which means that it will need to know the environment structure (something that is also problematic legally, as some of our applications are non GPL). Second, our master plan is to have two copies of U-boot programmed on the flash (for field upgrades sake), with a mutual environment sector. I guess the only way to implement this meeting our requirements is to sacrifice an adjacent sector that will only hold the CRC. Best regards, David.