Getting started

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.
flyingdoodltartz
Member
Member
Posts: 25
Joined: Fri Jun 05, 2009 11:46 pm

Re: Getting started

Post by flyingdoodltartz »

yeah, this is my configuration file. I found this article on how to make an emulated floppy, and used it to put a little test bootloader i wrote up on, so it should work, but it doesn't :/:

megs: 32
romimage: file=/usr/local/bochs/1.4.1/BIOS-bochs-latest, address=0xf0000
vgaromimage: /usr/local/bochs/1.4.1/VGABIOS-elpin-2.40
floppya: 1_44=/home/teddy/testOS/floppy.img, status=inserted
boot: a
log: bochsout.txt
mouse: enabled=0

and this is the output i always get:

========================================================================
Bochs x86 Emulator 2.3.7
Build from CVS snapshot, on June 3, 2008
========================================================================
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] reading configuration from bochsrc.txt
00000000000i[ ] WARNING: syntax has changed, please use 'vgaromimage: file=...' now
00000000000i[ ] lt_dlhandle is (nil)
00000000000p[ ] >>PANIC<< dlopen failed for module 'x': file not found
========================================================================
Event type: PANIC
Device: [ ]
Message: dlopen failed for module 'x': file not found

A PANIC has occurred. Do you want to:
cont - continue execution
alwayscont - continue execution, and don't ask again.
This affects only PANIC events from device [ ]
die - stop execution now
abort - dump core
debug - hand control to gdb
Choose one of the actions above: [die] die
00000000000i[CTRL ] quit_sim called with exit code 1
root@teddy-laptop:/home/teddy/flobOS# bochs
00000000000i[APIC?] local apic in initializing
========================================================================
Bochs x86 Emulator 2.3.7
Build from CVS snapshot, on June 3, 2008
========================================================================
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] reading configuration from bochsrc.txt
00000000000i[ ] WARNING: syntax has changed, please use 'vgaromimage: file=...' now
00000000000i[ ] lt_dlhandle is (nil)
00000000000p[ ] >>PANIC<< dlopen failed for module 'x': file not found
========================================================================
Event type: PANIC
Device: [ ]
Message: dlopen failed for module 'x': file not found

A PANIC has occurred. Do you want to:
cont - continue execution
alwayscont - continue execution, and don't ask again.
This affects only PANIC events from device [ ]
die - stop execution now
abort - dump core
debug - hand control to gdb
Choose one of the actions above: [die] die
00000000000i[CTRL ] quit_sim called with exit code 1

it's quite frustrating...




EDIT:

hey guys! i got it to work, i made a stupid syntax mistake :D. It's all working perfectly. And thank you all for the links once again, i couldn't have started this without you :D. You guys are awesome!!!!! thanks

regards


teddy.
"I don't take advice from freshmen in high school" - when your programming, age doesn't matter

"if you think your running fast, run faster." - track coach

"Back in my day, I had a pimped out ride." - physics teacher
piyushneo
Posts: 5
Joined: Thu Jan 13, 2011 3:01 am

Re: Getting started

Post by piyushneo »

i am also comming across the same problem as yours. i googled that i need to change the address in configuration file on this line

Code: Select all

romimage:    file=BIOS-bochs-latest, address=0xf0000
to 0xFFFFF - size of BIOS-bochs-latest file. But still its not working.
Can you tell me how u have corrected your problem.
Here is my configuration file

Code: Select all

 ROM and VGA BIOS images ---------------------------------------------

romimage:    file=BIOS-bochs-latest, address=0xDFFFF
vgaromimage: file=VGABIOS-lgpl-latest

# boot from floppy using our disk image -------------------------------

ata1-slave: type=cdrom, path="$HOME/boot.iso", status=inserted
boot: cdrom

# logging and reporting -----------------------------------------------

log:         OSDev.log             # All errors and info logs will output to OSDev.log
error:       action=report
info:        action=report
Here is the output

Code: Select all

piyush@172:~$ bochs
========================================================================
                       Bochs x86 Emulator 2.4.2
             Build from CVS snapshot on November 12, 2009
========================================================================
00000000000i[     ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[     ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[     ] reading configuration from bochsrc.txt
00000000000i[     ] lt_dlhandle is (nil)
00000000000p[     ] >>PANIC<< dlopen failed for module 'x': file not found
========================================================================
Event type: PANIC
Device: [     ]
Message: dlopen failed for module 'x': file not found

A PANIC has occurred.  Do you want to:
  cont       - continue execution
  alwayscont - continue execution, and don't ask again.
               This affects only PANIC events from device [     ]
  die        - stop execution now
  abort      - dump core 
  debug      - hand control to gdb
Choose one of the actions above: [die] debug
00000000000i[     ] using log file OSDev.log
========================================================================
Event type: PANIC
Device: [MEM0 ]
Message: ROM: System BIOS must end at 0xfffff

A PANIC has occurred.  Do you want to:
  cont       - continue execution
  alwayscont - continue execution, and don't ask again.
               This affects only PANIC events from device [MEM0 ]
  die        - stop execution now
  abort      - dump core 
  debug      - hand control to gdb
Choose one of the actions above: [die] 

piyushneo
Posts: 5
Joined: Thu Jan 13, 2011 3:01 am

Re: Getting started

Post by piyushneo »

i have installed bochs -x module.
Now my one of error has reduced.
Now my simulation shows

Code: Select all

piyush@172:~$ bochs
========================================================================
                       Bochs x86 Emulator 2.4.2
             Build from CVS snapshot on November 12, 2009
========================================================================
00000000000i[     ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[     ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[     ] reading configuration from bochsrc.txt
00000000000i[     ] lt_dlhandle is 0xa5e0c58
00000000000i[PLGIN] loaded plugin libbx_x.so
00000000000i[     ] installing x module as the Bochs GUI
00000000000i[     ] using log file OSDev.log
========================================================================
Event type: PANIC
Device: [MEM0 ]
Message: ROM: System BIOS must end at 0xfffff

A PANIC has occurred.  Do you want to:
  cont       - continue execution
  alwayscont - continue execution, and don't ask again.
               This affects only PANIC events from device [MEM0 ]
  die        - stop execution now
  abort      - dump core 
  debug      - hand control to gdb
Choose one of the actions above: [die] cont
In spite of panic i gave the "cont" command and a new screen has appeared . i was just testing a boot loader containing cli and hlt instruction.
Does that window shows that i have successfully run the bootloader or should i worry about the PANIC-SYSTEM BIOS must end at 0xffff
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Getting started

Post by Solar »

piyushneo wrote:...should i worry about the PANIC-SYSTEM BIOS must end at 0xffff
No, of course not.

(</irony>)

:twisted:
Every good solution is obvious once you've found it.
piyushneo
Posts: 5
Joined: Thu Jan 13, 2011 3:01 am

Re: Getting started

Post by piyushneo »

i got this link and it solved my current problem ..:) though it new problems have arrived..
http://old.nabble.com/Strange-error-mes ... 32679.html
Post Reply