*excited*

As mentioned elsewhere, I had XFree 4.0.1 under debian running under
2.2.17 but without the DRI component.  I've just about made it all work
now.

Firstly, 2.2.17 doesn't support DRI, but 2.2.18 is going to have a big
backport of USB and DRI from the 2.4 series, atm it's only at pre22
stage (c/o Alan Cox).
ftp://mirror.aarnet.edu.au/pub/linux/kernel/v2.2/linux-2.2.17.tar.bz2
ftp://mirror.aarnet.edu.au/pub/linux/kernel/people/alan/pre-patch-2.2.18-22.bz2

I also need reiserfs support, they only do 2.2.17.
ftp://mirror.aarnet.edu/au/pub/linux/reiserfs/linux-2.2.17-reiserfs-3.5.27-patch.gz

While I'm patching the kernel, I got me the crypto patches as well.
ftp://mirror.aarnet.edu.au/pub/linux/kernel/crypto/patch-int-2.2.17.9.bz2

in this order:
untarred linux-2.2.17
applied the reiserfs patch -- all clean
applied the crypto patch -- all clean
applied the 2.2.18pre22 patch -- some failures.

from the root of the kernel:
find . -name '*.rej' -print
then I fixed up the 4 files that had not cleanly merged, these were very
trivial (due to the reiserfs patch, some usb includes and so on weren't
able to recognise where they went)

make menuconfig, selected useful stuff.
under Character Devices, chose /dev/agpgart support as a module,
selected the VIA chipset.  Chose DRI support as a module, selected
matrox support.

make-kpkg clean
make-kpkg --revision=2:willow.5 kernel_image # yes, 5th build so far :)

and then dpkg -i ../kernel-image-2.2.18pre22_willow.1_i386.deb

Before you reboot, one more thing.

I found a link off linux3d.org to some new matrox drivers for XFree86 4,
at this url:
http://www.matrox.com/mga/support/drivers/files/linux_03.cfm
Near the bottom there is a link to a mga_drv.o (source there as well).
It adds support for dualhead on the one card, among other things.

As per the readme, you replace /usr/X11R6/lib/modules/drivers/mga_drv.o
with the updated one.  I saved a backup copy as mga_drv.o.old just in
case.  Location works for Debian, whereever your distro puts the X
drivers.

Then a reboot, and gdm came up and everything was sweet!

However i hadn't insmodded agpgart.o or mga.o, so I exitted gdm and put
them in, no hassles, started X again, and everything is sweet ;)

installed xscreensaver-gl package just to be sure, and it flies.

This page had a few useful tips:
http://www.hazalthorn.freeserve.co.uk/xfree86.html


-- 
     "This is not an attack! It is a pre-emptive retaliation."
(o_ '
//\  
v_/_


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to