diff for duplicates of <87haaogx6j.fsf@natisbad.org> diff --git a/a/1.txt b/N1/1.txt index 39d34bc..e7f28e3 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -7,7 +7,7 @@ Ezequiel Garcia <ezequiel.garcia@free-electrons.com> writes: Well, if we let the machines win, it's over. ->> root@humble:~# nandwrite -p /dev/mtd4 mtd4ro +>> root at humble:~# nandwrite -p /dev/mtd4 mtd4ro >> Writing data to block 0 at offset 0x0 >> [ 449.915173] pxa3xx-nand d00d0000.nand: Ready time out!!! >> libmtd: error!: cannot write 2048 bytes to mtd4 (eraseblock 0, offset 2048) @@ -90,34 +90,34 @@ of tests below w/o the patch): Let's erase the first block of /dev/mtd4 - root@thin:~# flash_erase /dev/mtd4 0 1 + root at thin:~# flash_erase /dev/mtd4 0 1 Erasing 128 Kibyte @ 0 -- 100 % complete Create a 2048 byte file: - root@thin:~# dd if=/dev/urandom of=/tmp/page.raw bs=2048 count=1 + root at thin:~# dd if=/dev/urandom of=/tmp/page.raw bs=2048 count=1 1+0 records in 1+0 records out 2048 bytes (2.0 kB) copied, 0.00104352 s, 2.0 MB/s dd that file to the first block - root@thin:~# dd if=/tmp/page.raw of=/dev/mtd4 bs=2048 count=1 + root at thin:~# dd if=/tmp/page.raw of=/dev/mtd4 bs=2048 count=1 1+0 records in 1+0 records out 2048 bytes (2.0 kB) copied, 0.0008344 s, 2.5 MB/s Do the same with nandwrite: - root@thin:~# flash_erase /dev/mtd4 0 1 + root at thin:~# flash_erase /dev/mtd4 0 1 Erasing 128 Kibyte @ 0 -- 100 % complete - root@thin:~# nandwrite /dev/mtd4 /tmp/page.raw + root at thin:~# nandwrite /dev/mtd4 /tmp/page.raw Writing data to block 0 at offset 0x0 As it seems to work, let's now try with a complete image: - root@thin:~# flash_erase /dev/mtd4 0 0 + root at thin:~# flash_erase /dev/mtd4 0 0 Erasing 128 Kibyte @ 72e0000 -- 99 % complete flash_erase: Skipping bad block at 07300000 flash_erase: Skipping bad block at 07320000 flash_erase: Skipping bad block at 07340000 @@ -128,7 +128,7 @@ As it seems to work, let's now try with a complete image: flash_erase: Skipping bad block at 073e0000 Erasing 128 Kibyte @ 73e0000 -- 100 % complete - root@thin:~# nandwrite /dev/mtd4 mtd4ro + root at thin:~# nandwrite /dev/mtd4 mtd4ro Writing data to block 0 at offset 0x0 [ 421.406929] pxa3xx-nand d00d0000.nand: Ready time out!!! libmtd: error!: cannot write 2048 bytes to mtd4 (eraseblock 0, offset 2048) @@ -159,17 +159,17 @@ As it seems to work, let's now try with a complete image: So let's try again with a single page: - root@thin:~# flash_erase /dev/mtd4 0 1 + root at thin:~# flash_erase /dev/mtd4 0 1 Erasing 128 Kibyte @ 0 -- 100 % complete - root@thin:~# nandwrite /dev/mtd4 /tmp/page.raw + root at thin:~# nandwrite /dev/mtd4 /tmp/page.raw Writing data to block 0 at offset 0x0 FWIW, the version of nandwrite I have on my armhf debian is the following (no specific bug report related to that version of mtd-utils): - root@thin:~# nandwrite --version + root at thin:~# nandwrite --version nandwrite 1.5.0 Copyright (C) 2003 Thomas Gleixner @@ -183,15 +183,15 @@ mtd-utils): Ok, so let's see if the problem appears if we write more than 1 block: - root@thin:/tmp# flash_erase /dev/mtd4 0 3 + root at thin:/tmp# flash_erase /dev/mtd4 0 3 Erasing 128 Kibyte @ 40000 -- 100 % complete - root@thin:/tmp# dd if=/dev/urandom of=/tmp/3-blocks.raw bs=128K count=3 + root at thin:/tmp# dd if=/dev/urandom of=/tmp/3-blocks.raw bs=128K count=3 3+0 records in 3+0 records out 393216 bytes (393 kB) copied, 0.120255 s, 3.3 MB/s - root@thin:/tmp# nandwrite /dev/mtd4 /tmp/3-blocks.raw + root at thin:/tmp# nandwrite /dev/mtd4 /tmp/3-blocks.raw Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 @@ -200,19 +200,19 @@ Now, I am starting to wonder if nandwrite does not try and do something smart depending on the content of the file. So let's try and replace our "mtd4ro" file by a file of same size filled with random: - root@thin:~# ls -l mtd4ro + root at thin:~# ls -l mtd4ro -rw-r--r-- 1 arno root 121634816 Dec 3 20:30 mtd4ro - root@thin:~# dd if=/dev/urandom of=/tmp/whole.raw bs=128K count=928 + root at thin:~# dd if=/dev/urandom of=/tmp/whole.raw bs=128K count=928 928+0 records in 928+0 records out 121634816 bytes (122 MB) copied, 37.1333 s, 3.3 MB/s - root@thin:~# flash_erase /dev/mtd4 0 1 + root at thin:~# flash_erase /dev/mtd4 0 1 Erasing 128 Kibyte @ 0 -- 100 % complete - root@thin:~# nandwrite /dev/mtd4 /tmp/whole.raw + root at thin:~# nandwrite /dev/mtd4 /tmp/whole.raw Writing data to block 0 at offset 0x0 ... Writing data to block 916 at offset 0x7280000 @@ -246,7 +246,7 @@ our "mtd4ro" file by a file of same size filled with random: content of my "mtd4ro" is a simple a backup of the partition via dd (a ubi fs): - root@thin:~# hexdump -C mtd4ro | less + root at thin:~# hexdump -C mtd4ro | less 00000000 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 02 |UBI#............| 00000010 00 00 08 00 00 00 10 00 16 9a 76 a5 00 00 00 00 |..........v.....| 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| @@ -273,15 +273,15 @@ whole.raw, mtd4ro, whole.raw, mtd4ro, whole.raw: Let's now try with the first block only: - root@thin:~# dd if=mtd4ro of=/tmp/oneblock bs=128K count=1 + root at thin:~# dd if=mtd4ro of=/tmp/oneblock bs=128K count=1 1+0 records in 1+0 records out 131072 bytes (131 kB) copied, 0.00126152 s, 104 MB/s - root@thin:~# flash_erase /dev/mtd4 0 1 + root at thin:~# flash_erase /dev/mtd4 0 1 Erasing 128 Kibyte @ 0 -- 100 % complete - root@thin:~# nandwrite /dev/mtd4 /tmp/oneblock + root at thin:~# nandwrite /dev/mtd4 /tmp/oneblock Writing data to block 0 at offset 0x0 [ 3860.346928] pxa3xx-nand d00d0000.nand: Ready time out!!! libmtd: error!: cannot write 2048 bytes to mtd4 (eraseblock 0, offset 2048) diff --git a/a/content_digest b/N1/content_digest index ea07dbc..60b4bfc 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -10,16 +10,9 @@ "ref\087iov5aapx.fsf@natisbad.org\0" "ref\020131204142009.GB2486@localhost\0" "From\0arno@natisbad.org (Arnaud Ebalard)\0" - "Subject\0Re: [PATCH v5 00/14] Armada 370/XP NAND support\0" + "Subject\0[PATCH v5 00/14] Armada 370/XP NAND support\0" "Date\0Wed, 04 Dec 2013 21:48:04 +0100\0" - "To\0Ezequiel Garcia <ezequiel.garcia@free-electrons.com>\0" - "Cc\0Lior Amsalem <alior@marvell.com>" - Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - Jason Cooper <jason@lakedaemon.net> - linux-mtd@lists.infradead.org - Gregory Clement <gregory.clement@free-electrons.com> - Brian Norris <computersforpeace@gmail.com> - " linux-arm-kernel@lists.infradead.org\0" + "To\0linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" "Hi Ezequiel,\n" @@ -31,7 +24,7 @@ "Well, if we let the machines win, it's over.\n" "\n" "\n" - ">> root@humble:~# nandwrite -p /dev/mtd4 mtd4ro \n" + ">> root at humble:~# nandwrite -p /dev/mtd4 mtd4ro \n" ">> Writing data to block 0 at offset 0x0\n" ">> [ 449.915173] pxa3xx-nand d00d0000.nand: Ready time out!!!\n" ">> libmtd: error!: cannot write 2048 bytes to mtd4 (eraseblock 0, offset 2048)\n" @@ -114,34 +107,34 @@ "\n" "Let's erase the first block of /dev/mtd4\n" "\n" - " root@thin:~# flash_erase /dev/mtd4 0 1\n" + " root at thin:~# flash_erase /dev/mtd4 0 1\n" " Erasing 128 Kibyte @ 0 -- 100 % complete \n" " \n" "Create a 2048 byte file:\n" "\n" - " root@thin:~# dd if=/dev/urandom of=/tmp/page.raw bs=2048 count=1\n" + " root at thin:~# dd if=/dev/urandom of=/tmp/page.raw bs=2048 count=1\n" " 1+0 records in\n" " 1+0 records out\n" " 2048 bytes (2.0 kB) copied, 0.00104352 s, 2.0 MB/s\n" "\n" "dd that file to the first block\n" "\n" - " root@thin:~# dd if=/tmp/page.raw of=/dev/mtd4 bs=2048 count=1\n" + " root at thin:~# dd if=/tmp/page.raw of=/dev/mtd4 bs=2048 count=1\n" " 1+0 records in\n" " 1+0 records out\n" " 2048 bytes (2.0 kB) copied, 0.0008344 s, 2.5 MB/s\n" "\n" "Do the same with nandwrite:\n" "\n" - " root@thin:~# flash_erase /dev/mtd4 0 1\n" + " root at thin:~# flash_erase /dev/mtd4 0 1\n" " Erasing 128 Kibyte @ 0 -- 100 % complete \n" "\n" - " root@thin:~# nandwrite /dev/mtd4 /tmp/page.raw \n" + " root at thin:~# nandwrite /dev/mtd4 /tmp/page.raw \n" " Writing data to block 0 at offset 0x0\n" "\n" "As it seems to work, let's now try with a complete image:\n" " \n" - " root@thin:~# flash_erase /dev/mtd4 0 0\n" + " root at thin:~# flash_erase /dev/mtd4 0 0\n" " Erasing 128 Kibyte @ 72e0000 -- 99 % complete flash_erase: Skipping bad block at 07300000\n" " flash_erase: Skipping bad block at 07320000\n" " flash_erase: Skipping bad block at 07340000\n" @@ -152,7 +145,7 @@ " flash_erase: Skipping bad block at 073e0000\n" " Erasing 128 Kibyte @ 73e0000 -- 100 % complete \n" "\n" - " root@thin:~# nandwrite /dev/mtd4 mtd4ro \n" + " root at thin:~# nandwrite /dev/mtd4 mtd4ro \n" " Writing data to block 0 at offset 0x0\n" " [ 421.406929] pxa3xx-nand d00d0000.nand: Ready time out!!!\n" " libmtd: error!: cannot write 2048 bytes to mtd4 (eraseblock 0, offset 2048)\n" @@ -183,17 +176,17 @@ "\n" "So let's try again with a single page:\n" " \n" - " root@thin:~# flash_erase /dev/mtd4 0 1\n" + " root at thin:~# flash_erase /dev/mtd4 0 1\n" " Erasing 128 Kibyte @ 0 -- 100 % complete \n" "\n" - " root@thin:~# nandwrite /dev/mtd4 /tmp/page.raw \n" + " root at thin:~# nandwrite /dev/mtd4 /tmp/page.raw \n" " Writing data to block 0 at offset 0x0\n" " \n" "FWIW, the version of nandwrite I have on my armhf debian is the\n" "following (no specific bug report related to that version of\n" "mtd-utils):\n" "\n" - " root@thin:~# nandwrite --version\n" + " root at thin:~# nandwrite --version\n" " nandwrite 1.5.0\n" " \n" " Copyright (C) 2003 Thomas Gleixner \n" @@ -207,15 +200,15 @@ "\n" "Ok, so let's see if the problem appears if we write more than 1 block:\n" " \n" - " root@thin:/tmp# flash_erase /dev/mtd4 0 3\n" + " root at thin:/tmp# flash_erase /dev/mtd4 0 3\n" " Erasing 128 Kibyte @ 40000 -- 100 % complete \n" " \n" - " root@thin:/tmp# dd if=/dev/urandom of=/tmp/3-blocks.raw bs=128K count=3\n" + " root at thin:/tmp# dd if=/dev/urandom of=/tmp/3-blocks.raw bs=128K count=3\n" " 3+0 records in\n" " 3+0 records out\n" " 393216 bytes (393 kB) copied, 0.120255 s, 3.3 MB/s\n" " \n" - " root@thin:/tmp# nandwrite /dev/mtd4 /tmp/3-blocks.raw \n" + " root at thin:/tmp# nandwrite /dev/mtd4 /tmp/3-blocks.raw \n" " Writing data to block 0 at offset 0x0\n" " Writing data to block 1 at offset 0x20000\n" " Writing data to block 2 at offset 0x40000\n" @@ -224,19 +217,19 @@ "smart depending on the content of the file. So let's try and replace\n" "our \"mtd4ro\" file by a file of same size filled with random:\n" " \n" - " root@thin:~# ls -l mtd4ro \n" + " root at thin:~# ls -l mtd4ro \n" " -rw-r--r-- 1 arno root 121634816 Dec 3 20:30 mtd4ro\n" " \n" - " root@thin:~# dd if=/dev/urandom of=/tmp/whole.raw bs=128K count=928\n" + " root at thin:~# dd if=/dev/urandom of=/tmp/whole.raw bs=128K count=928\n" " 928+0 records in\n" " 928+0 records out\n" " 121634816 bytes (122 MB) copied, 37.1333 s, 3.3 MB/s\n" " \n" - " root@thin:~# flash_erase /dev/mtd4 0 1\n" + " root at thin:~# flash_erase /dev/mtd4 0 1\n" " Erasing 128 Kibyte @ 0 -- 100 % complete \n" " \n" " \n" - " root@thin:~# nandwrite /dev/mtd4 /tmp/whole.raw \n" + " root at thin:~# nandwrite /dev/mtd4 /tmp/whole.raw \n" " Writing data to block 0 at offset 0x0\n" " ...\n" " Writing data to block 916 at offset 0x7280000\n" @@ -270,7 +263,7 @@ "content of my \"mtd4ro\" is a simple a backup of the partition via\n" "dd (a ubi fs):\n" "\n" - " root@thin:~# hexdump -C mtd4ro | less\n" + " root at thin:~# hexdump -C mtd4ro | less\n" " 00000000 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 02 |UBI#............|\n" " 00000010 00 00 08 00 00 00 10 00 16 9a 76 a5 00 00 00 00 |..........v.....|\n" " 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|\n" @@ -297,15 +290,15 @@ "\n" "Let's now try with the first block only:\n" "\n" - " root@thin:~# dd if=mtd4ro of=/tmp/oneblock bs=128K count=1\n" + " root at thin:~# dd if=mtd4ro of=/tmp/oneblock bs=128K count=1\n" " 1+0 records in\n" " 1+0 records out\n" " 131072 bytes (131 kB) copied, 0.00126152 s, 104 MB/s\n" "\n" - " root@thin:~# flash_erase /dev/mtd4 0 1\n" + " root at thin:~# flash_erase /dev/mtd4 0 1\n" " Erasing 128 Kibyte @ 0 -- 100 % complete \n" "\n" - " root@thin:~# nandwrite /dev/mtd4 /tmp/oneblock \n" + " root at thin:~# nandwrite /dev/mtd4 /tmp/oneblock \n" " Writing data to block 0 at offset 0x0\n" " [ 3860.346928] pxa3xx-nand d00d0000.nand: Ready time out!!!\n" " libmtd: error!: cannot write 2048 bytes to mtd4 (eraseblock 0, offset 2048)\n" @@ -351,4 +344,4 @@ "\n" a+ -a85f1ce8ca3a0d30a399d44241445844d40d56ad6cb7d96ab86b03bae4d5302f +8869c5991fa301200b20d795f813de0c87bd4f8c60e750e6b72887d5fc42b59d
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.