View previous topic :: View next topic |
Author |
Message |
myriapod n00b
Joined: 11 Feb 2003 Posts: 10 Location: Rome, Italy
|
Posted: Wed Feb 12, 2003 10:53 am Post subject: i810 drm compile problem |
|
|
Hi guys,
I've read some posts about this issue in the forums, but basically I don't understand if anyone has managed to solve this.
I'm talking about an error compiling the drm kernel module to enable dri on i810.
Here is it:
Code: | gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include /lib/modules/2.4.19-gentoo-r10/build/include/linux/modversions.h -I/lib/modules/2.4.19-gentoo-r10/build/include -c i810_dma.c -o i810_dma.o
i810_dma.c: In function `i810_unmap_buffer':
i810_dma.c:200: too few arguments to function `do_munmap_R951cacb4'
make: *** [i810_dma.o] Error 1 |
I get the same error emerging the xfree-drm ebuild, compiling from the xfree-4.2.99.4 or compiling from an updated CVS DRI trunk.
And the worse thing about this is that dri works great on my collegue's RedHat box (same hardware). ARGH!
My kernel sources are gentoo-sources-2.4.19-r10 and I'm successfully running (except for dri) xfree-4.2.99.4.
I'm really stuck with this, so any suggestion is welcome.
sergio |
|
Back to top |
|
|
karl11 Guru
Joined: 25 Jun 2002 Posts: 469 Location: Raleigh, NC
|
Posted: Wed Feb 12, 2003 5:12 pm Post subject: |
|
|
yeah....fun error isn't it?! lolo-sources-2.4.20 series compiled the i810 driver fine if I recall correctly (I only tried 5 different kernels, can't remember which one worked best); however, when I went to launch glxgears, the framerates were smoking, but the gears appeared approx. 200 pixels to the right of the glxgears window. Maybe that was just a conflict between the i810 dri and kwin. I don't know though...it was odd.
Karl |
|
Back to top |
|
|
myriapod n00b
Joined: 11 Feb 2003 Posts: 10 Location: Rome, Italy
|
Posted: Wed Feb 12, 2003 5:50 pm Post subject: did it! |
|
|
Yeah!
I finally managed to compile my beloved i810.o
Needed xfree-4.2.1-r2 source tree to do it though.
If anyone needs this, it all boils down to:
Code: | # ebuild /usr/portage/x11-base/xfree/xfree-4.2.1-r2.ebuild unpack
# ebuild /usr/portage/x11-base/xfree/xfree-4.2.1-r2.ebuild compile
# cd /var/tmp/portage/xfree-4.2.1-r2/work/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/
# make -f Makefile.linux i810.o
# cp i810.o /lib/modules/`uname -r`/kernel/drivers/char/drm/
# modprobe i810 |
Gentoo rocks!
peace,
sergio |
|
Back to top |
|
|
|