Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-24-08, 08:07 AM   #1
cthulhu
Great Old One
 
cthulhu's Avatar
 
Join Date: Sep 2002
Posts: 124
Default Kernel 2.6.28 support?

Since I've got a fairly recent laptop (Asus U6V), I've been testing the lastest kernels to get everything working (HDMI audio especially).

Today I've built and booted a 2.6.28-rc1 kernel with success. Unfortunately I couldn't install the nVidia X.org driver since compilation of the kernel module fails. The kernel team has moved architecture specific headers from include/asm-x86 to arch/x86/include/asm, and thus compilation of conftest (and the actual kernel module itself) fails.

Do you have a patch to enable 2.6.28 support or is there a new beta with 2.6.28 support in the works? In case of the latter, can you perhaps reveal an ETA?

Thanks in advance

Cthulhu
__________________
Desktop: Asus P5B Deluxe, Core2Duo E8500, 2GB Corsair 800MHz CL4, Gigabyte GTX460 1024MB
HTPC: Asus P5B-E, Core2Duo 6300, 1GB Corsair 533MHz, Asus 9500GT w/ 512MB DDR3
Server: Gigabyte D510UD, Atom D510, 2GB Corsair 800MHz, Hauppauge NOVA-T500 dual DVB-T tuner, 4x 2TB Samsung F3EG (RAID5)
Laptop: Asus U6V, Core2Duo P8400, 3GB DDR2, 9300M GS
OS on all: Gentoo Linux

Bought a computer bundled with windows? Don't want to use windows? Demand a refund!
cthulhu is offline   Reply With Quote
Old 10-24-08, 01:10 PM   #2
Emopig
Registered User
 
Join Date: Feb 2008
Posts: 19
Default Re: Kernel 2.6.28 support?

This happens every kernel release, give it a few days and someone will probably post a hacked up patch to get 177.80 working with it.

I will probably have a poke it myself before the weekend is out.

Atm i'm using 2.6.28-rc1+(git patch for NCQ bug) and the free nv driver.
Emopig is offline   Reply With Quote
Old 10-25-08, 05:08 AM   #3
towo|
Registered User
 
Join Date: Feb 2007
Posts: 113
Default Re: Kernel 2.6.28 support?

Look in your include/asm and you know, why the driver not work.
Make a symlink from arch/x86/include/asm to include /asm-x86 and the driver will build.
towo| is offline   Reply With Quote
Old 10-25-08, 05:58 AM   #4
FrancoisVal
François
 
Join Date: Dec 2007
Posts: 8
Default Re: Kernel 2.6.28 support?

I created the symlink you suggested. At least, the build starts but it ends with the following error:

Code:
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/.nvacpi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -I/usr/src/linux-2.6.28/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m64 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -I/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -mcmodel=kernel -mno-red-zone -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"177.80\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvacpi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.o /var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c
distcc[21136] ERROR: compile /var/tmp/ccache/nvacpi.tmp.pc-francois.21132.i on localhost failed
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c: In function ‘nv_acpi_add’:
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c:161: erreur: membre gauche de l'affectation invalide
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c:178: attention : passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c: In function ‘nv_acpi_event’:
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c:319: attention : passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c:334: attention : passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c:349: attention : passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type
/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.c:364: attention : passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv/nvacpi.o] Erreur 1
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-177.80/work/NVIDIA-Linux-x86_64-177.80-pkg2/usr/src/nv] Erreur 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Erreur 1
make: *** [module] Erreur 2
So, as with every kernel release, a patch seems necessary to compile the nvidia driver with 2.6.28. I have put a full build log in attachment.

Thanks for your help.
Attached Files
File Type: log build.log (15.5 KB, 167 views)
FrancoisVal is offline   Reply With Quote
Old 10-25-08, 06:01 AM   #5
towo|
Registered User
 
Join Date: Feb 2007
Posts: 113
Default Re: Kernel 2.6.28 support?

Here is the /var/log/nvidia-installer.log from the test, i have made:

http://rafb.net/p/kKxeW470.html
towo| is offline   Reply With Quote
Old 10-25-08, 06:12 AM   #6
FrancoisVal
François
 
