Page 1 of 1

Making a two stage bootloader

Posted: Sun May 20, 2007 9:32 am
by t0xic
Hey everyone,

I have a first stage bootloader that works fine. I want to be able to use the a20 line, and some other things before I switch into protected mode. How would I go about turning a one stage bootloader into a two stage bootloader.

Thanks

--t0xic

Posted: Sun May 20, 2007 9:49 am
by earlz
assuming your using a filesystem, just make your stage2 in a flat binary file and name it something like "stage2.bin" then, rather than loading the kernel, just load that instead..

Posted: Sun May 20, 2007 10:29 am
by t0xic
No, I'm not using a filesystem. The disk image is unformated, but I think I have an idea for loading the second stage

Thanks

--t0xic