I'm switching my os development to linux and have created a makefile. I have created my own bootloader and want to use it instead of GRUB.
Would I assemble my own bootloader to a binary file and then copy it to the disk using dd in linux?
Or would I have to compile it to .o file and link it to elf?
makefile issue relating to os development
Re:makefile issue relating to os development
Yes.beyondsociety wrote:Would I assemble my own bootloader to a binary file and then copy it to the disk using dd in linux?
BTW: is this really a makefile issue?
Re:makefile issue relating to os development
I'm using my own bootloader & I'm making it into binary
Then I'm making my kernel in binary too.
I am using this command to build a BOCHS-readable floppy disk image :
Then I'm making my kernel in binary too.
I am using this command to build a BOCHS-readable floppy disk image :
Code: Select all
cat boot kernel /dev/zero | dd of=fd0.img bs=512 count=2880
Re:makefile issue relating to os development
Sortof.BTW: is this really a makefile issue?
Im used to os development on windows and so I used to assemble my bootloader to binary and then copy it to a floppy disk.
Most of the people that use Linux for os development, use Grub and not thier own bootloader.
I was wondering what would be the best way to go about doing this?
Re:makefile issue relating to os development
I have a SYS command (program) I wrote that is part of the bootloader project. If you can write a bootloader you can write the software to plunk it on a disk.
_mark()
_mark()