nandwrite problem

Raj Kumar Yadav ryadav at neomagic.com
Mon Jul 17 13:01:49 EDT 2006


Also for mtdblock/5 the character node will be mtd10  "mknod /dev/mtd10 c 90
10".

With mtd character interface every partition is accessed through pair of two
char device node.
First with  read-write permission. Second with read-only permission.

It is like
/dev/mtdblock/0   b 31 0
/dev/mtd0		c 90 0 (Read-write)
/dev/mtd1		c 90 1 (read only)

/dev/mtdblock/1   b 31 1
/dev/mtd2		c 90 2 (Read-write)
/dev/mtd3		c 90 3 (read only)

...

/dev/mtdblock/5   b 31 5
/dev/mtd10		c 90 10 (Read-write)
/dev/mtd11		c 90 11 (read only)


Raj Kumar Yadav

-----Original Message-----
From: linux-mtd-bounces at lists.infradead.org
[mailto:linux-mtd-bounces at lists.infradead.org] On Behalf Of Josh Boyer
Sent: Monday, July 17, 2006 8:35 PM
To: Davide CASCONE
Cc: linux-mtd at lists.infradead.org
Subject: Re: nandwrite problem

On 7/17/06, Davide CASCONE <davide.cascone at st.com> wrote:
>
> I have a NAND device related to MTD block 5. The NAND device is correctly
probing during the kernel boot phase.
> If I run the following commands
>
> #mkdir /dev/mtdblock/5 b 31 5
> #mount -t jffs2 /dev/mtdblock/5 /nand/
>
> the JFFS2 file system is correctly mounting on the /nand/ directory.
> But, if I run the following command
>
> #./nandwrite -j /dev/mtdblock/5 filesys.jffs2_nand

nandwrite needs a character device, not a block device.  Use /dev/mtd5
instead.

josh

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/






More information about the linux-mtd mailing list