[pkg-nvidia-devel] Bug#481485: Bug#481485: legacy drivers

packadal packadal at gmail.com
Sun Jun 22 15:21:39 UTC 2008


Thanks for your solution, but i googled it a bit more and found a pathc on
the nvidia official site. Using the IGNORE_XEN_PRESENCE=1 before launching
the nvidia installer it works fine.
Only thing is this solutions does not use a debian package, wich is sad :(
I recently downgraded my kernel due to sound problems, and won't try your
fix anytime soon, sorry.
but really, thanks for your help :)

On Fri, Jun 20, 2008 at 3:51 PM, Lennart Sorensen <
lsorense at csclub.uwaterloo.ca> wrote:

> On Fri, Jun 20, 2008 at 02:31:05AM +0200, packadal wrote:
> > Hi, it looks like thge legacy (at leats nvidia-kernel-legacy96xx) are
> still
> > suffering from this problem, at least on my machine.
> > Same kernel (2.6.25-2-686), tried the 'ugly fix' but did'nt worked for
> me.
> > Thanks for looking in  to this one :)
>
> I wrote a patch to make 96xx compile with 2.6.25.  I don't remember if
> Randall released that yet though.
>
> Here is the patch if you want to try manually applying it to the
> /usr/src/modules/nvidia-... directory before compiling (tell module
> assistant not to extract again using -O I think it is).
>
> First it needs the patch from here:
> http://www.nvnews.net/vbulletin/showthread.php?t=110088
>
> Then it needs the patch to fix dealing with xen enabled kernels:
> diff -ruN usr/src/nv/conftest.sh usr/src/nv/conftest.sh
> --- usr/src/nv/conftest.sh      2008-06-07 11:00:05.000000000 -0400
> +++ usr/src/nv/conftest.sh      2008-06-07 11:02:31.000000000 -0400
> @@ -1140,62 +1140,7 @@
>     ;;
>
>     xen_sanity_check)
> -        #
> -        # Check if the target kernel is a Xen kernel. If so, then exit,
> since
> -        # the driver doesn't currently work with Xen.
> -        #
> -        RET=1
> -        VERBOSE=$6
> -        FILE="linux/autoconf.h"
> -
> -        if [ -n "$IGNORE_XEN_PRESENCE" ]; then
> -            exit 0
> -        fi
> -
> -        if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then
> -            #
> -            # We are looking at a configured source tree; verify
> -            # that it's not a Xen kernel.
> -            #
> -            echo "#include <linux/autoconf.h>
> -            #ifdef CONFIG_XEN
> -            #error CONFIG_XEN defined!!
> -            #endif
> -            " > conftest$$.c
> -
> -            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
> -            rm -f conftest$$.c
> -
> -            if [ -f conftest$$.o ]; then
> -                rm -f conftest$$.o
> -                RET=0
> -            fi
> -        else
> -            CONFIG=$HEADERS/../.config
> -            if [ -f $CONFIG ]; then
> -                if [ -z "$(grep "^CONFIG_XEN=y" $CONFIG)" ]; then
> -                    RET=0
> -                fi
> -            fi
> -        fi
> -
> -        if [ "$RET" != "0" ]; then
> -            echo "The kernel you are installing for is a Xen kernel!";
> -            echo "";
> -            echo "The NVIDIA driver does not currently work on Xen
> kernels. If ";
> -            echo "you are using a stock distribution kernel, please
> install ";
> -            echo "a variant of this kernel without Xen support; if this is
> a ";
> -            echo "custom kernel, please install a standard Linux kernel.
>  Then ";
> -            echo "try installing the NVIDIA kernel module again.";
> -            echo "";
> -            if [ "$VERBOSE" = "full_output" ]; then
> -                echo "*** Failed Xen sanity check. Bailing out! ***";
> -                echo "";
> -            fi
> -            exit 1
> -        else
> -            exit 0
> -        fi
> +        exit 0
>     ;;
>
>     compile_tests)
>
> It compiles and seems to work for me at least.
>
> --
> Len Sorensen
>



-- 
- Always keep in mind that you may be wrong -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20080622/495bba86/attachment.htm 


More information about the Pkg-nvidia-devel mailing list