LBACHS
You need to write drivers ,or if it is a new compueter,perhaps it will support int 13h extensions:bloodhound23 wrote:How do I use lba? Bios uses CHS.
http://www.ctyme.com/intr/rb-0708.htm
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
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
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
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.
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
then what is point asking, make somebody else do search for you?bloodhound23 wrote:I just looked at the grub stage 1 source. Helps like you wouldn't belive
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.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
*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.
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.