vesa with Bochs

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
User avatar
xyjamepa
Member
Member
Posts: 397
Joined: Fri Sep 29, 2006 8:59 am

vesa with Bochs

Post by xyjamepa »

Hi,

how do you support vesa in Bochs?
what should I add in bochsrc.txt to support vesa?

Thanx.
The man who follows the crowd will usually get no further than the crowd.
The man who walks alone is likely to find himself in places
no one has ever been before.
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: vesa with Bochs

Post by f2 »

Verify that you have these lines in bochsrc.txt :

Code: Select all

vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
vga: extension=vbe
But VESA emulation is quite slow in Bochs. Try QEmu.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
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: vesa with Bochs

Post by Combuster »

Bochs may be slow (independent of vesa), but it has far less issues than Qemu and it comes with a very good debugger :wink:
"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 ]
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: vesa with Bochs

Post by f2 »

Combuster wrote:Bochs may be slow (independent of vesa), but it has far less issues than Qemu and it comes with a very good debugger :)
I agree with you: Bochs and QEmu each have qualities. I use both (as well as Virtual PC) to test my OS.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
gedd
Member
Member
Posts: 104
Joined: Thu Apr 10, 2008 1:47 am

Re: vesa with Bochs

Post by gedd »

Virtual Box is pretty good too. Part of Qemu are inclued
The version 3 beta 2 is stable (as a beta version can be)
There is a SDK wich is may be used to debug, but the steb mode is very poorly documented
[ Grub 2 | Visual Studio 2013 | PE File ]
The OsDev E.T.
Don't send OsDev MIB !
clange
Member
Member
Posts: 163
Joined: Sun Oct 05, 2008 5:00 am
Location: Copenhagen, Denmark
Contact:

Re: vesa with Bochs

Post by clange »

VirtualBox is extremely slow with graphics - at least the BGA implementation. I get a few frames per second and you can see the (slow) update of the display. This is about the same speed as Bochs! Running in Qemu I get around 250 frames per second.

clange

P.S. I calculate the frame rate by using RDTSC to check how long it takes to generate the frame and how much time it takes to blit the frame to display. The FPS's mentioned above is when running on a 3.2 GHz P4.
gedd
Member
Member
Posts: 104
Joined: Thu Apr 10, 2008 1:47 am

Re: vesa with Bochs

Post by gedd »

yes, but bochs is more in general performance but usefull for debug
I'm using a Core 2 Quad (so VT instruction) and the difference is here but not so visible

VMWare has very good performance but not free.
An alternative is to use VMWare Player, but you had to change manualy config file and you cannot create VM.
[ Grub 2 | Visual Studio 2013 | PE File ]
The OsDev E.T.
Don't send OsDev MIB !
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: vesa with Bochs

Post by f2 »

gedd wrote:VMWare has very good performance but not free.
An alternative is to use VMWare Player, but you had to change manualy config file and you cannot create VM.
WMWare Server is now free ! You can download it here.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
gedd
Member
Member
Posts: 104
Joined: Thu Apr 10, 2008 1:47 am

Re: vesa with Bochs

Post by gedd »

Yes i know that but it is a bit too heavy.
The discussion was about desktop product that are more light than a server.

If you have a second machine you can use VMware GSXi server or Hyper-v, both free
GSXi works on very few configuration, dell, HP specific server
Hyper-v work everywhere but need at lest a professional Windows version in order to make works his client
(client need a domain connexion ...)

Xen server is also a good alternative, client run well but VM machine configuration is limited.
[ Grub 2 | Visual Studio 2013 | PE File ]
The OsDev E.T.
Don't send OsDev MIB !
Post Reply