Mounting mtd block device raises "Block device required"
Hinko Kocevar
hinko.kocevar at cetrtapot.si
Wed Jun 11 05:55:46 EDT 2008
Andre Puschmann wrote:
> Hi,
>
> Hinko Kocevar wrote:
>> Char device seems to work..
>
> Yes, sorry for being not precise.
> Coping a jffs2 image (in 2.6.25) at /dev/mtd5 and mouting the same one
> in 2.6.21 (/dev/mtdblock5) works. So accessing the flash as a character
> device works.
>
>> What is the ls -l /dev/mtdblock5 output?
>
> As expected:
> $ ls -l /dev/mtdblock5
> brw-rw---- 1 root root 31, 5 Jan 1 1970 /dev/mtdblock5
>
Good.
>
>> Also could you try:
>> mount -t jffs2 /dev/mtdblock5 /mnt/flash
>
> I also tried that:
>
> # mount -t jffs2 /dev/mtdblock5 /mnt/flash
> mount: mounting /dev/mtdblock5 on /mnt/flash failed: Invalid argument
>
Is this true (kernel config)?:
CONFIG_JFFS2_FS=y
>
> But it seems like it has to do something with the block device driver
> mapping:
>
> $ head -n 2 /dev/mtdblock5 | hexdump -C
> head: /dev/mtdblock5: No such device or address
>
What about kernel configuration around the MTD block devices? I think these should be enabled:
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
--
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
More information about the linux-mtd
mailing list