lo,
Got sata running, in native mode, i think, atleast am able to read or write to/from hdd's whit PIO mode, now just got a problem whit my SATA dvd-device, some how when i send it its first ATAPI command it remains bizy for ever (bizy as in, the hdd led on the case keeps burning...) and after that i cant send any more ATAPI commands.
Thanks for the replies.
Regards
PyroMathic
ATAPI command doesn't return
This can be for a number of reasons, do you have time outs in all test ready loops, do you have a reset function in case of lockup, do you do this in pmode (as i have found problems, when running such code in pmode, but works fine in real mode, so i run it on bootup and get the info there.
But i have found big problems with cd/dvd, some work fine with this setting, others like that setting, some like cd-r otheres like cd-rw, some do not like it when you have not much on the disk etc, in short most floppy work the same, also hdd work the same on most PC, but cd/dvd do not, i have over 20 test PC, and the same code works differant on most of them, but thats my two cents.
But i have found big problems with cd/dvd, some work fine with this setting, others like that setting, some like cd-r otheres like cd-rw, some do not like it when you have not much on the disk etc, in short most floppy work the same, also hdd work the same on most PC, but cd/dvd do not, i have over 20 test PC, and the same code works differant on most of them, but thats my two cents.
-
- Member
- Posts: 33
- Joined: Wed Apr 26, 2006 11:00 pm
Well... you did, but this post seems to request a completely different thing (as in, unrelated to the original topic and worth an own thread for solving).PyroMathic wrote:sorry, was intending to post here: http://www.osdev.org/phpBB2/viewtopic.p ... 74a8770838
:S, soz
-
- Member
- Posts: 33
- Joined: Wed Apr 26, 2006 11:00 pm
okay, that also explains it. (was starting to doubt my self). I thought that it was all sata related.Candy wrote:Well... you did, but this post seems to request a completely different thing (as in, unrelated to the original topic and worth an own thread for solving).PyroMathic wrote:sorry, was intending to post here: http://www.osdev.org/phpBB2/viewtopic.p ... 74a8770838
:S, soz
for if any one else migt ever have the same problem:
but the problem was this: i used the wrong ATAPI-SCSI command and if i read 1 sector the SATA-DVD/RW simply keeps sending the data in PIO mode, so eventually my data seg overflows, and a page-fault is the result.
Regards
PyroMathic