Page 1 of 1
Question
Posted: Mon Nov 25, 2002 6:15 pm
by Tom
( I would have made the title different...but didn't know what even to call this ).
I have a question, as you might know
I have 2 bins that are created...in linux commands...or even DOS comands/programs, how would I make those two files put together? like, here's on a floppy:
bootsector->Kernel.
How would I take my two bin files and make them one file like this:
somefile.bin:
bootsector & then kernel.bin
thank you,
Re:Question
Posted: Mon Nov 25, 2002 6:16 pm
by Tom
( i need to do this because i'm wearing out my floppys...and I need to make a image file for BOCHS )
Re:Question
Posted: Mon Nov 25, 2002 6:29 pm
by PlayOS
Hi,
Why dont you write a small c++ program that will take a list of files and join them into one, in the order in which they are passed.
Re:Question
Posted: Mon Nov 25, 2002 6:35 pm
by Tom
DUH!
Of all that time programming....and I didn't even think of that!
Thankyou.
Re:Question
Posted: Mon Nov 25, 2002 8:35 pm
by Curufir
Can't you do this with dd in Linux if you had a nice big file to dd it into?
Here's another idea:
You can mount a file (Bochs comes with a utility bximage to create blank hd and fd images) on the loopback device, you then copy files to it as you normally would to a floppy, then unmount the file and use it as an image in bochs (I guess in theory you could point bochs at the loopback device, but I wouldn't recommend it).
You could probably wrap that all up quite nicely into a bash script. So after you've put the bootsector in using dd you can just use the file as you would a normal disk.
Was this what you wanted?
More fun things to do with Bochs under Linux:
Setup the serial port on bochs to let you view Bochs com1 output on a linux console or X window. So you can pass debugging messages from your kernel to the serial port and see them real (Bochs real) time.
Bochs + Linux is very versatile, and the prereleases of version 2.0 runs very nicely indeed.
Curufir
Re:Question
Posted: Tue Nov 26, 2002 12:56 am
by Pype.Clicker
cat bootsector.bin kernel.bin > floppy.bin
or
copy /b bootsect.bin +kernel.bin floppy.bin
(note: it was in the manuals ;D )
Re:Question
Posted: Tue Nov 26, 2002 7:45 am
by Tom
Oh ok....
( I did look in the help command and the info command....but I guess I didn't see it )