pritamzope / OS

Writing & Making Operating System and Kernel parts so simple like Hello World Programs, Starting from writing Bootloaders, Hello World Kernel, GDT, IDT, Terminal, Keyboard/Mouse, Memory Manager, HDD ATA R/W, VGA/VESA Graphics
http://createyourownos.blogspot.com
663 stars 103 forks source link

How do I create a bootloader that loads the OS #14

Closed okyanusoz closed 3 years ago

okyanusoz commented 4 years ago

I know I need to enter Protected Mode etc. but I don't see any code when I lookup on the web. Can someone give a sample code of a full bootloader in Assembly? Also, I was using GRUB, but I want to create my own. I need to load an elf_i386 file.

sasdallas commented 2 years ago

@okyanusoz To clarify, do you mean something like an MBR? It’s quite easy to write one of those, take a look here: link if so.

If you are talking about something like a multi boot loader, that is included in the repo. If you are talking about something else, please tell me. I’m not sure how you would load an elf_i386 file.

Can you send over how you are compiling the code and/or the code?