Bochs Setup

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.
Locked
brodeur235
Member
Member
Posts: 86
Joined: Sat Jun 06, 2009 11:55 am

Bochs Setup

Post by brodeur235 »

Switching to bochs for debugging purposes. Start bochs with "bochs" at command line. Choose option #2 "Read options from..." and pass it the path to my bochsrc. My bochsrc is exactly the default that came with the download of bochs, except for 2 parts:

Code: Select all

floppya: 1_44=/dev/fd0, status=inserted
is now:

Code: Select all

floppya: 1_44=/home/nick/Desktop/kern.img, status=inserted
and:

Code: Select all

#boot: floppy
#boot: disk
boot: cdrom
is now:

Code: Select all

boot: floppy
#boot: disk
#boot: cdrom
After this no errors seem to occur and I get this message before being redirected back to the same menu:

Code: Select all

00000000000i[     ] reading configuration from /home/nick/Desktop/bochsrc
I now choose option #6 "Begin Simulation", which generates the following errors:

Code: Select all

00000000000e[     ] change of the config interface to wx not implemented yet
00000000000e[     ] wxWidgets was not used as the configuration interface, so it cannot be used as the display library
00000000000e[     ] changing display library to 'x' instead
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]
What is wrong and how can I finally get this finicky config file to cooperate and boot a simple floppy image,

Brodeur235
raghuk
Member
Member
Posts: 35
Joined: Tue Jun 30, 2009 2:47 am
Location: Bangalore, India

Re: Bochs Setup

Post by raghuk »

Google is your friend
gedd
Member
Member
Posts: 104
Joined: Thu Apr 10, 2008 1:47 am

Re: Bochs Setup

Post by gedd »

brodeur235 wrote:What is wrong
The error message tell you what is wrong.
And the documentation give you the solution.

For this king of problem you can use "Bochs" forums instead
[ Grub 2 | Visual Studio 2013 | PE File ]
The OsDev E.T.
Don't send OsDev MIB !
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Bochs Setup

Post by Troy Martin »

sudo apt-get install bochs-x
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
manonthemoon
Member
Member
Posts: 65
Joined: Sat Jul 04, 2009 9:39 pm

Re: Bochs Setup

Post by manonthemoon »

I actually had this problem recently. I compiled the sources myself, and I typed "configure" and "make", but I forgot "make install". So if you go through the entire compilation/installation process without missing a step, it should work. If you have a precompiled version, it's probably not installed correctly.
User avatar
ehenkes
Member
Member
Posts: 124
Joined: Mon Mar 23, 2009 3:15 am
Location: Germany
Contact:

Re: Bochs Setup

Post by ehenkes »

Bochs at Windows runs smooth. :)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Bochs Setup

Post by Combuster »

Message: dlopen failed for module 'x': file not found
Three prior threads on that very error message. Search first
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked