using bochs

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
Pyrofan1
Member
Member
Posts: 234
Joined: Sun Apr 29, 2007 1:13 am

using bochs

Post by Pyrofan1 »

right i can't figure out how to use bochs
i use

Code: Select all

dd if=kernel.bin of=kernel.img bs=512 count=20160
to create the image and this is my bochsrc

Code: Select all

config_interface: textconfig
display_library: x
log: bochsout.txt
romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000
megs: 32
vgaromimage: file=/usr/share/vgabios/vgabios.bin
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="kernel.img", mode=flat, cylinders=20, heads=16, spt=63

boot: disk
and when i run bochs it says
size of disk image must be multiple of 512 bytes
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

So what? You're writing your kernel directly to a disk image.. What about your bootloader? do you expect bochs to magically load your kernel without one?

Please explain in more "detail" please...
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

Pad your image to a multiple of 512 bytes? Like, 20480?
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

maybe his kernel.bin is just a disk image with kernel and more...that's how I do it in my test OS...(cept I don't name it kernel.bin)
Post Reply