LBACHS

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.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Please, for everyone's sake. use the edit button...
octavio
Member
Member
Posts: 94
Joined: Wed Oct 25, 2006 5:12 am
Location: Barcelona España
Contact:

Post 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
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post 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
exkor
Member
Member
Posts: 111
Joined: Wed May 23, 2007 9:38 pm

Post 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.
User avatar
Combuster
Member
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:

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply