Page 1 of 1

make boot loader together.

Posted: Fri Dec 02, 2005 1:41 am
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! ::) ::)

Re:make boot loader together.

Posted: Fri Dec 02, 2005 4:03 am
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.

Re:make boot loader together.

Posted: Fri Dec 02, 2005 4:10 am
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.