Page 1 of 1

What is wrong with Bochs??

Posted: Sat May 24, 2003 5:38 am
by udarkman
Bochs will make me madd!!!!:(
Here is my simple bootsector code.
[BITS 16]
[ORG 0x7C00]
mov ah, 0Eh
mov al, 'A'
mov bh, 0Eh
mov bl, 0
int 10h

hang:
jmp hang

times 510-($-$$) db 0

dw 55AAh
I compile this code with this line..
nasm -f bin booting.asm -o booting.bin
and here is my bochs config file.
romimage: file=BIOS-bochs-latest, address=0xf0000
vgaromimage: VGABIOS-elpin-2.40
megs: 32

floppya: 1_44=booting.bin, status=inserted
boot: a

log: bochsout.txt
panic: action=ask
error: action=report
info: action=report
debug: action=ignore

vga_update_interval: 300000
keyboard_serial_delay: 250
keyboard_paste_delay: 100000
floppy_command_delay: 500
ips: 1000000
mouse: enabled=0
private_colormap: enabled=0
fullscreen: enabled=0
screenmode: name="sample"
keyboard_mapping: enabled=0, map=
and this is what bochs says:(
Fatal:Not a bootable disk

Im using Bochs-2.0.2. Where am I wrong?

Re:What is wrong with Bochs??

Posted: Sat May 24, 2003 6:01 am
by Tim
Your AA and 55 are the wrong way round.

The last line should be:

Code: Select all

dw 0AA55h

Re:What is wrong with Bochs??

Posted: Sat May 24, 2003 7:24 am
by udarkman
Ooppss..:)

Re:What is wrong with Bochs??

Posted: Sun May 25, 2003 12:46 pm
by slacker
im having trouble installing bochs under linux..when i try to install it with rpm -i bochs ....i get failed dependency errors and it lists alot of libc files...i know these are installed because i just installed the library. could this error be because i didnt install the LIBC library when i installed linux for the first time...i added the LIBC files later...anyone know what i should do?

Re:What is wrong with Bochs??

Posted: Sun May 25, 2003 4:00 pm
by df
build it from source

Re:What is wrong with Bochs??

Posted: Mon May 26, 2003 1:12 am
by Pype.Clicker
btw, you *must* have libc installed. virtually no program can run without libc ... Now maybe the version you have and the version precompiled BOCHS require aren't the same ... hence the problem.

DF's suggestion is the wisest one, imho.