Hi,
in this forum a solution was posted how in the alpha/beta kernel the nvidia drivers could be activated.
However this is much effort and it didn't work for me, because my kernel always crashed when i turned of the debugging options as suggested by the author. Therefore after some internet search i have another solution. Basically the problem is one kernel function which has a GPL Tag and this will make some checking in the build fail. Therefore if we don't set the GPL symbol in the build, the check will not fail. This is a bandaid i know. But the current nouveau driver are a mess for my two linux computers both with nvidia cards.
1. Create directory "nvidia"
2. Download the Nvidia Driver from http://www.nvidia.de/Download/Find.aspx
use the current BETA DRIVER
at time of writing this is "NVIDIA-Linux-x86_64-190.32-pkg2.run"
3. Create the files "build-nvidia.sh" and "Makefile.kbuild.patch"
(see below)
4. Before you can run the build script you need to make sure that the
nouveau driver is not activated on boot. Therefore you need
to add nouveau.modeset=0 to the kernel options. See example
below , add only the text in bold!
5. Reboot
5. Go to linux console, turn off X-Server e.g. with "init 3"
6. run "build-nvidia.sh NVIDIA-Linux-x86_64-190.32-pkg2.run"
7. Now it should build and work as expected ;-)
Have Fun!
Mandragor
The following files need to be in the directory "nvidia"
File "build-nvidia.sh"
File Makefile.kbuild.patchCode:#!/bin/sh NVIDIA_PACKAGE=$1 if [ ! $NVIDIA_PACKAGE ];then echo "build-nvidia.sh PACKAGE_NAME" exit fi TARGET=nvidia-module if [ -d $TARGET ]; then rm -rf $TARGET fi sh $NVIDIA_PACKAGE -x --target $TARGET cd $TARGET cat ../Makefile.kbuild.patch |patch -p1 ./nvidia-installer -a
Code:--- nvidia-module/usr/src/nv/Makefile.kbuild 2009-09-02 12:42:28.000000000 +0200 +++ nvidia-module/usr/src/nv/Makefile.kbuild.mod 2009-10-04 10:38:36.000000000 +0200 @@ -77,6 +77,9 @@ EXTRA_CFLAGS += -I$(src) EXTRA_CFLAGS += -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -mcmodel=kernel -mno-red-zone -fno-defer-pop -MD $(DEFINES) $(INCLUDES) -Wsign-compare -Wno-cast-qual -Wno-error +LOCKDEP_INIT_MAP:=$(shell grep "T lockdep_init_map" /boot/System.map-$(shell uname -r) |colrm 17) +EXTRA_LDFLAGS := --defsym lockdep_init_map=0x$(LOCKDEP_INIT_MAP) + # # We rely on these two definitions below; if they aren't set, we set them to # reasonable defaults (Linux 2.4's KBUILD, and top-level passes will not set
Example Entry for grub.conf with nouveau.option added. DO NOT COPY THIS INTO "grub.conf".
Only add the nouveau.conf (in bold) at the end of the line in your grub.conf.
Code:title Fedora (2.6.31.1-56.local.fc12.x86_64) kernel /vmlinuz-2.6.31.1-56.local.fc12.x86_64 ro root=UUID=XXX rhgb quiet SYSFONT=latarcyrheb-sun16 LANG=de_DE.UTF-8 KEYTABLE=de-latin1-nodeadkeys rd_plytheme=text nouveau.modeset=0 initrd /initramfs-2.6.31.1-56.local.fc12.x86_64.img



