MTD and jffs2 mount problem on Linux-2.6.23 rc2

Dach Miroslaw miroslaw.dach at psi.ch
Wed Mar 5 08:44:45 EST 2008


Hi Jörn,

Thank you for the hint. I have recompiled the kernel with built-in block2mtd driver.

Do you know where to find some examples how to use block2mtd with jffs2 image.

Best Regards

M.


-----Original Message-----
From: Jörn Engel [mailto:joern at logfs.org]
Sent: Wed 3/5/2008 1:03 PM
To: Schlägl Manfred jun.
Cc: Dach Miroslaw; linux-mtd at lists.infradead.org; Grant Erickson
Subject: Re: MTD and jffs2 mount problem on Linux-2.6.23 rc2
 
On Wed, 5 March 2008 10:45:23 +0100, Schlägl Manfred jun. wrote:
> Am Mittwoch, den 05.03.2008, 09:24 +0100 schrieb Dach Miroslaw:
> > 
> > losetup /dev/loop0 img2.jffs2  
> > mount -t jffs2 /dev/loop0 /mnt
> > 
> > unfortunately mount did not work.
> This can't work, because jffs2 is using the block-device mtdblock only
> to get device-information about the mtd-device. jffs2 itself is using
> the mtd-api directly. so jffs2 only on mtd.

Some people use loop and block2mtd to mount jffs2 images.  Hardly
elegant, but it seems to work.

Jörn

-- 
Don't worry about people stealing your ideas. If your ideas are any good,
you'll have to ram them down people's throats.
-- Howard Aiken quoted by Ken Iverson quoted by Jim Horning quoted by
   Raph Levien, 1979




More information about the linux-mtd mailing list