[PATCH 1/2] drivers/mtd/maps/pcmciamtd.c: fixing obvious errors
Alexander Kurz
linux at blala.de
Mon Apr 12 11:49:15 EDT 2010
Hello folks,
this is an attempt, to reanimate the pcmciamtd driver.
The driver has been marked as BROKEN for much too long.
After fixing the obvious errors, the patched driver will now compile
again on v2.6.34-rc3. First tests with two 4MB-Flashcards including
erase- and write test with one of the cards where successfull.
Here is an erase/write/read example:
# pccardctl ident
Socket 1:
product info: "SMART Modular Technologies", " 4MB FLASH Card", "", ""
function: 1 (memory)
# flash_erase /dev/mtd0 0 64
Erase Total 64 Units
Region 0 is at 0 of 16 sector and with sector size 20000
Region 1 is at 2097152 of 16 sector and with sector size 20000
Performing Flash Erase of length 131072 at offset 0x1e0000
Moving to region 1
Performing Flash Erase of length 131072 at offset 0x3e0000
Moving to region 2
done
# dd if=/dev/mtd0 | od -t x1
0000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
20000000
4194304 Bytes (4,2 MB) kopiert, 5,99274 s, 700 kB/s
# dd bs=65536 if=~/r4 of=/dev/mtd0
64+0 Datensätze ein
64+0 Datensätze aus
4194304 Bytes (4,2 MB) kopiert, 39,5289 s, 106 kB/s
# dd if=/dev/mtd0 of=c1
# diff c1 ~/r4 && echo 'jipeee!'
jipeee!
Cheers, Alexander Kurz
More information about the linux-mtd
mailing list