[U-Boot] first u-boot program
Maxime Boure
mboure at ubiquiet.com
Wed Jun 2 10:01:03 CEST 2010
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 at 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 at myboard:~# fw_setenv test 1234
Warning: Bad CRC, using default environment
root at 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 at 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
More information about the U-Boot
mailing list