Page 2 of 2

Posted: Sat Feb 09, 2008 8:00 pm
by pcmattman
Please, for everyone's sake. use the edit button...

Posted: Sun Feb 10, 2008 2:37 am
by octavio
bloodhound23 wrote:How do I use lba? Bios uses CHS.
You need to write drivers ,or if it is a new compueter,perhaps it will support int 13h extensions:
http://www.ctyme.com/intr/rb-0708.htm

Posted: Mon Feb 11, 2008 3:05 am
by AJ
No need to shout. As well as suggesting the use of a driver, octavio has suggested the use of int 13h extensions which is a perfectly valid suggestion. #

There are many boot loader examples about on the web, some of which support reading from the hard disk - have a look at some of them in addition to the GRUB source too.

Cheers,
Adam

Posted: Mon Feb 11, 2008 4:53 pm
by exkor
Here is one small ata code. I THINK it reads pci bars using real mode interrupts and then follows ata/atapi specs and polls regs.

SO you'll need real mode, ATA specs to understand the file and no protected mode or interrupts.

the file supposed to read 1st sector of HDD
bloodhound23 wrote:I just looked at the grub stage 1 source. Helps like you wouldn't belive
then what is point asking, make somebody else do search for you?

PS: code as it is in the file file didn't work for me, and don't shout at me because of that or because you can't fit it in 512 bytes.

Posted: Mon Feb 11, 2008 6:33 pm
by Combuster
*mod stuffs away the fire extinguisher*

Please, there is absolutely no excuse for directly insulting people. And for those who think the other party started, there is not a single valid excuse to return the favour either. I have salvaged that which is interesting, but the rest of the posts are gone.