All of lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
To: Fabien Comte <fabien.comte@ercogener.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: TR: Notification d'envoi de fichier via http://dl.free.fr
Date: Mon, 03 Sep 2012 14:20:21 +0300	[thread overview]
Message-ID: <1346671221.3061.42.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <003d01cd877e$39b71020$ad253060$@ercogener.com>

[-- 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 --]

       reply	other threads:[~2012-09-03 11:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120831133153.764EC3495D9@dl.free.fr>
     [not found] ` <003d01cd877e$39b71020$ad253060$@ercogener.com>
2012-09-03 11:20   ` Artem Bityutskiy [this message]
2012-09-03 11:54     ` TR: Notification d'envoi de fichier via http://dl.free.fr Artem Bityutskiy
2012-09-03 14:15       ` Fabien Comte
2012-09-03 14:38         ` Artem Bityutskiy

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=1346671221.3061.42.camel@sauron.fi.intel.com \
    --to=artem.bityutskiy@linux.intel.com \
    --cc=fabien.comte@ercogener.com \
    --cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.