That's u-boot partition... not the param. The fw_setenv is always looking 
/dev/mtd1. But here it is not a param partition.
Even if I change to " MTD_WRITEABLE" to 0 , it corrupting the u-boot.


Thanks & Regards,
Raghu Ramaraj

-----Original Message-----
From: Steve Chen [mailto:[email protected]]
Sent: Wednesday, August 25, 2010 3:53 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 3:31 AM, Raghu Ramaraj
<[email protected]> wrote:

>                /* UBL, U-Boot */
>                .name           = "bootloader",
>                .offset         = MTDPART_OFS_APPEND,
>                .size           = 10 * NAND_BLOCK_SIZE,
>                .mask_flags     = MTD_WRITEABLE,        /* force read-only */

mtd1 is set to read only here.
...

>> [email protected]:/home/raghu/env# ./fw_setenv bootdelay 0
>> Can't open /dev/mtd1: Permission denied
>> Error: can't write fw_env to flash

so this should be expected.

Regards,

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