public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: -= KuK =- <kuk@data.pl>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Problem with JFFS2 mount
Date: Fri, 14 Oct 2011 11:41:39 +0300	[thread overview]
Message-ID: <1318581705.12351.69.camel@sauron> (raw)
In-Reply-To: <4E8729C8.1050305@data.pl>

On Sat, 2011-10-01 at 16:55 +0200, -= KuK =- wrote:
> Hi,
> 
> I have problem with creating image file from mounted jffs2 file system.
> 
> I have 1:1 dump from 1GB NAND which is UBI format.
> But it contains JFFS part also.
> This part can be downloaded from my server.
> www.pouchx.com/PRV/HDS/K9G8G08U0M_Samsung_1GB_NAND_Config.ini_block_JFFS.rar
> 
> Archive contains two files. One is original JFFS copy, second is same 
> file but I deleted ECC blocks.
> 
> I mount jffs image (noECC) with this script:
> 
> $ sudo apt-get install mtd-tools
> $ sudo modprobe -v mtd
> $ sudo modprobe -v jffs2
> $ sudo modprobe -v mtdram total_size=8192 erase_size=256
> $ sudo modprobe -v mtdchar
> $ sudo modprobe -v mtdblock
> $ sudo dd if=/HDS/Config.img of=/dev/mtd0
> $ sudo mount -t jffs2 /dev/mtdblock0 /HDS/JFFS

Try using nandwrite and nanddump instead - you will find them in
mtd-utils. And you do not need mtdblock to mount JFFS2 - I think mount
-t jffs2 mtd0 /HDS/JFFS will work fine.

-- 
Best Regards,
Artem Bityutskiy

      reply	other threads:[~2011-10-14  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-01 14:55 Problem with JFFS2 mount -= KuK =-
2011-10-14  8:41 ` Artem Bityutskiy [this message]

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=1318581705.12351.69.camel@sauron \
    --to=dedekind1@gmail.com \
    --cc=kuk@data.pl \
    --cc=linux-mtd@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox