
12 Aug
2010
12 Aug
'10
10:07 a.m.
On Thursday 12 August 2010, 09:27:31 you wrote:
Why not store the size of the environment sector as env variable? The size should be only needed for storing the environment and not for loading (as it is terminated by a '\0'). So we could load the environment, check for "env_size" and if its not there take the value from fw_env.config
Another possibility is to use an own mtd partition for env storage. This way you shouldn't need to know any size or offset at all.
Best regards, Alexander