Mount of jffs2 partition fails

Robin Gilks robin.gilks at tait.co.nz
Thu Oct 16 17:30:09 EDT 2003


Robin Gilks wrote:
> David Woodhouse wrote:
> 
>> On Tue, 2003-10-14 at 17:53 +0000, Robin Gilks wrote:
>>
>>
>>> / # mount -t jffs2 /dev/mtdblock1 /mnt
>>> Write clean marker to block at 0x000d0000 failed: -30
>>
>>
>>
>> -30 is also -EROFS but we don't normally see it there so we don't have a
>> nice helpful message telling you the reason :)
>>
>> I have no clue why your flash allows erases but not writes. This is a
>> flash hardware/driver problem, not JFFS2. Can you do more testing on the
>> raw /dev/mtd0 device itself using
>> read/write/ioctl(MEMERASE)/ioctl(MEMUNLOCK) to see what you need to do
>> to make it work?
> 
> 
> I've concluded that the ST chip I'm using, although being Intel command 
> set compatible, requires a different approach. That being the case I 
> enabled the ST chip option and on booting I now get the following.
> 


In a message from Stuart Menefy on (CFI fixup code ref:
<20030523235020.3ca198e1.stuart.menefy at st.com>) on 24th May 2003, this 
exact problem was highlighted and is due to the ST chip not supporting 
the buffer write mode of the Intel CFI chips. I'll try applying Stuarts 
patches to 2.4.22 stock kernel and see how I get on!!

I'm still working on why the lock/unlock is operating correctly (or 
should I just unprotect the block that MTD is using in the bootstrap?)



-- 
Robin Gilks
Senior Design Engineer          Phone: (+64)(3) 357 1569
Tait Electronics                Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks at tait.co.nz
New Zealand




More information about the linux-mtd mailing list