Search code examples
assemblykernelnasmbootloader

make bootloader and kernel into iso?


how to create simple bootloader that load kernel into iso? it has been 5 days , I searching in google and do trial and error many times but got nothing.....I have tried many tutorial like mikeos,osdev,supernova,cosmos os but still get no solution..... my computer doesn't have floopy disk so I can't make bootloader using floopy disk... I see in mikeos tutorial first sector 512 byte is for bootloader and second for kernel can be made using imdisk but using floopy disk also he can made bootloader & kernel load another file into iso...how he can do it(make iso without using floopy disk)? I want to make bootloader and kernel using assembly...it's not first time I using assembly and have experinced some other language like c++,vb,php,phyton and others.... how to make first sector for bootloader that seacrhing/load kernel compiled into iso?also adding some file and folder into iso?thanks..


Solution

  • I recommend you to use a standard bootloader if you are going to write an OS and use an emulator instead of real machine any way (not because you bootloader could break computer - it probably couldn't, but because it is a simpler way to start up with and debug. You will almost certainly get bored of burning a CD each update.

    Also, note that ISO uses a more complicated boot protocol than floppy/harddisks does. The best approach is to use GRUB or ISOLINUX if you wish to use CD and use a floppy image (which can be attached to CD by emulation latter) if you wish to have you very own bootloader.