TR: Notification d'envoi de fichier via http://dl.free.fr

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Mon Sep 3 07:20:21 EDT 2012


[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 at 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 at np linux-ubifs (test)]$ ls -l /mnt/ubifs/home/
total 0
drwxr-xr-x 2 root root 376 Sep 16  2011 root
[dedekind at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120903/8829e2b7/attachment.sig>


More information about the linux-mtd mailing list