make boot loader together.

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
MANDLA

make boot loader together.

Post by MANDLA »

hello all
i m making own os, i had finished boot.asm, but i must load kernel and switch a20 when os is loaded after boot.
i consider transplant, so the kernel_loader use c language, i had made clear screen program, but i must get hd and fd drive parm from bios, but how can i do?
help!help!help!help!help!help!help! ::) ::)
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:make boot loader together.

Post by bubach »

what does your "boot.asm" do?
you usally load your kernel with the help of the BIOS and then wait with stuff like a fd/hd driver which means that you won't need any "parm" yet.
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:make boot loader together.

Post by Solar »

Do you write the boot loader because you want to learn about boot loaders, or is it just a necessary evil for you on the path to your own OS?

If it's the latter, consider using GRUB. It does the kernel-loading and the switch to protected mode, the probing of RAM and even loading of additional kernel modules for you.
Every good solution is obvious once you've found it.
Post Reply