[PATCH 1/2] mtd: print out the partition's read-only flag

Brian Norris computersforpeace at gmail.com
Tue May 20 01:53:09 PDT 2014


On Wed, Apr 30, 2014 at 11:53:29AM +0800, Huang Shijie wrote:
> We may set a partition to be read only with DT property or kernel cmdline,
> such as the kernel cmdline:
>   mtdparts=50000000.nor:2m(boot)ro,2m(dtb),5m(kernel),-(test)
> 
> This patch prints out the partition's read-only flag in the boot precedure,
> which makes us more clear about the read-only partition.
> 
> Before this patch, the partitions show like this:
> 	0x000000000000-0x000000200000 : "boot"
> 	0x000000200000-0x000000400000 : "dtb"
> 	0x000000400000-0x000000900000 : "kernel"
> 	0x000000900000-0x000002000000 : "test"
> 
> After this patch, the partitions show like this:
> 
> 	0x000000000000-0x000000200000 : "boot"	 (Read-Only)
> 	0x000000200000-0x000000400000 : "dtb"
> 	0x000000400000-0x000000900000 : "kernel"
> 	0x000000900000-0x000002000000 : "test"
> 
> Signed-off-by: Huang Shijie <b32955 at freescale.com>

Nak to both. /proc/mtd shouldn't really be changing formats like this.

Brian



More information about the linux-mtd mailing list