From: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
To: Cao Minh Hiep <hiepcm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-spi <linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Shimoda,
Yoshihiro"
<yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
Subject: Re: could not mount a spi-flash on rootfs
Date: Thu, 3 Jul 2014 10:41:35 +0200 [thread overview]
Message-ID: <CAMuHMdU-XBeubyEr-UbvZiz=UQysC7WYtEJ4TMwuww1x7LSBeg@mail.gmail.com> (raw)
In-Reply-To: <CAN=meTma1_cAHQ82S0VHemYDChJw_Orpc3K7-k9O3ggPqtsDuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Hiep-san,
On Thu, Jul 3, 2014 at 7:09 AM, Cao Minh Hiep <hiepcm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On 06/30/2014 04:21 PM, Geert Uytterhoeven wrote:
> > On Mon, Jun 30, 2014 at 4:29 AM, カオ ミン ヒェップ <cm-hiep@jinso.co.jp> wrote:
> > > "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/
> > Strange.
> >
> > Can you check that writing works using some other way, e.g. using dd?
>
> I have checked the writing works using other way (using dd command directly)
> as below:
>
> # uname -a
> Linux linaro-nano 3.10.31-ltsi-00002-g7bdf07f-dirty #1 Mon Jun 30 09:18:01
> JST 2014x
> # du -h 2.in
> 2.1M 2.in
>
> # dd if=2M.in of=/dev/mtdblock2 bs=1M count=2
> 2+0 records in
> 2+0 records out
> 2097152 bytes (2.1 MB) copied, 155.454 s, 13.5 kB/s
> root@linaro-nano:~# dd if=/dev/mtdblock2 of=2M.out bs=1M count=2
> 2+0 records in
> 2+0 records out
> 2097152 bytes (2.1 MB) copied, 83.3882 s, 25.1 kB/s
> root@linaro-nano:~# ls
> 2M.in 2M.out
> root@linaro-nano:~# md5sum 2M.in 2M.out
> bf90a4724c584901fae07749965208e3 2M.in
> bf90a4724c584901fae07749965208e3 2M.out
So writing works.
Then I guess you'll have to do more investigations:
1. Clear /dev/mtdblock2:
dd if=/dev/zero of=/dev/mtdblock2 bs=1M
1. Create an ext3 file system on /dev/mtdblock2
2. Create a file with the same size as mtdblock2:
dd if=/dev/zero of=file bs=size count=1
3. Create an ext3 file system on file
4. Compare the ext3 file systems on /dev/mtdblock2 and file,
using e.g. hd and diff -u, to find out what's different.
Once we know what the differences are, we can investigate the
failure mode.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2014-07-03 8:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAN=meTma1_cAHQ82S0VHemYDChJw_Orpc3K7-k9O3ggPqtsDuQ@mail.gmail.com>
[not found] ` <CAN=meTma1_cAHQ82S0VHemYDChJw_Orpc3K7-k9O3ggPqtsDuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-03 8:41 ` Geert Uytterhoeven [this message]
2014-06-25 9:19 could not mount a spi-flash on rootfs カオ ミン ヒェップ
[not found] ` <53AA941D.3000808-HEF513clHfp3+QwDJ9on6Q@public.gmane.org>
2014-06-27 13:17 ` Geert Uytterhoeven
[not found] ` <CAMuHMdWBf1+A9=8b1x+e0YcV3d=K_tBvqUeBXxvoHFy=QHcJxQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-30 2:29 ` カオ ミン ヒェップ
[not found] ` <53B0CB84.6030001-HEF513clHfp3+QwDJ9on6Q@public.gmane.org>
2014-06-30 7:21 ` Geert Uytterhoeven
[not found] ` <CAMuHMdXnLG==TmZCLd=tZ0C1PPurjWkbE=ysCFCOgVK+5UCJnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-02 6:01 ` カオ ミン ヒェップ
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='CAMuHMdU-XBeubyEr-UbvZiz=UQysC7WYtEJ4TMwuww1x7LSBeg@mail.gmail.com' \
--to=geert-td1emuhucqxl1znqvxdv9g@public.gmane.org \
--cc=hiepcm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).