public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* write-protected
@ 2006-08-14 20:44 Katey Yu
  2006-08-15 15:36 ` write-protected Samuel ]slund
  0 siblings, 1 reply; 3+ messages in thread
From: Katey Yu @ 2006-08-14 20:44 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

Hello,

When I mount /dev/mtdblock3 in flash I get  block " block device
/dev/mtdblock3 is write-protected, mounting read-only". I should get
mtdblock_open?

Could somebody tell me what's wrong?

 

 

mount -t jffs2  /dev/mtdblock3 /var/tmp

mount: block device /dev/mtdblock3 is write-protected, mounting
read-only

 

 

Katey

 


[-- Attachment #2: Type: text/html, Size: 2884 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: write-protected
  2006-08-14 20:44 write-protected Katey Yu
@ 2006-08-15 15:36 ` Samuel ]slund
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel ]slund @ 2006-08-15 15:36 UTC (permalink / raw)
  To: Katey Yu; +Cc: linux-mtd

On Mon, Aug 14, 2006 at 04:44:01PM -0400, Katey Yu wrote:
> Hello,
> 
> When I mount /dev/mtdblock3 in flash I get  block " block device
> /dev/mtdblock3 is write-protected, mounting read-only". I should get
> mtdblock_open?
> 
> Could somebody tell me what's wrong?
> 
>  
> 
>  
> 
> mount -t jffs2  /dev/mtdblock3 /var/tmp
> 
> mount: block device /dev/mtdblock3 is write-protected, mounting
> read-only

You do not give very much information about your system...
Ok, assuming you have set up the block device correctly.

I had a similar problem that boiled down to that the driver
from the manufacturer hardcoded the partition to be read-only.

in my case the apropriate file was:
linux/arch/arm/mach-ks8695/ks8695_mm.c

The partition had been set read-only by adding:
  .mask_flags = MTD_WRITABLE

to the partition struct.

HTH
//Samuel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: write-protected
       [not found] <007020085773234AAACE3B66E13C18E8D71D08@MAILSRVR.ositech.com>
@ 2006-08-15 21:34 ` Samuel ]slund
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel ]slund @ 2006-08-15 21:34 UTC (permalink / raw)
  To: Katey Yu; +Cc: linux-mtd

Hi Katey,

If I read that right you should be able to write to all partitions 
_except_ the fourth (mtd3 / mtdblock3) .

HTH
//Samuel

On Tue, Aug 15, 2006 at 04:08:47PM -0400, Katey Yu wrote:
> Hi Samuel,
> 
> This is mtd partition.
> static struct mtd_partition partition_info[]= {
> 
> 	{
> 		name: "bootloader",
> ///dev/mtdblock0
> 		size: 64 * 1024,
> 		offset: 0,
> //		mask_flags: MTD_WRITEABLE
> 		mask_flags: 0 
> 	},
> 	{
> 		name: "kernel",                         ///dev/mtdblock1
> 
> 		size: 640 * 1024,
> 		offset: MTDPART_OFS_APPEND,
> //		mask_flags: MTD_WRITEABLE
> 		mask_flags: 0
> 	},
> 	{
> 		name: "filesystem",                     ///dev/mtdblock2
> 		size: 1300 * 1024,
> 		offset: MTDPART_OFS_APPEND,
> //		mask_flags: MTD_WRITEABLE
> 		mask_flags: 0
> 	},
> 	{
> 		name: "config",
> ////dev/mtdblock3      
> 		size: 16 * 1024,
> 		offset: MTDPART_OFS_APPEND,
> //		offset: 0x4000,
> 		mask_flags: MTD_WRITEABLE
> //		mask_flags: 0
> 	}
> 	{
> 		name: "complete flash",
> ///dev/mtdblock4
> 		size: 2048 * 1024,
> 		offset: 0,
> 		mask_flags: 0
> //		mask_flags: MTD_WRITEABLE
> 	}
> };
> 
> Katey
> -----Original Message-----
> From: Samuel ]slund [mailto:samuel@Update.UU.SE] 
> Sent: Tuesday, August 15, 2006 11:37 AM
> To: Katey Yu
> Cc: linux-mtd@lists.infradead.org
> Subject: Re: write-protected
> 
> On Mon, Aug 14, 2006 at 04:44:01PM -0400, Katey Yu wrote:
> > Hello,
> > 
> > When I mount /dev/mtdblock3 in flash I get  block " block device
> > /dev/mtdblock3 is write-protected, mounting read-only". I should get
> > mtdblock_open?
> > 
> > Could somebody tell me what's wrong?
> > 
> >  
> > 
> >  
> > 
> > mount -t jffs2  /dev/mtdblock3 /var/tmp
> > 
> > mount: block device /dev/mtdblock3 is write-protected, mounting
> > read-only
> 
> You do not give very much information about your system...
> Ok, assuming you have set up the block device correctly.
> 
> I had a similar problem that boiled down to that the driver
> from the manufacturer hardcoded the partition to be read-only.
> 
> in my case the apropriate file was:
> linux/arch/arm/mach-ks8695/ks8695_mm.c
> 
> The partition had been set read-only by adding:
>   .mask_flags = MTD_WRITABLE
> 
> to the partition struct.
> 
> HTH
> //Samuel
> 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-15 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-14 20:44 write-protected Katey Yu
2006-08-15 15:36 ` write-protected Samuel ]slund
     [not found] <007020085773234AAACE3B66E13C18E8D71D08@MAILSRVR.ositech.com>
2006-08-15 21:34 ` write-protected Samuel ]slund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox