Skip to contentSkip to conversation

Problems with r/w on mtdblock0

DISCUSSION Ian 1 participant 1 message Dec 6, 2000 Memory technology devices (MTD)

lore
Share & tools
lore

Ian

author
#0 lore raw
Quoted 2 lines

Of course it WILL BEHAVIOR THIS WAY !!!!

What is /dev/mtd0 ?

Is it a "raw" device ... do I see unhindered access to the DoC Millennium, or am I being processed in some way (maybe address mapped) .. ?

Quoted 21 lines

The DoC has an NAND flash chip in side. For NAND flash chip you can only turn each bit form 1 to 0 by WRITE operation, not the other way around. The only way to turn a 0 bit to 1 is by a ERASE operation. This is why I have to erase the first few Erase Blocks befor writing the DoC in my loaddoc script.

# Erase the first 128 pages of the DoC,
# 128 pages == 128 page * 512 bytes per page == 1 MB ./erase /dev/mtd0 0 128

# Use dd to (zero) pad linuxbios.strip to 63 KB
dd conv=sync bs=63k if=$LINUXBIOS/util/config/winfast/linuxbios.strip of=linuxbios.block

# Use dd to wrtie IPL to the first and second pages (page 0, 1) on the DoC # N.B. if you are using 2.4.0-test10 and later kernel, the conv=notrunc

# is neceressary.
dd if=$LINUXBIOS/util/config/winfast/docipl of=/dev/mtd0 conv=notrunc
dd if=$LINUXBIOS/util/config/winfast/docipl of=/dev/mtd0 seek=1 conv=notrunc
Quoted 5 lines

Ollie

To unsubscribe, send "unsubscribe mtd" to [email protected]

--
http://HumanHeuristic.com/
"Bringing people together in a world full of computers"

To unsubscribe, send "unsubscribe mtd" to [email protected]