ATAPI command doesn't return

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
PyroMathic
Member
Member
Posts: 33
Joined: Wed Apr 26, 2006 11:00 pm

Post by PyroMathic »

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
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

Are you listening for an answer?
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

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.
PyroMathic
Member
Member
Posts: 33
Joined: Wed Apr 26, 2006 11:00 pm

Post by PyroMathic »

sorry, was intending to post here: http://www.osdev.org/phpBB2/viewtopic.p ... 74a8770838

:S, soz
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

PyroMathic wrote:sorry, was intending to post here: http://www.osdev.org/phpBB2/viewtopic.p ... 74a8770838

:S, soz
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
Member
Member
Posts: 33
Joined: Wed Apr 26, 2006 11:00 pm

Post by PyroMathic »

Candy wrote:
PyroMathic wrote:sorry, was intending to post here: http://www.osdev.org/phpBB2/viewtopic.p ... 74a8770838

:S, soz
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).
okay, that also explains it. (was starting to doubt my self). I thought that it was all sata related.

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
Post Reply