DSL Tips and Tricks :: A quick guide on compiling XOrg 7.0 on DSL



In order to compile xorg-7.2, I had to compile mesa-6.5.2 and yes, this compile produces i915_dri.so (19MB...), r300_dri.so, etc in /usr/lib/modules/dri.

The compile options for xorg required it to be given the location of the mesa source files but it did not appear to use these dri files and they are not included in my extension - my understanding is that mesa uses these drivers when it is run without xorg but I could easily be mistaken.

BTW, I am still trying to compile the i915 kernel module - I'm almost there with DSL-N but the common and i915 snapshots handily don't include a script that the install script requires. With DSL, it appears that the kernel needs to be recompiled with CONFIG_X86_CMPXCHG set in order for i915 to compile [sigh]

Sorry,  I get it now - i915 and drm are both kernel modules that are included with 2.6.xx kernels beyond a certain version.  That's why I no longer have to compile the dri snapshots on fedora.

But not so with i915 for the 2.4.26 kernel.

While googling I found a 2005 post that said the old i915 driver from the Intel site worked on 2.4.xx kernels but the  freedesktop.org dri sources did not compile.  Perhaps there's an archive somewhere of old Intel dri driver sources?

Quote
a 2005 post that said the old i915 driver from the Intel site worked on 2.4.xx kernels

I believe I saw that post - the problem is that xorg72 rejects the i915 kernel module in DSL-N/2.6.12 as being too old, so I believe the same thing would happen with the old Intel version on 2.4.26

Trying to use Xorg -configure
Code Sample
/opt/xorg72/bin/Xorg: relocation error: /opt/xorg72/lib/xorg/modules/drivers//sunffb_drv.so: undefined symbol: xf86MatchSbusInstances
Do not do this without the following! (otherwise you will need to reboot or do something to reuse X)

Thread from http://lists.freedesktop.org/archives/xorg/2006-March/013454.html suggests that sun* stuff doesn't need to be built at all... but since you probably don't want to recompile, removing /opt/xorg72/lib/xorg/modules/drivers/sun* should be sufficient (there's also some config template stuff in .../lib/X11/config/sun* which should be safe to remove as well).  Saves a bit of space.

Now you can
Code Sample
# .../bin/Xorg -configure
# cp /root/xorg.conf.new /etc/X11/xorg.conf
The only problem was that /dev/input/mice was detected instead of /dev/psaux ... not a biggie, but perhaps in an autosetup script, we can check the mouse setting in the original .xserverrc

Also tried xorgcfg - won't run due to missing libxkbui.so.1 - this supposedly runs Xorg -configure, X, then tweaks it.  If certain libs aren't going to be included by default, perhaps removing the binaries that depend on them might save quite a bit of space.  Currently .../bin is almost 155M.

More info here: http://wiki.x.org/wiki/ConfigurationHelp.  Seems to suggest the use of xorgcfg or minimally X -configure.  Probably using xorgcfg will be the best though...

I did not see the error about sunffb_drv.so when I tried -configure but I also got /dev/input/mice detected instead of /dev/psaux.

Like xorgconfig, I must have tried xorgcfg on the previous 187MB iteration of the extension because libxkbui.so.1 is present in that.

I believe my mistake was to go to http://wiki.x.org/wiki/ModuleDescriptions?highlight=%28xprint%29 and take out most stuff that wasn't "Core X11 runtime" without thinking hard enough about it.

Next Page...
original here.