Qemu lVESA Mode

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
gedeon

Qemu lVESA Mode

Post by gedeon »

Does anyone know the VESA mode numbers that are supported by qemu ?
I have some problem whit my VESA Driver
My code return only one mode
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Qemu lVESA Mode

Post by Pype.Clicker »

i can tell you mode 115h (800x600x24) is supported with LFB ... i haven't tested any other mode(s) so far, nor scanned the modes list ...
gedeon

Re:Qemu lVESA Mode

Post by gedeon »

Ok thanks , but it does not work

Maybe i'm wrong

      mov    ax, 0x4F02
      mov bx, 0x4115
      int 10h
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Qemu lVESA Mode

Post by Pype.Clicker »

there may be a couple of requirements for QEMU to have VBE active. Among other things, you need a good bios image, and you need QEMU to be compiled statically with sdlib ...

use service 0x4f00 to find out if VBE is supported (e.g. it should return "0x004f" in ax if supported).
gedeon

Re:Qemu lVESA Mode

Post by gedeon »

It vas already done, this and other things
The bios is the good and VBE detection 2.0+ is ok

In fact the problem is solved

Explainaition
my previous version of os was in 640*480*16 colors
so i decide to add VESA support

before VESA support
1 - go to mode 640*480*16col
2 - palette modification
3 - dysplay logo
4 - loading kernel

to begin i decided to replace the first step
1.1 Vesa detection
1.2 Version check
1.3 Change mode to vesa mode
2 - palette modification
3 - dysplay logo
4 - loading kernel

no reaction on step 1.3

the step 2 (paleette modification ) was the problem
i supress it and the mode now change to vesa

Thanks for yor help pype
Post Reply