On Sun, 3 Mar 2013 09:21:11 -0800 ron minnich rminnich@gmail.com wrote:
I did not have time to read all your code, will try later.
To get to the frame buffer on sandybridge, you just read one of the BARs, I think i't BAR 4. That won't work on the x60?
I just found out that the bar2 where the framebuffer is on the x60 isn't mapped correctly:
common.c maps the framebuffer and then I do that with the virtual address: (gdb) set {int}0xa7d38000 = 0xff (gdb) p/x {int}0xa7d38000 $1 = 0x0
0xa7d38000 points or at the beginning of the bar, or at address of the framebuffer(I took it from the kernel with kgdb).
I am told by phcoder on IRC that I've to activate the access to VRAM...
Denis.
you need to get the physical frame buffer address from the hardware and then mmap that in user mode. It doesn't much matter what the kernel things it is.
ron
On Sun, 3 Mar 2013 20:35:48 +0100 Denis 'GNUtoo' Carikli GNUtoo@no-log.org wrote:
common.c maps the framebuffer and then I do that with the virtual address: (gdb) set {int}0xa7d38000 = 0xff (gdb) p/x {int}0xa7d38000 $1 = 0x0
0xa7d38000 points or at the beginning of the bar, or at address of the framebuffer(I took it from the kernel with kgdb).
I am told by phcoder on IRC that I've to activate the access to VRAM...
it seems that setgtt does that, but what parameters should I give it?
Denis.
setgtt is only for hardware with a gtt. Again, I'm not familiar with the hardware on this laptop. Does it have a gtt?
ron