What is wrong with Bochs??

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
udarkman

What is wrong with Bochs??

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

Re:What is wrong with Bochs??

Post by Tim »

Your AA and 55 are the wrong way round.

The last line should be:

Code: Select all

dw 0AA55h
udarkman

Re:What is wrong with Bochs??

Post by udarkman »

Ooppss..:)
slacker

Re:What is wrong with Bochs??

Post 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?
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:What is wrong with Bochs??

Post by df »

build it from source
-- Stu --
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:What is wrong with Bochs??

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