Project

General

Profile

Testing ECC bitflip correction » linux_512MBnand_biterr.txt

Jonathan Cormier, 06/03/2020 05:05 PM

 
1
root@mitysom-335x:~# flash_erase /dev/mtd1 0 0
2
Erasing 256 Kibyte @ 0 -- 100 % complete
3
root@mitysom-335x:~# nandwrite -p /dev/mtd1 /run/media/mmcblk0p1/MLO
4
Writing data to block 0 at offset 0x0
5

    
6
root@mitysom-335x:~# nanddump /dev/mtd1 -l 4096 > /dev/null
7
ECC failed: 0
8
ECC corrected: 0
9
Number of bad blocks: 0
10
Number of bbt blocks: 0
11
Block size 262144, page size 4096, OOB size 224
12
Dumping data starting at 0x00000000 and ending at 0x00001000...
13

    
14
root@mitysom-335x:~# nanddump --oob /dev/mtd0 -l 4096 -f nandpage.raw
15
ECC failed: 0
16
ECC corrected: 0
17
Number of bad blocks: 1
18
Number of bbt blocks: 0
19
Block size 262144, page size 4096, OOB size 224
20
Dumping data starting at 0x00000000 and ending at 0x00001000...
21

    
22
root@mitysom-335x:~# xxd nandpage.raw > nandpage.xxd
23

    
24
root@mitysom-335x:~# vi nandpage.xxd
25

    
26
root@mitysom-335x:~# xxd -r nandpage.xxd nandpage.flipped
27

    
28
root@mitysom-335x:~# nandwrite --oob --noecc /dev/mtd1 nandpage.flipped
29
Writing data to block 0 at offset 0x0
30

    
31
root@mitysom-335x:~# nanddump /dev/mtd1 -l 4096 > /dev/null
32
ECC failed: 1
33
ECC corrected: 0
34
Number of bad blocks: 0
35
Number of bbt blocks: 0
36
Block size 262144, page size 4096, OOB size 224
37
Dumping data starting at 0x00000000 and ending at 0x00001000...
38
ECC: 1 corrected bitflip(s) at offset 0x00000000
(2-2/2) Go to top
Add picture from clipboard (Maximum size: 1 GB)