Keith Whitwell wrote:

> Jens, For TCL support, the driver needs drm module version 1.3.

So, we really want to get version 1.3 onto users machines.  Am I correct
in saying that older versions still work, but would cause the driver to
fall back to rasterization only.

I've made the following mods to Alan's scripts to try and use old DRM
modules if a new one can't be compiled.  I have put warnings in this
case to inform the user this may severly limit functionality or
performance and that it is recommended that they upgrade to the latest
DRM Kernel Module.

Alan, let me know if you see any problem with these changes to
install.sh

Regards,
Jens

--                             /\
         Jens Owen            /  \/\ _    
  [EMAIL PROTECTED]  /    \ \ \   Steamboat Springs, Colorado
--- scripts/install.sh.jens     Sat Feb  2 07:10:37 2002
+++ scripts/install.sh  Fri Feb 22 16:03:39 2002
@@ -64,6 +64,7 @@
        XF86_EXT_DIR="$XF86_DIR/lib/modules/extensions"
        XF86_OS_DIR="$XF86_DIR/lib/modules/linux"
        KERNEL_DRM_DIR="$KERNEL_LIB_DIR/kernel/drivers/char/drm"
+       USE_EXISTING_KERNEL_MODULE="0"
 }
 
 check_values() {
@@ -174,15 +175,19 @@
        echo "done"
        
        echo -n "       kernel modules..."
-       cd drm
-       mkdir -p $KERNEL_DRM_DIR
-       for FILE in *o
-       do
-               mv -f $KERNEL_DRM_DIR/$FILE $KERNEL_DRM_DIR/dri-old.$FILE >& 
$LOGFILE_TMP;
-       done
-       cd ..
-       cp -f drm/$DRV_MODULE.o $KERNEL_DRM_DIR
-       echo "done"
+       if [ "$USE_EXISTING_KERNEL_MODULE" == "1" ]; then
+          echo "using existing module"
+       else
+               cd drm
+               mkdir -p $KERNEL_DRM_DIR
+               for FILE in *o
+               do
+                       mv -f $KERNEL_DRM_DIR/$FILE $KERNEL_DRM_DIR/dri-old.$FILE >& 
+$LOGFILE_TMP;
+               done
+               cd ..
+               cp -f drm/$DRV_MODULE.o $KERNEL_DRM_DIR
+               echo "done"
+       fi
        
        echo -n "       GL & GLU libraries..."
        cd GL
@@ -543,15 +548,32 @@
 make -f Makefile.linux $DRV_MODULE.o >& ../$LOGFILE_TMP
 if [ $? != 0 ]; then
        cat ../$LOGFILE_TMP >> ../$LOGFILE
-       cd ..
        echo ""
-       echo "ERROR: Kernel modules did not compile"
-       echo ""
-       echo "The DRI drivers can not be installed without the latest kernel modules."
-       echo "Installation will be aborted. See the $LOGFILE file for information on"
-       echo "what went wrong."
        echo ""
-       exit 127;
+       echo "ERROR: Kernel modules did not compile"
+
+        # Check to see if any older DRM module already exists
+       if [ -e $KERNEL_DRM_DIR/$DRV_MODULE.o ]; then
+               echo ""
+               echo "WARNING: The existing DRM kernel module available on your system 
+might"
+               echo "work; however, using an older module may severly limit 
+functionality"
+               echo "or performance!!!  It is recommended that you upgrade to the 
+latest"
+               echo "DRM kernel module.  For further details see:"
+               echo ""
+               echo "  http://dri.sourceforge.net/doc/DRIcompile.html#s4";
+               echo ""
+               echo "Press ENTER to continue with the existing kernel module or 
+CTRL-C to exit."
+               read KEY
+               USE_EXISTING_KERNEL_MODULE="1"
+        else
+               cd ..
+               echo ""
+               echo "The DRI drivers can not be installed without the latest kernel 
+modules."
+               echo "Installation will be aborted. See the $LOGFILE file for 
+information on"
+               echo "what went wrong."
+               echo ""
+               exit 127;
+        fi
 else
        echo "done";
 fi

Reply via email to