public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: TR: Notification d'envoi de fichier via http://dl.free.fr
       [not found] ` <003d01cd877e$39b71020$ad253060$@ercogener.com>
@ 2012-09-03 11:20   ` Artem Bityutskiy
  2012-09-03 11:54     ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2012-09-03 11:20 UTC (permalink / raw)
  To: Fabien Comte; +Cc: linux-mtd

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

[CCing the MTD ML]

Mounts fine on nandsim + the latest UBIFS kernel (linux-ubifs), and all
files are readable - checked with rsync.

$ sudo modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15
$ sudo modprobe mtdchar
$ sudo dd if=~/tmp/Angstrom-fabien-image-eglibc-ipk-v2011.09-at91sam9260ek.rootfs.ubi of=/dev/mtd0 bs=2048
$ sudo modprobe ubi mtd=0
$ sudo mount -t ubifs /dev/ubi0_0  /mnt/ubifs/
$ dmesg | tail
....
[ 3980.001332] NAND device: Manufacturer ID: 0x20, Chip ID: 0xaa (ST Micro NAND 256MiB 1,8V 8-bit), page size: 2048, OOB size: 64
[ 3980.001337] flash size: 256 MiB
[ 3980.001338] page size: 2048 bytes
[ 3980.001346] OOB area size: 64 bytes
[ 3980.001347] sector size: 128 KiB
[ 3980.001348] pages number: 131072
[ 3980.001349] pages per sector: 64
[ 3980.001350] bus width: 8
[ 3980.001351] bits in sector size: 17
[ 3980.001351] bits in page size: 11
[ 3980.001352] bits in OOB size: 6
[ 3980.001353] flash size with OOB: 270336 KiB
[ 3980.001354] page address bytes: 5
[ 3980.001355] sector address bytes: 3
[ 3980.001355] options: 0x8
[ 3980.001616] Scanning device for bad blocks
[ 3980.005765] Creating 1 MTD partitions on "NAND 256MiB 1,8V 8-bit":
[ 3980.005769] 0x000000000000-0x000010000000 : "NAND simulator partition 0"
[ 4075.066153] UBI: attaching mtd0 to ubi0
[ 4075.070304] UBI: scanning is finished
[ 4075.071382] UBI: volume 0 ("at91sam9260ek-rootfs") re-sized from 543 to 2004 LEBs
[ 4075.072470] UBI: attached mtd0 (name "NAND simulator partition 0", size 256 MiB) to ubi0
[ 4075.072472] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 4075.072473] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 4075.072474] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[ 4075.072475] UBI: good PEBs: 2048, bad PEBs: 0, corrupted PEBs: 0
[ 4075.072476] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 4075.072478] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 383215587
[ 4075.072479] UBI: available PEBs: 0, total reserved PEBs: 2048, PEBs reserved for bad PEB handling: 40
[ 4075.072528] UBI: background thread "ubi_bgt0d" started, PID 13967
[ 4091.803787] UBIFS: background thread "ubifs_bgt0_0" started, PID 13989
[ 4091.804518] UBIFS: mounted UBI device 0, volume 0, name "at91sam9260ek-rootfs"(null)
[ 4091.804521] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 4091.804522] UBIFS: FS size: 254564352 bytes (242 MiB, 1973 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[ 4091.804524] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 4091.804526] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 6E97ED8D-B37E-4C41-8521-B7840B684C1B, small LPT model

$ [dedekind@np linux-ubifs (test)]$ ls -l /mnt/ubifs/
total 0
drwxrwxr-x  2 root root  9048 Sep 16  2011 bin
drwxrwxr-x  2 root root   160 Sep 16  2011 boot
drwxr-xr-x  3 root root  4896 Sep  3  2011 dev
drwxr-xr-x 39 root root  5952 Sep 16  2011 etc
drwxrwxr-x  3 root root   224 Sep 16  2011 home
drwxrwxr-x  6 root root  2760 Sep 16  2011 lib
lrwxrwxrwx  1 root root    12 Sep 16  2011 linuxrc -> /bin/busybox
drwxrwxr-x 10 root root   680 Sep 16  2011 media
drwxrwxr-x  2 root root   416 Sep 16  2011 mnt
drwxr-xr-x  2 root root   160 Sep  3  2011 proc
drwxrwxr-x  2 root root 10008 Sep 16  2011 sbin
drwxr-xr-x  2 root root   160 Sep  3  2011 sys
drwxrwxrwt  2 root root   160 Sep  3  2011 tmp
drwxrwxr-x 10 root root   672 Sep  3  2011 usr
drwxrwxr-x 10 root root  1000 Sep  3  2011 var
[dedekind@np linux-ubifs (test)]$ ls -l /mnt/ubifs/home/
total 0
drwxr-xr-x 2 root root 376 Sep 16  2011 root
[dedekind@np linux-ubifs (test)]$ ls -l /mnt/ubifs/home/root/
total 56
-rwxr-xr-x 1 root root  6640 Sep 16  2011 auto_install.sh
-rwxr-xr-x 1 root root 21868 Sep 16  2011 fw_printenv
-rwxr-xr-x 1 root root 21868 Sep 16  2011 fw_setenv