Join Date: Dec 2007
Posts: 8
Default Re: Kernel 2.6.28 support?

It seems you are running an x86 machine. I try to compile it on a 64 bit system and it fails.
FrancoisVal is offline   Reply With Quote
Old 10-25-08, 06:32 AM   #7
towo|
Registered User
 
Join Date: Feb 2007
Posts: 113
Default Re: Kernel 2.6.28 support?

For 64bit i have no clue, only tryed for 32 bit.
towo| is offline   Reply With Quote
Old 10-25-08, 12:46 PM   #8
agent5
Registered User
 
agent5's Avatar
 
Join Date: Oct 2008
Location: Germany, EU, Earth, Solar-System, Orion-Arm, Milky Way, local group, Virgo-supercluster
Posts: 5
Send a message via MSN to agent5
Exclamation Re: Kernel 2.6.28 support?

After linking the asm dir, as suggested here, the building process starts but fails on my x86 machine here

complete installer logfile

any further ideas or do we just have to wait ?

greetz agent5
agent5 is offline   Reply With Quote

Old 10-25-08, 02:33 PM   #9
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Kernel 2.6.28 support?

Doesn't start to build here either. Hoping the symlink here is correct, x86_64 target.
tindog:/usr/src/linux-2.6.28-rc1-git1/arch/x86/include/asm # l -d asm
lrwxrwxrwx 1 root root 27 2008-10-25 20:27 asm -> ../../../../include/asm-x86/

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Oct 25 19:45:26 2008
installer version: 1.0.7

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
compat32 install chroot : (not specified)
compat32 install prefix : (not specified)
compat32 install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : /usr/src/linux-2.6.28-rc1-git1
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 177.80.
-> There appears to already be a driver installed on your system (version: 177.
80). As part of installing this driver (version: 177.80), the existing driv
er will be uninstalled. Are you sure you want to continue? ('no' will abort
installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/linux-2.6.28-rc1-git1' as specified
by the '--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux-2.6.28-rc1-git1'
-> Kernel output path: '/usr/src/linux-2.6.28-rc1-git1'
ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
siddly is offline   Reply With Quote
Old 10-25-08, 02:48 PM   #10
towo|
Registered User
 
Join Date: Feb 2007
Posts: 113
Default Re: Kernel 2.6.28 support?

Code:
~/kernel/linux-2.6.28-rc1/include
towo:Defiant> ls -al asm-x86
lrwxrwxrwx 1 towo towo 59 24. Okt 22:44 asm-x86 -> /home/towo/kernel/linux-2.6.28-rc1/arch/x86/include/asm
so the driver build without problem.
towo| is offline   Reply With Quote
Old 10-25-08, 02:55 PM   #11
Emopig
Registered User
 
Join Date: Feb 2008
Posts: 19
Default Re: Kernel 2.6.28 support?

Patched, working and lightly tested here:
  1. Copy include/asm-x86/asm-offsets.h to /arch/x86/include/asm. This was the only file in my asm-x86 folder and I didn't want to change the symlink and cut anything off from it.
  2. Symlink include/asm to ../arch/x86/include/asm
  3. Apply this patch to fix ACPI on x86_64, it is probably needed on x86 too.

Edit: Patch mirror here
Emopig is offline   Reply With Quote
Old 10-25-08, 03:28 PM   #12
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Kernel 2.6.28 support?

Quote:
Originally Posted by Emopig View Post
Patched, working and lightly tested here:
  1. Copy include/asm-x86/asm-offsets.h to /arch/x86/include/asm. This was the only file in my asm-x86 folder and I didn't want to change the symlink and cut anything off from it.
  2. Symlink include/asm to ../arch/x86/include/asm
  3. Apply this patch to fix ACPI on x86_64, it is probably needed on x86 too.

Edit: Patch mirror here
Thanks, works fine ... have to go back to 2.6.27-git10 as thunderbird crashes on 2.6.28-rc1-git1, nothing to do with the driver however.
siddly is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random crashes, NVRM Xid messages Iesos NVIDIA Linux 90 10-04-12 03:27 AM
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM

All times are GMT -5. The time now is 11:37 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.