Page 1 of 1

roll your own unix clone tutorial

Posted: Mon Jan 05, 2009 6:10 pm
by sweetgum
im trying to follow this tutorial and i recieve the following error when i run run_bochs.sh

1.
00000000000i[APIC?] local apic in initializing
2.
========================================================================
3.
Bochs x86 Emulator 2.3.7
4.
Build from CVS snapshot, on June 3, 2008
5.
========================================================================
6.
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
7.
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
8.
00000000000i[ ] reading configuration from bochsrc.txt
9.
00000000000i[ ] lt_dlhandle is (nil)
10.
00000000000p[ ] >>PANIC<< dlopen failed for module 'x': file not found
11.
========================================================================
12.
Event type: PANIC
13.
Device: [ ]
14.
Message: dlopen failed for module 'x': file not found
15.

16.
A PANIC has occurred. Do you want to:
17.
cont - continue execution
18.
alwayscont - continue execution, and don't ask again.
19.
This affects only PANIC events from device [ ]
20.
die - stop execution now
21.
abort - dump core
22.
debug - hand control to gdb




i can't udnerstand it at all, if someone could help me fix this i'd really appreciate it

Re: roll your own unix clone tutorial

Posted: Mon Jan 05, 2009 6:15 pm
by samoz
What the error means is that the graphics aren't installed for Bochs, so all it can do is text. There are several ways to fix it:

If you have a mac, you need to get a binary of the program (easier than building anyways). Get it at: http://www.macupdate.com/info.php/id/11177 or I'm pretty sure theres a version of bochs on MacPorts.

If you're on Linux (especially Ubuntu), there is a package with the x libraries installed already. I'm pretty sure the package is called bochs-x, or something similar to that.

If one of those doesn't work, let us know and we can help more.

Re: roll your own unix clone tutorial

Posted: Mon Jan 05, 2009 6:26 pm
by sweetgum
Thanks for the help samos,
heres the new error message
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[ ] lt_dlhandle is 0x90ae870
00000000000i[PLGIN] loaded plugin libbx_x.la
00000000000i[ ] installing x module as the Bochs GUI
00000000000i[ ] using log file bochsout.txt
========================================================================
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

Re: roll your own unix clone tutorial

Posted: Mon Jan 05, 2009 8:04 pm
by gzaloprgm
Just remove address=0xf0000 from bochsrc.txt.

Cheers,
Gonzalo