
Dear Wolfgang Denk,
Thanks for the answer. Do you mean using fw_printenv fw_setenv ? That is what I am thinking about. But I can't find a fw_env.config that wouldn't warn me about a "bad CRC". The fw_printenv seems to work half way :
root@myboard:~# fw_printenv Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200
It misses a lot of variables.
And the setenv : root@myboard:~# fw_setenv test 1234 Warning: Bad CRC, using default environment root@myboard:~# fw_printenv bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 test=1234
My config is this one : # MTD device name Device offset Env. size Flash sector size /dev/mtd2 0x0000 0x80000 0x80000
My partitions are those : root@myboard:~# cat /proc/mtd dev: size erasesize name mtd0: 00080000 00040000 "X-Loader" mtd1: 00180000 00040000 "U-Boot" mtd2: 00080000 00040000 "Environment" mtd3: 00300000 00040000 "Kernel" mtd4: 1fa80000 00040000 "File System"
Is my configuration file good ? When I reboot my board it doesn't save my changes. Where can I get the sources of a fw_saveenv program ?
Thanks a lot for your help.
Regards,
Maxime