Page 2 of 2

Posted: Thu Mar 20, 2008 2:29 am
by xyzzy
Bochs isn't working because the VGA BIOS file isn't there. What files do you have in /usr/share/bochs ?

Posted: Thu Mar 20, 2008 3:33 am
by lukem95

Code: Select all

00000000000p[MEM0 ] >>PANIC<< ROM: couldn't open ROM image file '/usr/share/bochs/VGABIOS-elpin-2.40'. 
You need to edit bochsrc.txt (or maybe just bochsrc in linux?) to change the path its looking for VGABIOS-elpin-2.40 in. This really isn't a hard to solve problem however, a bit of googling could have solved it.

Alternatly you could download/move thatt file into /usr/share/bochs/

Posted: Thu Mar 20, 2008 3:36 am
by xyzzy
The correct file is most likely there, and it's the right directory - the actual BIOS was found there. Some distros name it other things. Which is why I asked what's in that directory :)

Danand: What distro are you using?

Posted: Thu Mar 20, 2008 4:20 am
by JamesM
Some distros don't distribute it due to copyright issues. A google should get it, though.

Posted: Thu Mar 20, 2008 4:23 am
by Brynet-Inc
JamesM wrote:Some distros don't distribute it due to copyright issues. A google should get it, though.
What copyright issues? It seems to be under the LGPL... I assumed that was an approved licence by Linux folk. ;)

http://www.nongnu.org/vgabios/

Posted: Thu Mar 20, 2008 4:31 am
by xyzzy
That's the cirrus VGA BIOS. The Elpin one, however, is not LGPLed and, AFAIK, proprietary.

Posted: Thu Mar 20, 2008 5:24 am
by jal
neon wrote:If you are unable to get GRUB working, I would probably stay away from this for now... specifically if all you want to develop a kernel.
That's quite a contradication you pose there. I use GRUB because I want to develop a kernel. I don't want to develop a boot loader.


JAL

Posted: Thu Mar 20, 2008 6:04 am
by Danand
My kernel is a BIN fil. In the kernel.bin i have loader.o, linker.ld and kernel.o.
And if my kernel are loaded then its prints text.
I will trying to fix that bochs fil then..


Edit: Im using xubuntu 7.4..

Posted: Thu Mar 20, 2008 6:42 am
by zaleschiemilgabriel
I really don't see the point in telling us how you named your files.

Posted: Thu Mar 20, 2008 6:46 am
by neon
jal wrote:
neon wrote:If you are unable to get GRUB working, I would probably stay away from this for now... specifically if all you want to develop a kernel.
That's quite a contradication you pose there. I use GRUB because I want to develop a kernel. I don't want to develop a boot loader.
JAL
Perhaps I worded it wrong; you and I are basically saying the same thing here. i.e., if he only wants to develop a kernel, then he should not worry about developing a bootloader.

Sorry about that.

Posted: Thu Mar 20, 2008 7:40 am
by jal
zaleschiemilgabriel wrote:I really don't see the point in telling us how you named your files.
Stop trolling.


JAL

Posted: Thu Mar 20, 2008 8:15 am
by xyzzy
Danand wrote:My kernel is a BIN fil. In the kernel.bin i have loader.o, linker.ld and kernel.o.
And if my kernel are loaded then its prints text.
I will trying to fix that bochs fil then..


Edit: Im using xubuntu 7.4..
OK, install the vgabios package, then in your bochs config, change this:

Code: Select all

/usr/share/bochs/VGABIOS-elpin-2.40
to this:

Code: Select all

/usr/share/vgabios/vgabios.cirrus.bin
That should fix the problem

Posted: Thu Mar 20, 2008 11:40 am
by Danand
I have done that now, vgabios was installed. But bochs its not working :(
This is from terminal:

Code: Select all

========================================================================
                        Bochs x86 Emulator 2.3
              Build from CVS snapshot on August 27, 2006
========================================================================
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] cont
00000000000p[     ] >>PANIC<< failed assertion "bx_gui != NULL" at main.cc:809

========================================================================
Event type: PANIC
Device: [     ]
Message: failed assertion "bx_gui != NULL" at main.cc:809


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] cont
00000000000i[     ] using log file bochsout.txt
./run_bochs.sh: line 7:  5815 Segmentation fault      (core dumped) sudo bochs -f bochsrc.txt
I dont now wats wrong, soo....

Posted: Thu Mar 20, 2008 11:42 am
by xyzzy
Install the bochs-x package

Posted: Thu Mar 20, 2008 11:45 am
by Danand
YES! Now work it! :D Thank you!!