mtd mount problem
Jörn Engel
joern at wohnheim.fh-wedel.de
Fri Apr 22 11:31:34 EST 2005
On Thu, 21 April 2005 15:02:48 +0200, Marco Schramel wrote:
>
> > > /dev # date > /dev/mtd1
> > > MTD_open
> > > MTD_ioctl
> > > MTD_write
> > > MTD do_write_buffer(): software timeout
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ERROR ERROR ERROR ERROR ERROR ERROR ERROR
>
> This only occurs if i write the second time to the flash memory without erasing it before.
That's harmless. Flash is a write-once medium between erases.
Your setup appears sane in principle, so there must me a subtle
mistake you made (bugs are out of the question of course ;). Missing
a real howto, let me run through the sequence:
1. Erase the flash partition. Either
o eraseall /dev/mtdX or
o cat file_filled_with_0xff > /dev/mtdblockX
2. Do *not* write anything to it afterwards. Jffs2 would just error
out.
3. Mount jffs2. Either
o mount mtdX -t jffs2 <mount_point> or
o mount /dev/mtdblockX -t jffs2 <mount_point>
Jörn
--
The grand essentials of happiness are: something to do, something to
love, and something to hope for.
-- Allan K. Chalmers
More information about the Linuxppc-embedded
mailing list