[U-Boot] U-Boot fw_setenv problem.
srikanth bomma
srikanthbomma at gmail.com
Mon Apr 20 16:31:14 CEST 2009
Hello all,
My U-Boot version is 1.2.0 (Dec 31 2008) release.
fw_printenv is working fine. .
~ # fw_printenv
bootdelay=3
baudrate=115200
bootfile="uImage"
mtdparts=davinci-nand.0:512k(ubl),128k(uboot-env),512k(uboot),2m(kernel),-(app)
stdin=serial
stdout=serial
stderr=serial
ipaddr=192.168.2.110
gatewayip=192.168.2.1
netmask=255.255.255.0
hostname=dm6467_streamer1
ethaddr=00:03:23:01:00:01
bootcmd=tftpboot 0x82000000 uImage;bootm 0x82000000
serverip=192.168.2.67
bootargs=console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192.168.2.67:
/home/dm64
67/bsp/rootfs/fs,udp,v3,rsize=4096,wsize=1400 ip=192.168.2.110:192.168
.2.255:192.168.2.1:255.255.255.0:dm6467_streamer1::off mem=60M
mtdparts=davinci-
nand.0:512k(ubl),128k(uboot-env),512k(uboot),2m(kernel),-(app)
eth=$(ethaddr)
But when trying to set the uboot env with fw_setenv we have to following
errors
~ # fw_setenv gatewayip 192.168.2.1
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd1...
CRC write error on /dev/mtd1: Invalid argument
Error: can't write fw_env to flash
~ #
can anyone help me to clear this problem?
Regards,
B.V.Srikanth Reddy
More information about the U-Boot
mailing list