![]() |
Error with DD for /dev/mtdblock4??
While testing the speed of my various SD cards, I also tested the internal flash with the command:
Code:
time dd if=/dev/mtdblock4 of=/dev/null bs=8192 count=10240 Code:
dd: /dev/mtdblock4: Input/output error Should I be concerned? |
Re: Error with DD for /dev/mtdblock4??
Well, yes, that's odd but maybe it is not a problem. After running dd run also dmesg and see end of kernel log. What sort of i/o error you see? Flash memory can have few bad blocks but those should be automatically marked as bad and skipped. See also kernel log right after boot when mtd devices are detected and scanned.
|
Re: Error with DD for /dev/mtdblock4??
Here are the relevant lines from dmesg:
Code:
[ 449.539062] onenand_wait: controller error = 0x2440 |
Re: Error with DD for /dev/mtdblock4??
Such errors look exactly like having bad blocks in the flash and are somewhat 'normal'. Flash memory can have few bad blocks from factory (similar to bad pixels on LCD monitors), when device boots it scans for them and should not use them, here is my output with N810
Code:
[ 0.570312] OMAP2 OneNAND driver initializing |
Re: Error with DD for /dev/mtdblock4??
Thank you fanoush for relieving my anxieties than my new toy was already doing death throws. :)
|
Re: Error with DD for /dev/mtdblock4??
Well you may call it bad luck but it is not a big issue. One erase block (= group of flash blocks used as whole unit) is 128KB on Nokia tablets which is quite small part of full 256MB. I've seen like 6 770s, one N800 and two N810s and most of them have bad blocks. The failed dd test surprised me too, though. But it makes sense, for reading and writing one should use specific tools - nanddump and nandwrite from mtd-utils package which skip bad blocks. You can get nanddump from my initfs flasher If you still want to measure the speed or just use skip= parameter of dd to read different part of flash.
Code:
time dd if=/dev/mtdblock4 of=/dev/null bs=8192 count=10240 skip=10240 |
All times are GMT. The time now is 05:00. |
vBulletin® Version 3.8.8