nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   UNOFFICIAL patch for 7174 and linux2.6.16 (http://www.nvnews.net/vbulletin/showthread.php?t=67068)

r0b0 03-25-06 03:59 PM

UNOFFICIAL patch for 7174 and linux2.6.16
 
Hi,

Until the nvidia folks update the legacy driver, here's a quick and dirty patch which works for me:

http://deepblue.sk/~r0b0/nv-legacy-linux-2.6.16.patch

It works with gcc4.0, I haven't tested with 4.1.

Quick instructions:

# NVIDIA-Linux-x86-1.0-7174-pkg1.run --extract-only
# cd NVIDIA-Linux-x86-1.0-7174-pkg1/
# patch -p0 <~/nv-legacy-linux-2.6.16.patch
# ./nvidia-installer

esears 03-30-06 05:57 AM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
Thanks for the unofficial patch.

After applying to NVIDIA-Linux-x86-1.0-7174 drivers, I could then compile under Fedora Core 5, using gcc 4.1.0, kernel 2.6.16-1.2069_FC5

However, I did note a similar issue as in this thread:
http://www.nvnews.net/vbulletin/showthread.php?t=65454

So, in order to get things working I had to copy nvidia_drv.o and nvidia_drv.so from /usr/X11R6/lib/modules/drivers/ to /usr/lib/xorg/modules/drivers/

Thanks again

jarod1970 03-30-06 12:06 PM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
I have strange behavior following your instructions, if i apply the patch and run nvidia-installer, all work ok, at exit i can do startx and my X starts with NVIDIA acceleration... but if i do a reboot, the X Servers does not start nomore and report me an error "unable to loading the nvidia module".

How can solve this??? (if i restart the nvidia-installer all works again...but at the next reboot the problem remains)

I have Fedora Core 5 with Kernel 2.1.16

jarod1970 03-30-06 01:11 PM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
I have solved the problem below, the problem is that at reboot the /dev/nvidia* links are non recreated because most probably udev daemon delete it, so the solution that i have founded is:

1) Create a file called /etc/udev/makedev.d/51-nvida.nodes
2) Write in the file following lines:
nvidiactl
nvidia0
nvidia1
nvidia2
nvidia3
nvidia4
nvidia5
nvidia6
nvidia7

That's all :)

Regards, Tony

jarod1970 03-30-06 02:11 PM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
arghhh...only 2d acceleration work....another problem now.... OpenGL does not work... Xorg.0.log report me a "Failed to load GLX"...

Any idea to solve this?

jarod1970 03-30-06 02:27 PM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
Quote:

Originally Posted by jarod1970
arghhh...only 2d acceleration work....another problem now.... OpenGL does not work... Xorg.0.log report me a "Failed to load GLX"...

Any idea to solve this?

Solved with this three steps:

1) cd /usr/lib/xorg/modules/extensions/
2) mv libglx.so OLD_libglx.so
3) ln -s /usr/X11R6/lib/modules/extensions/libglx.so.1.0.7174 ./libglx.so

Now all works fine...
The journey is finished....i hope :)

Zhenech 04-10-06 07:00 AM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
7174 builds on debian sarge with your patch like a charm.
don't looked for the opengl problem - will do that later.

i have still one question: does anyone know, if that (or a similar) patch will sometime gets official? i think there are enough people who need the legacy driver but do not want to miss the newer kernel versions.

greets
Zhe

zander 04-10-06 07:54 AM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
@Zhenech: an updated legacy graphics driver is planned for the near future; this driver should match 1.0-8756 in terms of Linux 2.6 compatibility.

Zhenech 04-11-06 06:11 AM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
Thank you for the info zander.

If here are some Debian Stable users:
I have set up a debian archive for stable users, who want to have a new kernel.
deb http://debian.die-welt.net/ sarge main non-free contrib
and install the 1.0.7174-3dwn1 version of nvidia-kernel-source

linux__rulez 05-03-06 04:52 PM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
The patch works very well. Thanks a lot. The guys from NVidia wrote me:

"A new legacy driver which builds on 2.6.16.x kernels will be released in the very near future. "

But if you don't want to wait, use the short HOWTO and you might be all fine :)

r0b0 05-04-06 03:52 AM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
Quote:

Originally Posted by zander
an updated legacy graphics driver is planned for the near future; this driver should match 1.0-8756 in terms of Linux 2.6 compatibility.

Sorry for following up on my own post... A question (for Zander perhaps):

Will this updated driver work with Xorg1.0?

logistiker 05-17-06 02:19 PM

Re: UNOFFICIAL patch for 7174 and linux2.6.16
 
Quote:

Originally Posted by r0b0
Hi,

Until the nvidia folks update the legacy driver, here's a quick and dirty patch which works for me:

http://deepblue.sk/~r0b0/nv-legacy-linux-2.6.16.patch

It works with gcc4.0, I haven't tested with 4.1.

Quick instructions:

# NVIDIA-Linux-x86-1.0-7174-pkg1.run --extract-only
# cd NVIDIA-Linux-x86-1.0-7174-pkg1/
# patch -p0 <~/nv-legacy-linux-2.6.16.patch
# ./nvidia-installer


When I apply this patch to the source, it rejects this:

***************
*** 12,19 ****
OUTPUT=$3

CFLAGS="-D__KERNEL__ \
- -nostdinc -isystem $ISYSTEM \
- -Werror -Wimplicit-function-declaration"

if [ "$OUTPUT" != "$SOURCES" ]; then
CFLAGS="$CFLAGS -I$OUTPUT/include2 -I$OUTPUT/include \
--- 12,19 ----
OUTPUT=$3

CFLAGS="-D__KERNEL__ \
+ -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
+ -nostdinc -isystem $ISYSTEM"

if [ "$OUTPUT" != "$SOURCES" ]; then
CFLAGS="$CFLAGS -I$OUTPUT/include2 -I$OUTPUT/include \



Any ideas why?


All times are GMT -5. The time now is 01:38 AM.

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