Hi,
We facing some issue while using fw_printenv and fw_setenv ( uboot
tools). Pls find the logs/steps below
I have used linux 2.6.32 rc5 kernel source.
1) MTD partition in the kernel level
Cat /proc/mtd
mtd0: 00020000 00004000 "params"
mtd1: 00140000 00004000 "bootloader"
mtd2: 00400000 00004000 "kernel"
mtd3: 03aa0000 00004000 "file system"
param & bootloader partitions are interchanged ?
2) Cat /dev/mtd0 ->its displaying param related information
3) I have used /etc/fw_env.config file
/dev/mtd0 0x0000 0x4000 0x4000
/dev/mtd1 0x4000 0x4000 0x4000
4) If I do ./fw_printenv , I am getting the all the boot params
5) If I do ./fw_setenv bootdelay , I am getting the following
Permission denied
Losg are..............
[email protected]:/home/raghu/env# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00004000 "params"
mtd1: 00140000 00004000 "bootloader"
mtd2: 00400000 00004000 "kernel"
mtd3: 03aa0000 00004000 "filesystem"
[email protected]:/home/raghu/env# cat /dev/mtd0
uEĆbootdelay=3baudrate=115200bootfile="uImage"addclk=setenv bootargs ${bootargs}
clkref=${clkref}ethact=DaVinci EMACfilesize=D9CB0Ffileaddr=87000000gatewayip=17
2.22.64.1netmask=255.255.240.0ipaddr=172.22.66.43bootcmd=ping 192.168.1.1;nand r
ead 0x84600000 0x4a0000 0x1400000;nboot 0x80700000 0 0xa0000;bootmserverip=172.2
2.75.253ethaddr=00:0e:99:02:b5:69clkref=33000000stdin=serialstdout=serialstderr=
serialver=U-Boot 2009.08 (Jul 10 2010 - 11:44:06)bootargs=console=ttyS0,115200n8
noinitrd rw root=/dev/nfs nfsroot=172.22.75.253:/opt/mv_pro_5.0/montavista/pro/
devkit/arm/v5t_le/target/,nolock mem=80M eth=00:0e:99:02:b5:69 ip=dhcp0 - 14:34:
54)0700000 0 0xa0000;bootm
[email protected]:/home/raghu/env# ./fw_printenv
ootdelay=3
baudrate=115200
bootfile="uImage"
addclk=setenv bootargs ${bootargs} clkref=${clkref}
ethact=DaVinci EMAC
filesize=D9CB0F
fileaddr=87000000
gatewayip=172.22.64.1
netmask=255.255.240.0
ipaddr=172.22.66.43
bootcmd=ping 192.168.1.1;nand read 0x84600000 0x4a0000 0x1400000;nboot 0x8070000
0 0 0xa0000;bootm
serverip=172.22.75.253
ethaddr=00:0e:99:02:b5:69
clkref=33000000
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.08 (Jul 10 2010 - 11:44:06)
bootargs=console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=172.22.75.253:
/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/,nolock mem=80M eth=00:0
e:99:02:b5:69 ip=dhcp
[email protected]:/home/raghu/env# ./fw_setenv bootdelay 0
Can't open /dev/mtd1: Permission denied
Error: can't write fw_env to flash
[email protected]:/home/raghu/env#
Thanks & Regards
Raghu Ramaraj
________________________________
http://www.mindtree.com/email/disclaimer.html
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source