Real mode problem

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.
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

Bochs isn't working because the VGA BIOS file isn't there. What files do you have in /usr/share/bochs ?
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post 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/
~ Lukem95 [ Cake ]
Release: 0.08b
Image
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post 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?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Some distros don't distribute it due to copyright issues. A google should get it, though.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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/
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

That's the cirrus VGA BIOS. The Elpin one, however, is not LGPLed and, AFAIK, proprietary.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post 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
Danand
Posts: 17
Joined: Mon Mar 17, 2008 4:56 pm
Contact:

Post 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..
Sorry my english, i'm from norway.. :P

I write my own os now, DanOS. Website coming soon!
User avatar
zaleschiemilgabriel
Member
Member
Posts: 232
Joined: Mon Feb 04, 2008 3:58 am

Post by zaleschiemilgabriel »

I really don't see the point in telling us how you named your files.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post 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.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post by jal »

zaleschiemilgabriel wrote:I really don't see the point in telling us how you named your files.
Stop trolling.


JAL
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post 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
Danand
Posts: 17
Joined: Mon Mar 17, 2008 4:56 pm
Contact:

Post 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....
Sorry my english, i'm from norway.. :P

I write my own os now, DanOS. Website coming soon!
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

Install the bochs-x package
Danand
Posts: 17
Joined: Mon Mar 17, 2008 4:56 pm
Contact:

Post by Danand »

YES! Now work it! :D Thank you!!
Sorry my english, i'm from norway.. :P

I write my own os now, DanOS. Website coming soon!
Post Reply