using Bosh

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
Okan Soyyilmaz

using Bosh

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

Re:using Bosh

Post by Ozguxxx »

PatLinux

Re:using Bosh

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

Re:using Bosh

Post 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.
PatLinux

Re:using Bosh

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

Re:using Bosh

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