All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Erickson <gerickson@nuovations.com>
To: Dach Miroslaw <miroslaw.dach@psi.ch>
Cc: linux-mtd@lists.infradead.org
Subject: Re: MTD and jffs2 mount problem on Linux-2.6.23 rc2
Date: Tue, 04 Mar 2008 09:14:36 -0800	[thread overview]
Message-ID: <C3F2C37C.DC5B%gerickson@nuovations.com> (raw)
In-Reply-To: <1B4F8000449511488D1A640DD6DECA3501EC25DC@MAILBOX0A.psi.ch>

On 3/4/08 2:34 AM, Dach Miroslaw wrote:
> I have created on my target board the jffs2 image which is foreseen to be
> place on /dev/mtd3:
> 
> ./mkfs.jffs2 --pad=0xA0000 --eraseblock=0x20000 --root=TEST-DIR
> --output=image2.jffs2
> flash_erase /dev/mtd3
> dd if=./image2.jffs2 of=/dev/mtd3 bs=2 count=327680
> 
> Up to this point all went fine.
> 
> The problem emerged when I have tried to mount the jffs2 partition:
> mkdir /mnt
> mount -t jffs2 /dev/mtdblock3  /mnt

Dach:

Based on recent experience, I found the following to work with my board and
a 2.6.25-rc2 kernel:

% mkfs.jffs2 -n -e 16 KiB -b -d /export/haleakala -n -o root.img -s 512 -p
  512

# flash_eraseall -q /dev/mtd9
# nandwrite -q /dev/mtd9 root.img
# mount -t jff2 /dev/mtdblock9 /import

So, based on your steps above, it looks like you might meet success by
replacing 'flash_erase' with 'flash_eraseall' and 'dd' with 'nandwrite'.

Regards,

Grant Erickson

  reply	other threads:[~2008-03-04 17:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04 10:34 MTD and jffs2 mount problem on Linux-2.6.23 rc2 Dach Miroslaw
2008-03-04 17:14 ` Grant Erickson [this message]
     [not found] <C3F2E592.DC63%gerickson@nuovations.com>
2008-03-05  8:24 ` Dach Miroslaw
2008-03-05  9:45   ` Schlägl Manfred jun.
2008-03-05 12:03     ` Jörn Engel
2008-03-05 13:44       ` Dach Miroslaw
2008-03-05 13:50         ` Jörn Engel
2008-03-06  7:48           ` Dach Miroslaw
2008-03-06 14:19             ` Jörn Engel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C3F2C37C.DC5B%gerickson@nuovations.com \
    --to=gerickson@nuovations.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miroslaw.dach@psi.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.