public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Loosed files after umount/mount
@ 2012-06-18 20:29 Andreas Friesen
  2012-06-27 11:00 ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Friesen @ 2012-06-18 20:29 UTC (permalink / raw)
  To: linux-mtd

Hello,

I'm experiencing a strange problem with JFFS2 using Linux
3.1.5, 3.4 from kernel.org.git on PowerPC. After unmounting and
remounting the filesystem,
directory is empty.

$ flash_erase /dev/mtd2
$ reboot
$ mount mtd:storage /storage -t jffs2
$ scp root@server:/tmp/settings/*.xml /storage
$ sync
$ umount /storage
$ mount mtd:storage /storage -t jffs2
$ ls /storage
... empty ?????

Any Hints?

-- Andreas Friesen


root@hbm-000c4e:/$lsmod
Module                  Size  Used by
jffs2                  85057  1
lzo_decompress          5219  1 jffs2
lzo_compress            5143  1 jffs2


root@hbm-000c4e:/$uname -a
Linux hbm-000c4e 3.4.0+ #10 PREEMPT Mon Jun 18 20:07:04 CEST 2012 ppc
GNU/Linux

$ cat build/linux/.config | grep JFFS2
CONFIG_JFFS2_FS=m
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_LZO=y
CONFIG_JFFS2_RTIME=y
CONFIG_JFFS2_CMODE_PRIORITY=y

$ cat build/linux/.config | grep MTD
CONFIG_MTD=y
CONFIG_MTD_OF_PARTS=y
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_CFI=y
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
CONFIG_MTD_CFI_INTELEXT=y
CONFIG_MTD_CFI_UTIL=y
CONFIG_MTD_PHYSMAP_OF=y
CONFIG_OF_MTD=y


dmesg  output:
[    0.476401] ff000000.flash: Found 1 x16 devices at 0x0 in 8-bit
bank. Manufacturer ID 0x000089 Chip ID 0x000018
[    0.486776] Intel/Sharp Extended Query Table at 0x0031
[    0.492098] Intel/Sharp Extended Query Table at 0x0031
[    0.497412] Using buffer write method
[    0.501208] cfi_cmdset_0001: Erase suspend on write enabled
[    0.506957] erase region 0: offset=0x0,size=0x20000,blocks=128
[    0.508533] 8 ofpart partitions found on MTD device ff000000.flash
[    0.514996] Creating 8 MTD partitions on "ff000000.flash":
[    0.520718] 0x000000000000-0x000000200000 : "kernel"
[    0.527869] 0x000000200000-0x000000600000 : "rootfs"
[    0.535008] 0x000000600000-0x000000c00000 : "storage"
[    0.542277] 0x000000c00000-0x000000f00000 : "parameter"
[    0.549535] 0x000000f00000-0x000000f40000 : "uboot"
[    0.556607] 0x000000f40000-0x000000f60000 : "ubootenv"
..
[    8.914470] jffs2: version 2.2. (SUMMARY)  © 2001-2006 Red Hat, Inc.

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

* Re: Loosed files after umount/mount
  2012-06-18 20:29 Loosed files after umount/mount Andreas Friesen
@ 2012-06-27 11:00 ` Artem Bityutskiy
  2012-06-29  9:03   ` Andreas Friesen
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2012-06-27 11:00 UTC (permalink / raw)
  To: Andreas Friesen; +Cc: linux-mtd

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

On Mon, 2012-06-18 at 22:29 +0200, Andreas Friesen wrote:
> Hello,
> 
> I'm experiencing a strange problem with JFFS2 using Linux
> 3.1.5, 3.4 from kernel.org.git on PowerPC. After unmounting and
> remounting the filesystem,
> directory is empty.

So is it 3.4 or 3.1.5?

> $ flash_erase /dev/mtd2
> $ reboot
> $ mount mtd:storage /storage -t jffs2
> $ scp root@server:/tmp/settings/*.xml /storage
If you add "sleep 20" here - does it help?
> $ sync
> $ umount /storage
> $ mount mtd:storage /storage -t jffs2
> $ ls /storage
> ... empty ?????
> 
> Any Hints?

Is it NOR or NAND? My first guess is that the write-buffer is not
synced. Or there are issues with the driver, try to run mtd tests.

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: Loosed files after umount/mount
  2012-06-27 11:00 ` Artem Bityutskiy
@ 2012-06-29  9:03   ` Andreas Friesen
  2012-06-29 14:20     ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Friesen @ 2012-06-29  9:03 UTC (permalink / raw)
  To: dedekind1; +Cc: Andreas Friesen, linux-mtd

At Wed, 27 Jun 2012 14:00:58 +0300,
Artem Bityutskiy wrote:
> 
> [1  <text/plain; UTF-8 (quoted-printable)>]
> On Mon, 2012-06-18 at 22:29 +0200, Andreas Friesen wrote:
> > Hello,
> > 
> > I'm experiencing a strange problem with JFFS2 using Linux
> > 3.1.5, 3.4 from kernel.org.git on PowerPC. After unmounting and
> > remounting the filesystem,
> > directory is empty.
> 
> So is it 3.4 or 3.1.5?

The board is a MPC5200B board  with NOR Flash (like IceCube)
I have seen the problem in 3.1.5 and 3.4.


> > $ flash_erase /dev/mtd2
> > $ reboot
> > $ mount mtd:storage /storage -t jffs2
> > $ scp root@server:/tmp/settings/*.xml /storage
> If you add "sleep 20" here - does it help?

The tests with sleep() of 1s to 3min were unsuccessful.

> Is it NOR or NAND? My first guess is that the write-buffer is not
> synced. Or there are issues with the driver, try to run mtd tests.

mtd tests work fine.

> -- 
> Best Regards,
> Artem Bityutskiy
> [2 This is a digitally signed message part <application/pgp-signature (7bit)>]
> 

Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com 

Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147  
Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster

Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 
Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster

The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.

Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich fur den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.

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

* Re: Loosed files after umount/mount
  2012-06-29  9:03   ` Andreas Friesen
@ 2012-06-29 14:20     ` Artem Bityutskiy
  2012-07-02 10:05       ` Andreas Friesen
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2012-06-29 14:20 UTC (permalink / raw)
  To: Andreas Friesen; +Cc: Andreas Friesen, linux-mtd

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

On Fri, 2012-06-29 at 11:03 +0200, Andreas Friesen wrote:
> At Wed, 27 Jun 2012 14:00:58 +0300,
> Artem Bityutskiy wrote:
> > 
> > [1  <text/plain; UTF-8 (quoted-printable)>]
> > On Mon, 2012-06-18 at 22:29 +0200, Andreas Friesen wrote:
> > > Hello,
> > > 
> > > I'm experiencing a strange problem with JFFS2 using Linux
> > > 3.1.5, 3.4 from kernel.org.git on PowerPC. After unmounting and
> > > remounting the filesystem,
> > > directory is empty.
> > 
> > So is it 3.4 or 3.1.5?
> 
> The board is a MPC5200B board  with NOR Flash (like IceCube)
> I have seen the problem in 3.1.5 and 3.4.

Can you try running UBI tests and see what happens? They are in
mtd-utils/tests/ubi AFAIR.

Also, is there any kernel which worked for you? Can you bisect?

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: Loosed files after umount/mount
  2012-06-29 14:20     ` Artem Bityutskiy
@ 2012-07-02 10:05       ` Andreas Friesen
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Friesen @ 2012-07-02 10:05 UTC (permalink / raw)
  To: dedekind1; +Cc: Andreas Friesen, Andreas Friesen, linux-mtd

Hello Artem,

> Can you try running UBI tests and see what happens? They are in
> mtd-utils/tests/ubi AFAIR.
> 

Thanks for the reply. The problem is far localized.
The solution must be found yet. Here is the link:

http://lists.infradead.org/pipermail/linux-mtd/2012-June/042665.html

Regards,
Andreas

Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com 

Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147  
Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster

Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 
Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster

The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.

Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich fur den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.

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

end of thread, other threads:[~2012-07-02 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 20:29 Loosed files after umount/mount Andreas Friesen
2012-06-27 11:00 ` Artem Bityutskiy
2012-06-29  9:03   ` Andreas Friesen
2012-06-29 14:20     ` Artem Bityutskiy
2012-07-02 10:05       ` Andreas Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox