Help with mtd + jffs2
Jörn Engel
joern at wohnheim.fh-wedel.de
Wed Jun 11 15:06:42 EDT 2003
On Wed, 11 June 2003 14:38:52 -0400, Frank R Callaghan wrote:
>
> But then I tryed to put the jffs2 file system image onto
> the device :=
>
> # cp /myapp/jffs2_file_sys.img /dev/mtd0
> cp: unable to open `/dev/mtd0': No such device
> #
>
> but I have the device !
> # ls -al /dev/mtd?
> crw------- 1 root root 90, 0 Jan 1 1970 /dev/mtd0
> crw------- 1 root root 90, 2 Jan 1 1970 /dev/mtd1
> crw------- 1 root root 90, 4 Jan 1 1970 /dev/mtd2
> crw------- 1 root root 90, 6 Jan 1 1970 /dev/mtd3
> crw------- 1 root root 90, 8 Jan 1 1970 /dev/mtd4
device != device node
A door alone doesn't make a mansion either. :)
Set CONFIG_MTD_CHAR to yes or better yet set CONFIG_MTD_BLOCK to yes
and use /dev/mtdblock* instead. Those devices are usually much nicer
unless you really *really* know you don't want them.
Jörn
--
It's just what we asked for, but not what we want!
-- anonymous
More information about the linux-mtd
mailing list