linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* could not mount a spi-flash on rootfs
@ 2014-06-25  9:19 カオ ミン ヒェップ
       [not found] ` <53AA941D.3000808-HEF513clHfp3+QwDJ9on6Q@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: カオ ミン ヒェップ @ 2014-06-25  9:19 UTC (permalink / raw)
  To: Geert Uytterhoeven, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	Shimoda, Yoshihiro

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

  Hi,

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"

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.

Best regards,
Cao Minh Hiep


[-- Attachment #2: qspi-make-fdisk-partition-mount-logs.txt --]
[-- Type: text/plain, Size: 2420 bytes --]

root@linaro-nano:~# fdisk /dev/mtdblock2 
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xb8711025.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): 
Using default response p
Partition number (1-4, default 1): 
Using default value 1
First sector (2048-122367, default 2048): 
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-122367, default 122367): 
Using default value 122367

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
root@linaro-nano:~# mkfs.ext3 /dev/mtdblock2 
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
15296 inodes, 61184 blocks
3059 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=62652416
8 block groups
8192 blocks per group, 8192 fragments per group
1912 inodes per group
Superblock backups stored on blocks: 
        8193, 24577, 40961, 57345

Allocating group tables: done                            
Writing inode tables: done                            

Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information:    

done

root@linaro-nano:~# 
root@linaro-nano:~# mount /dev/mtdblock2 /mnt/
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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 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>
  0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2014-06-27 13:17 UTC (permalink / raw)
  To: Cao Minh Hiep; +Cc: linux-spi, Shimoda, Yoshihiro

Hi Hiep-san,

On Wed, Jun 25, 2014 at 11:19 AM, カオ ミン ヒェップ <cm-hiep-HEF513clHfrHNBrmcpmgbg@public.gmane.orgp> 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@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: could not mount a spi-flash on rootfs
       [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>
  0 siblings, 1 reply; 6+ messages in thread
From: カオ ミン ヒェップ @ 2014-06-30  2:29 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-spi, Shimoda, Yoshihiro

[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]

Hi Geert-san

Thanks for your replying


>> "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 tried to specify the system type by adding "-t ext3" or "-t ext4",
but it has no change anything.
I attached the qspi test logs file. Please see it.

>> 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)?
No, I don't see anything suspicious in the kernel log. It is normally 
log for qspi.

> You mentioned you tested this on upstream-ltsi v3.10.31.
> Do you mean the above test, which failed?
yes, I do.
>> 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, I got it.


Best regards,
Hiep


[-- Attachment #2: qspi-test-log.txt --]
[-- Type: text/plain, Size: 3435 bytes --]

renesas_spi qspi.0: master is unqueued, this is deprecated
m25p80 spi0.0: s25fl512s (65536 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "loader"
0x000000040000-0x000000440000 : "user"
0x000000440000-0x000004000000 : "flash"
renesas_spi qspi.0: probed


# mkfs.ext3 -t ext3 /dev/mtdblock2                                    
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
15296 inodes, 61184 blocks
3059 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=62652416
8 block groups
8192 blocks per group, 8192 fragments per group
1912 inodes per group
Superblock backups stored on blocks: 
        8193, 24577, 40961, 57345

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

root@linaro-nano:~# mount /dev/mtdblock2 /mnt/
EXT3-fs (mtdblock2): error: can't find ext3 filesystem on dev mtdblock2.
EXT4-fs (mtdblock2): VFS: Can't find ext4 filesystem
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 -t ext3 /dev/mtdblock2 /mnt/                                  
EXT3-fs (mtdblock2): error: can't find ext3 filesystem on dev mtdblock2.
mount: wrong fs type, bad option, bad superblock on /dev/mtdblock2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so




# mkfs.ext4 -t ext4 /dev/mtdblock2 
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
15296 inodes, 61184 blocks
3059 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=62652416
8 block groups
8192 blocks per group, 8192 fragments per group
1912 inodes per group
Superblock backups stored on blocks: 
        8193, 24577, 40961, 57345

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information:    


done

root@linaro-nano:~# 
root@linaro-nano:~# 
root@linaro-nano:~# 
root@linaro-nano:~# mount -t ext4 /dev/mtdblock2 /mnt/
EXT4-fs (mtdblock2): VFS: Can't find ext4 filesystem
mount: wrong fs type, bad option, bad superblock on /dev/mtdblock2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@linaro-nano:~# mount /dev/mtdblock2 /mnt/
EXT3-fs (mtdblock2): error: can't find ext3 filesystem on dev mtdblock2.
EXT4-fs (mtdblock2): VFS: Can't find ext4 filesystem
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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: could not mount a spi-flash on rootfs
       [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>
  0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2014-06-30  7:21 UTC (permalink / raw)
  To: Cao Minh Hiep; +Cc: linux-spi, Shimoda, Yoshihiro

Hi Hiep-san,

On Mon, Jun 30, 2014 at 4:29 AM, カオ ミン ヒェップ <cm-hiep-HEF513clHfrHNBrmcpmgbg@public.gmane.orgp> 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/
>>
>> Does it make a difference if you explicitly specify the file system type,
>> by adding "-t ext3"?
>
> I have tried to specify the system type by adding "-t ext3" or "-t ext4",
> but it has no change anything.
> I attached the qspi test logs file. Please see it.

"renesas_spi qspi.0: master is unqueued, this is deprecated"

So this is indeed a very old version of the rspi driver.
Which 3.10.31-ltsi are you using? The one from renesas-backports?

>>> 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)?
>
> No, I don't see anything suspicious in the kernel log. It is normally log
> for qspi.

Strange.

Can you check that writing works using some other way, e.g. using dd?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: could not mount a spi-flash on rootfs
       [not found]             ` <CAMuHMdXnLG==TmZCLd=tZ0C1PPurjWkbE=ysCFCOgVK+5UCJnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-07-02  6:01               ` カオ ミン ヒェップ
  0 siblings, 0 replies; 6+ messages in thread
From: カオ ミン ヒェップ @ 2014-07-02  6:01 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-spi, Shimoda, Yoshihiro

Hi Geert-san

On 06/30/2014 04:21 PM, Geert Uytterhoeven wrote:
> Hi Hiep-san,
>
> 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/
>>> Does it make a difference if you explicitly specify the file system type,
>>> by adding "-t ext3"?
>> I have tried to specify the system type by adding "-t ext3" or "-t ext4",
>> but it has no change anything.
>> I attached the qspi test logs file. Please see it.
> "renesas_spi qspi.0: master is unqueued, this is deprecated"
>
> So this is indeed a very old version of the rspi driver.
> Which 3.10.31-ltsi are you using? The one from renesas-backports?
The source code is link below:
http://ltsi.linuxfoundation.org/sites/ltsi/files/patch-3.10.31-ltsi.gz
This qspi is added on rspi driver together that i am using. I think that 
It was back-ported from a upstream version. I think this message does 
not causing of the problem.
>>>> 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)?
>> No, I don't see anything suspicious in the kernel log. It is normally log
>> for qspi.
> 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

Best regards,
Hiep
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: could not mount a spi-flash on rootfs
       [not found] ` <CAN=meTma1_cAHQ82S0VHemYDChJw_Orpc3K7-k9O3ggPqtsDuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-07-03  8:41   ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2014-07-03  8:41 UTC (permalink / raw)
  To: Cao Minh Hiep; +Cc: linux-spi, Shimoda, Yoshihiro

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-03  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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   ` could not mount a spi-flash on rootfs Geert Uytterhoeven
2014-06-25  9:19 カオ ミン ヒェップ
     [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               ` カオ ミン ヒェップ

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).