Page 1 of 1

makefile issue relating to os development

Posted: Wed Apr 23, 2003 1:31 pm
by beyondsociety
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?

Re:makefile issue relating to os development

Posted: Wed Apr 23, 2003 2:14 pm
by Tim
beyondsociety wrote:Would I assemble my own bootloader to a binary file and then copy it to the disk using dd in linux?
Yes.

BTW: is this really a makefile issue?

Re:makefile issue relating to os development

Posted: Wed Apr 23, 2003 3:12 pm
by pini
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 :

Code: Select all

cat boot kernel /dev/zero | dd of=fd0.img bs=512 count=2880

Re:makefile issue relating to os development

Posted: Thu Apr 24, 2003 2:04 pm
by beyondsociety
BTW: is this really a makefile issue?
Sortof.

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

Posted: Thu Apr 24, 2003 6:31 pm
by _mark
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()