I have been searching the web for days now for a application similiar to
makeboot (just that i need it for linux), which can be used to put a simple bootsector and kernel together in a raw floppy-image file which can boot with bochs or be written onto a real floppy afterwards.
I tried recompiling makeboot under linux, but the imagefile that was created by my recompiled makeboot was messed up and did not work properly.
I tried an image created under windows before and it was laded correctly.
So the problem i this little tool...
After setting up bochs inside wine (it would not run directly with linux) this would be the last step i need, before i can go on with OSDev and lowlevel experiments only under linux and without rebooting all the time..
Please tell me a command or application to use!
Thanks in advance!
Creating image files under linux?
Re:Creating image files under linux?
How about DD ?
Don't know what the beginning was... seek ? ::)
Code: Select all
dd if=input file of=output file skip=totalsectors to skip
Re:Creating image files under linux?
I have already tried it in several ways, but bochs did not accept it..:DennisCGc wrote: How about DD ?Don't know what the beginning was... seek ? ::)Code: Select all
dd if=input file of=output file skip=totalsectors to skip
i tried:
cp bootsector.bin bochs/1.44
dd if=kernel.bin of=bochs/1.44 skip=1
With skip =1 because the bootsector is 1 sector....
i also tried it without the skip.
And i did not find anything about using 2 input files and one output file automatically.
Re:Creating image files under linux?
To create an image in linux:cp bootsector.bin bochs/1.44
dd if=kernel.bin of=bochs/1.44 skip=1
With skip =1 because the bootsector is 1 sector....
i also tried it without the skip.
And i did not find anything about using 2 input files and one output file automatically.
After you compile both the bootsector and the kernel, type:
cat bootsector.bin kernel.bin >os_image.img
Then copy the image file to the bochs directory, add the name to the bochsrc file and boot it.
Hope this helps.
Re:Creating image files under linux?
check the OS faq on this site, it has image instructions.
-- Stu --