public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* MTD for Intel Strata L18 Flash
@ 2005-05-12 11:10 Niraj Maheshwari
  2005-05-12 11:57 ` Josh Boyer
  0 siblings, 1 reply; 2+ messages in thread
From: Niraj Maheshwari @ 2005-05-12 11:10 UTC (permalink / raw)
  To: linux-mtd

Hi,

I am using Linux Kernel 2.6.10 and enabled the JFFS2 file system in the kernel.
Flash has a partition ( 0xA0980000 ) which will be used for JFFS2 and
it's erased.

After booting the kernel,  when i try to mount the JFFS2 partition
from flash, it works fine and it's empty.

When i try to copy any data to mounted partition then it gives following error.

****************************************************************************************
[root@Linux /]$ mount
/dev/ram0 on / type cramfs (ro)
/proc on /proc type proc (rw,nodiratime)
none on /dev/pts type devpts (rw)
/dev/mtdblock0 on /disc type jffs2 (rw,noatime)
[root@Linux /]$ cp etc/issue disc/
Write error in obliterating obsoleted node at 0x00540000: -30
Write of 68 bytes at 0x0054000c failed. returned -30, retlen 0
Not marking the space at 0x0054000c as dirty because the flash driver returned r
etlen zero
Write of 68 bytes at 0x0054000c failed. returned -30, retlen 0
Not marking the space at 0x0054000c as dirty because the flash driver returned r
etlen zero
cp: unable to open `disc/issue': Read-only file system
*******************************************************************************************

Pl. note that Same Kernel Image and ramdisk works fine with Intel W18
(28F128W18) flash but doesn't work with Intel Strata L18 (28F256L18)
flash.

Can anyone tell me what could be the issue as both the flashes are CFI
compliant ?

Thanks in advance
Niraj

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

* Re: MTD for Intel Strata L18 Flash
  2005-05-12 11:10 MTD for Intel Strata L18 Flash Niraj Maheshwari
@ 2005-05-12 11:57 ` Josh Boyer
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Boyer @ 2005-05-12 11:57 UTC (permalink / raw)
  To: Niraj Maheshwari; +Cc: linux-mtd

On Thu, 2005-05-12 at 16:40 +0530, Niraj Maheshwari wrote:
> After booting the kernel,  when i try to mount the JFFS2 partition
> from flash, it works fine and it's empty.
> 

> Write of 68 bytes at 0x0054000c failed. returned -30, retlen 0
> Not marking the space at 0x0054000c as dirty because the flash driver returned r
> etlen zero
> cp: unable to open `disc/issue': Read-only file system
> *******************************************************************************************
> 
> Pl. note that Same Kernel Image and ramdisk works fine with Intel W18
> (28F128W18) flash but doesn't work with Intel Strata L18 (28F256L18)
> flash.
> 
> Can anyone tell me what could be the issue as both the flashes are CFI
> compliant ?

-30 is -EROFS.  That seems to indicate that the chip(s) is/are write
protected at the time you are trying to do the write.

I don't have the datasheets for those chips around, but there are some
Intel chips that power-on with all the eraseblocks locked.  That is
probably what you are seeing.  You'll need to unlock them before you can
write.

josh

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

end of thread, other threads:[~2005-05-12 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-12 11:10 MTD for Intel Strata L18 Flash Niraj Maheshwari
2005-05-12 11:57 ` Josh Boyer

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