Some workaround is required to resolve this
1) Have to change the partition table in kernel/uboot/ubl
2) Have to change the device from /dev/mtd1 to /dev/mtd0 in fw_env.c


Thanks & Regards,
Raghu Ramaraj


-----Original Message-----
From: Steve Chen [mailto:[email protected]]
Sent: Wednesday, August 25, 2010 5:07 PM
To: Raghu Ramaraj
Cc: Caglar Akyuz; [email protected]; Jose, 
Frangline
Subject: Re: need help- fw_printenv& fw_setenv

On Wed, Aug 25, 2010 at 6:15 AM, Raghu Ramaraj
<[email protected]> wrote:
> That's u-boot partition... not the param. The fw_setenv is always looking 
> /dev/mtd1. But here it is not a param partition.

>From the code, it is pretty obvious mtd1 is the u-boot partition.  I
guess I'm also stating the obvious that fw_setenv should update mtd0
instead of mtd1.  At least, we both agree on that.

> Even if I change to " MTD_WRITEABLE" to 0 , it corrupting the u-boot.

If fw_sentenv writes to mtd1, isn't that the expected behavior?

Steve

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

Reply via email to