Implementing a multi-stage bootloader
Posted: Wed Mar 09, 2011 11:09 am
Can anyone give me a tutorial or some info at least which i need to do differently in order to work up with the tutorials on brokenthorn regarding the multistage bootloader for linux . The tutorials are all done in Windows very difficult to put together
I copied the multistage bootloader http://www.brokenthorn.com/Resources/Demos/Demo1.zip and tried it on Ubuntu 10.04 as follows
Now running floppy in bochs gave the following error in log
Rebooting again and again geve the same line in floppy 1 read returned some erroneous status
Can anybody help me with this . I'm really going insomniac because of this , and the worst part is , I don't know how to do it . Just shooting in the dark with hit and trial .
I copied the multistage bootloader http://www.brokenthorn.com/Resources/Demos/Demo1.zip and tried it on Ubuntu 10.04 as follows
Code: Select all
dd bs=512 count=2880 if=/dev/zero of=floppy.img
mkdosfs -f 2 floppy.img
cp stage_2.bin floppy.img
dd if=boot_stage1.bin of=floppy.img
(or may be 1 , I don't remember )floppy 1 read returned 0
Rebooting again and again geve the same line in floppy 1 read returned some erroneous status
Can anybody help me with this . I'm really going insomniac because of this , and the worst part is , I don't know how to do it . Just shooting in the dark with hit and trial .