OS Dev in Linux
Posted: Sat Sep 10, 2005 1:54 am
Heya all!
Basic question!
I have NASM and GCC and such on my Linux install. but Im kinda unsure how to get the bootsector.bin and the kernel.bin to their respective locations on the floppy disk.
I was simpl ythinking...
Ok, we can probably write ONE .bin file to the disk... like...
dd if=bootl.bin of=/dev/fd0
so... I should just combine... bootl.bin and prog.bin
im not exactly sure how to though.
touch newfile.bin
cat bootl.bin >> newfile.bin
cat prog.bin >> newfile.bin ?
Well, any help would be appreciated as usual.
Thanks!
~kyretzn
Basic question!
I have NASM and GCC and such on my Linux install. but Im kinda unsure how to get the bootsector.bin and the kernel.bin to their respective locations on the floppy disk.
I was simpl ythinking...
Ok, we can probably write ONE .bin file to the disk... like...
dd if=bootl.bin of=/dev/fd0
so... I should just combine... bootl.bin and prog.bin
im not exactly sure how to though.
touch newfile.bin
cat bootl.bin >> newfile.bin
cat prog.bin >> newfile.bin ?
Well, any help would be appreciated as usual.
Thanks!
~kyretzn