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.
Pyrofan1
Member
Posts: 234 Joined: Sun Apr 29, 2007 1:13 am
Post
by Pyrofan1 » Wed Jul 11, 2007 11:05 pm
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
Brynet-Inc
Member
Posts: 2426 Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:
Post
by Brynet-Inc » Wed Jul 11, 2007 11:23 pm
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...
Twitter: @canadianbryan . Award by smcerm, I stole it. Original was larger.
Candy
Member
Posts: 3882 Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven
Post
by Candy » Wed Jul 11, 2007 11:24 pm
Pad your image to a multiple of 512 bytes? Like, 20480?
earlz
Member
Posts: 1546 Joined: Thu Jul 07, 2005 11:00 pm
Contact:
Post
by earlz » Thu Jul 12, 2007 9:18 pm
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)