OSDev.org

The Place to Start for Operating System Developers
It is currently Sat May 18, 2024 12:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: What is wrong with Bochs??
PostPosted: Sat May 24, 2003 5:38 am 
Bochs will make me madd!!!!:(
Here is my simple bootsector code.
Quote:
[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.
Quote:
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?


Top
  
 
 Post subject: Re:What is wrong with Bochs??
PostPosted: Sat May 24, 2003 6:01 am 
Your AA and 55 are the wrong way round.

The last line should be:
Code:
dw 0AA55h


Top
  
 
 Post subject: Re:What is wrong with Bochs??
PostPosted: Sat May 24, 2003 7:24 am 
Ooppss..:)


Top
  
 
 Post subject: Re:What is wrong with Bochs??
PostPosted: Sun May 25, 2003 12:46 pm 
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?


Top
  
 
 Post subject: Re:What is wrong with Bochs??
PostPosted: Sun May 25, 2003 4:00 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
build it from source

_________________
-- Stu --


Top
 Profile  
 
 Post subject: Re:What is wrong with Bochs??
PostPosted: Mon May 26, 2003 1:12 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
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.

_________________
Image May the source be with you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: YaCy [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group