Search
Project
General
Profile
Sign in
Register
Home
Projects
Redmine shortcuts
Search
:
MitySOM-335x (ARM Cortex-A8 Based Products)
All Projects
Mity CPU Platforms
»
MitySOM-335x (ARM Cortex-A8 Based Products)
Overview
Activity
Documents
Wiki
Forums
Download (1.28 KB)
Testing ECC bitflip correction
» linux_512MBnand_biterr.txt
Jonathan Cormier
, 06/03/2020 05:05 PM
root@mitysom-335x:~# flash_erase /dev/mtd1 0 0
Erasing 256 Kibyte @ 0 -- 100 % complete
root@mitysom-335x:~# nandwrite -p /dev/mtd1 /run/media/mmcblk0p1/MLO
Writing data to block 0 at offset 0x0
root@mitysom-335x:~# nanddump /dev/mtd1 -l 4096 > /dev/null
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 262144, page size 4096, OOB size 224
Dumping data starting at 0x00000000 and ending at 0x00001000...
root@mitysom-335x:~# nanddump --oob /dev/mtd0 -l 4096 -f nandpage.raw
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 1
Number of bbt blocks: 0
Block size 262144, page size 4096, OOB size 224
Dumping data starting at 0x00000000 and ending at 0x00001000...
root@mitysom-335x:~# xxd nandpage.raw > nandpage.xxd
root@mitysom-335x:~# vi nandpage.xxd
root@mitysom-335x:~# xxd -r nandpage.xxd nandpage.flipped
root@mitysom-335x:~# nandwrite --oob --noecc /dev/mtd1 nandpage.flipped
Writing data to block 0 at offset 0x0
root@mitysom-335x:~# nanddump /dev/mtd1 -l 4096 > /dev/null
ECC failed: 1
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 262144, page size 4096, OOB size 224
Dumping data starting at 0x00000000 and ending at 0x00001000...
ECC: 1 corrected bitflip(s) at offset 0x00000000
« Previous
1
2
Next »
(2-2/2)
Go to top
Loading...