Re: could not mount a spi-flash on rootfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hiep-san,

On Wed, Jun 25, 2014 at 11:19 AM, カオ ミン ヒェップ <cm-hiep@xxxxxxxxxxx> wrote:
> I am working on Lager board from Renesas, We have tested qspi driver on
> upstream-ltsi v3.10.31、
>
> (http://ltsi.linuxfoundation.org/sites/ltsi/files/patch-3.10.31-ltsi.gz)
>
> When mounting /dev/mtdblock2 on /mnt/, there are some messages as a below:
>
> "EXT3-fs (mtdblock2): error: can't find ext3 filesystem on dev mtdblock2.
> EXT2-fs (mtdblock2): error: can't find an ext2 filesystem on dev mtdblock2.
> EXT4-fs (mtdblock2): VFS: Can't find ext4 filesystem
> FAT-fs (mtdblock2): bogus number of reserved sectors
> FAT-fs (mtdblock2): Can't find a valid FAT filesystem
> FAT-fs (mtdblock2): bogus number of reserved sectors
> FAT-fs (mtdblock2): Can't find a valid FAT filesystem
> mount: you must specify the filesystem type"

> root@linaro-nano:~# mount /dev/mtdblock2 /mnt/

Does it make a difference if you explicitly specify the file system type,
by adding "-t ext3"?

> I have enabled ext2,3,4 file systems when configuring the kernel.
> and I saw that the qspi driver code is same with upstream version code that
> be good.
> maybe the problem related to mtd (m25p80.c) (?)
> I attach the logs files when making a spi-flash partition and mount it on
> rootfs.

It looks like the file system wasn't written correctly to the device.
Do you see anything suspicious in the kernel log (dmesg)?

You mentioned you tested this on upstream-ltsi v3.10.31.
Do you mean the above test, which failed?

> root@linaro-nano:~# fdisk /dev/mtdblock2

[...]

> root@linaro-nano:~# mkfs.ext3 /dev/mtdblock2

BTW, why do you run fdisk on /dev/mtdblock2 first?
According to your logs, you're running mkfs.ext3 on the raw /dev/mtdblock2
afterwards, erasing your partition table again.

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux