Help!There is nothing in bochs' emulator screen!

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.
Post Reply
frankyue
Posts: 1
Joined: Thu Oct 15, 2009 2:28 am

Help!There is nothing in bochs' emulator screen!

Post by frankyue »

My paltform is ubuntu8.10.
I installed the bochs by using the command apt-get at first!It's all right when I typed "bochs -f bochsrc"with my config to run my program,It is also showed me a window(emulator screen) with some characters which I expected!

I want to use the debugger function of the bochs,So I svn a new version of bochs-2.4.1 and compiled by my self and uninstall the previous one!OK, I can debugger the program but there is nothing in the emulator screen!
So I removed the bochs-2.4.1 and installed the bochs from the apt package again!However,there is nothing in the emulator screen and the terminal always show the info of VGA like blow:
00006000000e[VGA ] character height = 1, skipping text update
00006080000e[VGA ] character height = 1, skipping text update
00006160000e[VGA ] character height = 1, skipping text update
00006240000e[VGA ] character height = 1, skipping text update
00006320000e[VGA ] character height = 1, skipping text update
00006400000e[VGA ] character height = 1, skipping text update
00006480000e[VGA ] character height = 1, skipping text update
Here is my bochs' log file bochsout.txt
http://docs.google.com/View?id=dfcp2gcf_187g993pzhm

I guess may the BIOS-bochs-latest is wrong!

TX !
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Help!There is nothing in bochs' emulator screen!

Post by xenos »

Could you post your bochsrc file? It seems that you loaded the BIOS to the wrong address. The BIOS-bochs-latest has a file size of 128k instead of 64k for the old versions, it has to be loaded to 0xe0000 instead of 0xf0000.

I think I just found the problem:

Code: Select all

00000000000i[MEM0 ] rom at 0xffff6400/39936 ('/usr/share/bochs/BIOS-bochs-latest')
This is obviously wrong... So the simulation runs into trouble right at the beginning:

Code: Select all

00000000007e[CPU0 ] prefetch: EIP [00010000] > CS.limit [0000ffff]
00000080000e[VGA  ] character height = 1, skipping text update
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply