Problems with r/w on mtdblock0
I am a scumbag. I have just re-run it up as modules and redone my test, and the data *is* sticking .. and *is* surviving reboots. I have no idea how it failed my previous test (considering I'm using the same test scripts and configs).
I apologise profusely for this tripe .. and will retest my "inbuilt" scenario aswell ...
<whipping back with rosaries>
I will not post to public mailling lists after 18hours of programming .. I will not post to public mailling lists after 18hours of programming .. I will not post to public mailling lists after 18hours of programming ..
<etc ad nauseum>
If the inbuilt stuff isn't problematic, then I'll go back to Hamish's suggestions ..
'night.
----- Original Message -----
Quoted 82 lines
From: "Ian" <[email protected]>
To: <[email protected]>
Subject: Re: Problems with r/w on mtdblock0
Date: Tue, 05 Dec 2000 10:42:34 +1000I can also confirm that this problem exists when compiled as modules (and also with the #define
DOC_SINGLE_DRIVERcommented out).It isn't recent. Before this mornings attempts I was using a CVS from about 4-5days ago and it was in that bundle that I noticed it (I'm pretty sure it was pre the combo mods that Ollie did)
----- Original Message -----
Quoted 54 lines
From: "Ian" <[email protected]>
To: <[email protected]>
Subject: Problems with r/w on mtdblock0
Date: Tue, 05 Dec 2000 08:36:59 +1000Have 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 outbash#
/bin/ddif=/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 outI 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/mtdblock1Erm;
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 address0xDC000
Flash chip found: Manufacture ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC) 1 flash chips found. Total DiskOnChip size: 8 MbytesQuoted 8 lines
--
http://HumanHeuristic.com/
"Bringing people together in a world full of computers"To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 8 lines
--
http://HumanHeuristic.com/
"Bringing people together in a world full of computers"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]
Quoted 4 lines · [email protected] said:
I am a scumbag. I have just re-run it up as modules and redone my test, and the data *is* sticking .. and *is* surviving reboots. I have no idea how it failed my previous test (considering I'm using the same test scripts and configs).
The way I normally program stuff into the DiskOnChip is with the 'doc_loadbios' program - which uses the character device, does MEMERASE ioctls to make room for the image you tell it to load, then writes the image.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 4 lines · Ian
I have just re-run it up as modules and redone my test, and the data *is* sticking .. and *is* surviving reboots. I have no idea how it failed my previous test (considering I'm using the same test scripts and configs).
I've had this happen. Don't worry about it.
ron
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 1 line · [email protected] said:
I've had this happen. Don't worry about it.
If you writing stuff to the mtdblock device and then reboot immediately, you may be rebooting before the kernel thread actually completes the write. I'm not sure if it makes you wait on close() or not. P'raps it should.
Using doc_loadbios on the chardevice should be reliable.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 7 lines · David Woodhouse
Quoted 1 line · [email protected] said:
I've had this happen. Don't worry about it.
If you writing stuff to the mtdblock device and then reboot immediately, you may be rebooting before the kernel thread actually completes the write. I'm not sure if it makes you wait on
close()or not. P'raps it should.
It does.
Nicolas
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 1 line · [email protected] said:
It does.
OK, I revert to my previous stance of having no clue then :)
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 5 lines · David Woodhouse
Quoted 1 line · [email protected] said:
It does.
OK, I revert to my previous stance of having no clue then :)
I was confused too. All I can tell you is I have seen cases where the write doesn't "stick".
ron
To unsubscribe, send "unsubscribe mtd" to [email protected]