Making a two stage bootloader

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
User avatar
t0xic
Member
Member
Posts: 216
Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:

Making a two stage bootloader

Post 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
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post 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..
User avatar
t0xic
Member
Member
Posts: 216
Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:

Post 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
Post Reply