[U-Boot] fw_printenv - Bad CRC, using default environment

27 Apr
2009
27 Apr
'09
8:43 p.m.
Hi All,
I have a u-boot version for Davinci 6446 and would like to access r/w the u-boot environment from linux userpace. I set the /etc/fw_env.config to /dev/mtd0 0 0x4000 0x200
When I execute fw_printenv, I got these error: Warning: Bad CRC, using default environment
But, when I commented out the memcpy on the condition below, I could be able to display my uboot environment. Although, there were few enviroment variables where the values are corrupted or missing few characters.
if (!crc1_ok) { fprintf (stderr, "Warning: Bad CRC, using default environment\n"); /*memcpy(environment.data, default_environment, sizeof default_environment);*/ }
Any one can give me a hints on how to fix it?
Thanks,
John
5855
Age (days ago)
5855
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Tobias