makefile issue relating to os development

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
beyondsociety

makefile issue relating to os development

Post 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?
Tim

Re:makefile issue relating to os development

Post 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?
pini

Re:makefile issue relating to os development

Post 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
beyondsociety

Re:makefile issue relating to os development

Post 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?
_mark

Re:makefile issue relating to os development

Post 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()
Post Reply