|
|
#1 | |
|
Registered User
Join Date: Mar 2012
Posts: 1
|
Hi,
the script kernel/conftest.sh is looking for generated files in the $SOURCE tree instead of the $OUTPUT tree. This affects all 3.3 kernels, compiled with the O= parameter or $KBUILD_OUTPUT variable. Code:
--- kernel/conftest.sh.orig 2012-03-17 22:56:28.000000000 +0100
+++ kernel/conftest.sh 2012-03-23 14:18:41.000000000 +0100
@@ -126,9 +126,9 @@
CFLAGS="$BASE_CFLAGS $MACH_CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"
if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
- CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$SOURCES/arch/x86/include/generated"
+ CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$OUTPUT/arch/x86/include/generated"
elif [ "$ARCH" = "ARMv7" ]; then
- CFLAGS="$CFLAGS -I$SOURCES/arch/arm/include -I$SOURCES/arch/arm/include/generated"
+ CFLAGS="$CFLAGS -I$SOURCES/arch/arm/include -I$OUTPUT/arch/arm/include/generated"
fi
if [ -n "$BUILD_PARAMS" ]; then
CFLAGS="$CFLAGS -D$BUILD_PARAMS"
Platinumviper |
|
|
|
|
|
|
#2 | |
|
NVIDIA Corporation
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
|
Thanks, the generated header files will be picked up from $OUTPUT instead of $SOURCES in the next release.
|
|
|
|
|
|
|
#3 | |
|
Its James again in Austin
Join Date: Dec 2010
Location: Austin, Texas
Posts: 16
|
Quote:
If we can assume you have compiled or in some way installed kernel 3.3 and only need to load it from grub, here is what you would do first. You need to have the application called patch installed. You can use the terminal command "patch --help" to see if it is installed. These patches were kindly supplied by Larry Finger, one the kernel developers. Thanks for your help Larry. This example is for nVIDIA driver 295.33: 1. Open the Link: http://www.lwfinger.com/nvidia_patch...33_for_3.3_err (or http://www.lwfinger.com/nvidia_patch...20_for_3.3_err for 295.20) 2. Select all of the text and do a Edit/Copy. Open up kwrite of other Text editor and do an Edit/Paste 3. Save the Text file as the file ~/Downloads/NVIDIA-Linux-x86_64-295.33.patch 4. Download the NVIDIA-Linux-x86_64-295.33.run driver file to your ~/Downloads Folder from their Web Site. 5. Open a terminal session and run the commands: Code:
cd ~/Downloads sh ./NVIDIA-Linux-x86_64-295.33.run --extract-only --target "$HOME/Downloads/NVIDIA-295.33" cd "$HOME/Downloads/NVIDIA-295.33/Kernel" patch -b ./conftest.sh ~/Downloads/NVIDIA-Linux-x86-295.33.patch 6. Restart your Linux version, loading kernel 3.3 into run level 3 as normal and log in as root. 7. Change to the nVIDIA Installer folder like this: Code:
cd /home/username/Downloads/NVIDIA-295.33 Code:
./nvidia-installer Thank You, |
|
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Jan 2010
Posts: 26
|
Or perhaps you might just want to use the wonderful --apply-patch option in the installer.
|
|
|
|
|
|
|
#5 |
|
Its James again in Austin
Join Date: Dec 2010
Location: Austin, Texas
Posts: 16
|
|
|
|
|
|
|
#6 | |
|
Its James again in Austin
Join Date: Dec 2010
Location: Austin, Texas
Posts: 16
|
Quote:
Code:
./nvidia-installer: unrecognized option: "--apply-patch" Thank You, |
|
|
|
|
|
|
#7 | |
|
Registered User
Join Date: Feb 2008
Posts: 163
|
Quote:
It exists here Code:
./NVIDIA-Linux-x86_64-295.33.run --apply-patch ERROR: --apply-patch: no patch file specified. To use it Code:
./NVIDIA-Linux-x86_64-295.33.run --apply-patch nvidia_295_33_for_3.3_err
__________________
leigh123linux |
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
|
There is another problem with later 3.3 kernels where asm/system.h does not exist but it's included in nv-linux.h
|
|
|
|
|
|
#9 | |
|
Its James again in Austin
Join Date: Dec 2010
Location: Austin, Texas
Posts: 16
|
Quote:
Code:
sh ./NVIDIA-Linux-x86_64-295.33.run --apply-patch NVIDIA-295.33.patch Code:
can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: NVIDIA-Linux-x86-295.33/kernel/conftest.sh |=================================================================== |--- NVIDIA-Linux-x86-295.33.orig/kernel/conftest.sh |+++ NVIDIA-Linux-x86-295.33/kernel/conftest.sh Thank You, |
|
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Feb 2008
Posts: 163
|
Quote:
http://leigh123linux.fedorapeople.or..._3.3_err.patch Code:
curl http://leigh123linux.fedorapeople.org/pub/patches/nvidia_295_33_for_3.3_err.patch -o nvidia_295_33_for_3.3_err.patch ./NVIDIA-Linux-x86_64-295.33.run --apply-patch nvidia_295_33_for_3.3_err.patch
__________________
leigh123linux |
|
|
|
|
|
|
#11 | |
|
Its James again in Austin
Join Date: Dec 2010
Location: Austin, Texas
Posts: 16
|
Quote:
Thank You, |
|
|
|
|
|
|
#12 |
|
Registered User
Join Date: Nov 2008
Posts: 95
|
And when fixing nvidia for the 3.3 kernel, it might be worth adding a fix for the 3.4 kernel. They have removed asm/system.h so nvidia needs to use asm/switch_to.h instead in both nv-linux.h and conftest.sh.
|
|
|
|
![]() |
| Thread Tools | |
|
|