Skip to contentSkip to conversation

Problems with r/w on mtdblock0

DISCUSSION Ian 2 participants 2 messages Dec 4, 2000 – Dec 5, 2000 Memory technology devices (MTD)

lore
Share & tools
lore

Ian

author
#0 lore raw

Have I done something wrong to get this error?

bash# dd if=/dev/zero of=/dev/mtdblock0 bs=512 count=1
end_request: I/O error, dev 1f:00 (mtdblock), sector 0
dd: /dev/mtdblock0: Input/output error
1+0 records in
0+0 records out

bash# /bin/dd if=/dev/mtdblock0 of=/dev/null bs=512 count=1
end_request: I/O error, dev 1f:00 (mtdblock), sector 0 /bin/dd: /dev/mtdblock0: Input/output error
0+0 records in
0+0 records out

I have no problems reading and writing to nftla on my DoC Millennium ... just
not the block device.

NB: I'm trying to use the block device, because dd'ing to the first and second
512bytes of the character device, while appearing successful, does not "stick". A hexdump immediately after a dd shows no sign of the dd data.

Note, too, that dd'ing to a non existent DoC yields a different error;

    bash# /bin/dd if=/dev/mtdblock1 of=/dev/null bs=512 count=1
    /bin/dd: /dev/mtdblock1: No such device

    brw-r--r--   1 root     root      31,   0 Dec  4 20:14 /dev/mtdblock0
    brw-r--r--   1 root     root      31,   1 Dec  4 20:14 /dev/mtdblock1

Erm;
bash# cat /proc/mtd
mtd0: 00800000 "DiskOnChip Millennium"

is that supposed to be the memory location for the DoC ?

Boot process (My DoC drivers are compiled internally to the kernel, *not* as modules)
Initializing MTD Layer
M-Systems DiskOnChip driver. (C) 1999 Machine Vision Holdings, Inc. DiskOnChip Millennium found at address 0xDC000
Flash chip found: Manufacture ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC) 1 flash chips found. Total DiskOnChip size: 8 Mbytes

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

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

#1 lore raw
Quoted 9 lines · Ian

Have I done something wrong to get this error?

bash# dd if=/dev/zero of=/dev/mtdblock0 bs=512 count=1
end_request: I/O error, dev 1f:00 (mtdblock), sector 0
dd: /dev/mtdblock0: Input/output error
1+0 records in
0+0 records out

Quoted 9 lines

bash# /bin/dd if=/dev/mtdblock0 of=/dev/null bs=512 count=1
end_request: I/O error, dev 1f:00 (mtdblock), sector 0 /bin/dd: /dev/mtdblock0: Input/output error
0+0 records in
0+0 records out

I have no problems reading and writing to nftla on my DoC Millennium ... just
not the block device.

Ian,
The /dev/mtdblockN device the the "block device" node for MTD devices.
In the DoC case, it can only read/write data in 8KB block (the erase size). You can not read/write 512B on itm it will get "cached" by the driver. If you are playing with the IPL stuff, WRITE TO /dev/mtd0.

Ollie

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