$ sudo rsync -aH --delete --devices --specials /mnt/ubifs /tmp/ubifs


Please, check yourself on ubifs-v2.6.37 if it works the same way. Weird
why it does not work for you.

Also, you never sent me the full log. Please, _before_ mounting, enable
debugging prints:

1. modprobe ubifs
2. echo 'format "UBIFS DBG" +pf' > /sys/kernel/debug/dynamic_debug/control
3. mount

then type "dmesg" and send full log please.

Thanks!


-- 
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] 4+ messages in thread

* Re: TR: Notification d'envoi de fichier via http://dl.free.fr
  2012-09-03 11:20   ` TR: Notification d'envoi de fichier via http://dl.free.fr Artem Bityutskiy
@ 2012-09-03 11:54     ` Artem Bityutskiy
  2012-09-03 14:15       ` Fabien Comte
  0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2012-09-03 11:54 UTC (permalink / raw)
  To: Fabien Comte; +Cc: linux-mtd

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

On Mon, 2012-09-03 at 14:20 +0300, Artem Bityutskiy wrote:
> Also, you never sent me the full log. Please, _before_ mounting, enable
> debugging prints:
> 
> 1. modprobe ubifs
> 2. echo 'format "UBIFS DBG" +pf' > /sys/kernel/debug/dynamic_debug/control
> 3. mount
> 
> then type "dmesg" and send full log please.

Also note, I am using x86_64 PC.

Can you try to take the ubifs-v3.0 tree and try to reproduce the issue?

If it is reproducible, then we can find the guilty commit using git
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] 4+ messages in thread

* RE: TR: Notification d'envoi de fichier via http://dl.free.fr
  2012-09-03 11:54     ` Artem Bityutskiy
@ 2012-09-03 14:15       ` Fabien Comte
  2012-09-03 14:38         ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Fabien Comte @ 2012-09-03 14:15 UTC (permalink / raw)
  To: dedekind1; +Cc: 'linux-mtd'

Hello,

3.0, are you sure ?
http://git.infradead.org/users/dedekind/ubifs-v3.0.git
http://git.infradead.org/users/dedekind/ubifs-v3.5.git -> for 3.5 kernels, isn't it ?

Thank you.

Fabien Comte

-----Message d'origine-----
De : Artem Bityutskiy [mailto:dedekind1@gmail.com] Envoyé : lundi 3 septembre 2012 13:55 À : Fabien Comte Cc : linux-mtd Objet : Re: TR: Notification d'envoi de fichier via http://dl.free.fr

On Mon, 2012-09-03 at 14:20 +0300, Artem Bityutskiy wrote:
> Also, you never sent me the full log. Please, _before_ mounting, 
> enable debugging prints:
> 
> 1. modprobe ubifs
> 2. echo 'format "UBIFS DBG" +pf' >
> /sys/kernel/debug/dynamic_debug/control
> 3. mount
> 
> then type "dmesg" and send full log please.

Also note, I am using x86_64 PC.

Can you try to take the ubifs-v3.0 tree and try to reproduce the issue?

If it is reproducible, then we can find the guilty commit using git bisect.

--
Best Regards,
Artem Bityutskiy

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

* RE: TR: Notification d'envoi de fichier via http://dl.free.fr
  2012-09-03 14:15       ` Fabien Comte
@ 2012-09-03 14:38         ` Artem Bityutskiy
  0 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2012-09-03 14:38 UTC (permalink / raw)
  To: Fabien Comte; +Cc: 'linux-mtd'

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

On Mon, 2012-09-03 at 16:15 +0200, Fabien Comte wrote:
> Hello,
> 
> 3.0, are you sure ?
> http://git.infradead.org/users/dedekind/ubifs-v3.0.git
> http://git.infradead.org/users/dedekind/ubifs-v3.5.git -> for 3.5 kernels, isn't it ?

Well, here is my logic.

You say that if you create an UBIFS image in v3.0, then try to mount it
in v3.4 - it fails, while it still mounts in 3.0. Correct?

Then, if you take the ubifs-v3.0.git tree, which contains v3.0 + all the
UBI/UBIFS patches, and try to mount your image, I expect it will also
fail.

If so, you will have the kernel which:

1. Works at the 'v3.0' point.
2. Fails at the 'HEAD' point.

Then you should be able to find out which commit is guilty using 'git
bisect'. Something like:

$ git bisect start
$ git bisect bad HEAD
$ git bisect good v3.0

If you manage to find the offending commit, fixing the issue should be
relatively easy, I think (and hope).

Makes sense?

-- 
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] 4+ messages in thread

end of thread, other threads:[~2012-09-03 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120831133153.764EC3495D9@dl.free.fr>
     [not found] ` <003d01cd877e$39b71020$ad253060$@ercogener.com>
2012-09-03 11:20   ` TR: Notification d'envoi de fichier via http://dl.free.fr Artem Bityutskiy
2012-09-03 11:54     ` Artem Bityutskiy
2012-09-03 14:15       ` Fabien Comte
2012-09-03 14:38         ` Artem Bityutskiy

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