
Dear Maxime Boure,
Please stop sending HTML. This is strongly discouraged on this list.
In message AANLkTik0nK69NfhQow6b5cbvnd7CN_9f2kJsDvbfX_Lx@mail.gmail.com you wrote:
Thanks for the answer. Do you mean using fw_printenv fw_setenv ? That is what I am thinking about.
Yes, that's what I mean.
But I can't find a fw_env.config that wouldn't warn me about a "bad CRC".
That's a problem to be solved, then.
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.
So the configuration is incorrect.
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"
And what does the environment configuration in U-Boot look like? Which board is this?
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 ?
Your configuration is obviously NOT good - otherwise there weren't any such errors.
The source is part of the U-Boot code, see the tools/env/ directory.
Best regards,
Wolfgang Denk