Page 1 of 1

using Bosh

Posted: Tue May 06, 2003 3:25 pm
by Okan Soyyilmaz
Can somebody simply summarise how to use my code in bosh? :-[ I download the images from its site, but how can I try my code?

Re:using Bosh

Posted: Wed May 07, 2003 3:18 am
by Ozguxxx

Re:using Bosh

Posted: Thu May 08, 2003 7:51 am
by PatLinux
Hi,

Is it possible to create a sparse file which contains the boot loader and kernel and get bochs to use that file as a simulated boot floppy and boot from it? I am using Linux and have the update bochs?

TIA,
PatLinux

Re:using Bosh

Posted: Thu May 08, 2003 12:57 pm
by Tim
Yes. Just create a 1.40MB file, e.g.
[tt]dd if=/dev/fd0 of=floppy.img bs=512 count=2880[/tt]

Under Windows you could compress the image, which causes the zeroes to occupy no space (this reduces large hard drive images to the minimum space). I don't know whether this is possible on Linux.

Re:using Bosh

Posted: Thu May 08, 2003 1:17 pm
by PatLinux
Thanx Tim 4 tht, what I was really lookin for was to make that sparse file bootable with a loader/kernel just compiled and for want of better word - insertted into the sparse file effectively makeing it bootable floppy for bochs

Re:using Bosh

Posted: Thu May 08, 2003 2:37 pm
by Tim
To write the boot sector, overwrite the first 512 bytes of the disk. If your disk uses a normal file system, you can write the kernel either by mounting the floppy image using the loop device, or using mtools (for FAT).