Hi,

> -----Original Message-----
> From: davinci-linux-open-source-
> [email protected] [mailto:davinci-linux-
> [email protected]] On Behalf Of
> Nitin Mahajan
> Sent: Wednesday, February 04, 2009 12:24 AM
> To: [email protected]
> Subject: Readonly NAND flash
> 
> HI!
> 
> I am using the LSP 2.00 Beta, i. e 2.6.18 kernel. If I place the rootfs on
> NAND flash, how can I make it Read Only?
> 
> I know one way is through the 'bootargs', Isn't there a way through kernel
> configuration?

There is no kernel configuration (kconfig) option to do this. However, you can 
easily change it in the board specific source code.
NAND partitions in the board-dmxxx-evm.c. If you see the board-dm355-evm.c, 
there are 5 partitions defined - bootloader, params, kernel, filesystem1 and 
filesystem2. The bootloader and params partitions are already marked as 
"read-only" using the .mask_flags parameter defined as "MTD_WRITABLE". If you 
are using filesystem1 or filesystem2 as your root filesystem, you can change 
the corresponding .mask_flags to MTD_WRITABLE (from a current value of 0).

Hope this helps.

Thanks
Sneha

> 
> regards
> 
> -Nitin
> 
> 
> 
>       New Email names for you!
> Get the Email name you've always wanted on the new @ymail and
> @rocketmail.
> Hurry before someone else does!
> http://mail.promotions.yahoo.com/newdomains/aa/
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to