GeForce 7900GS GPU - nvidia driver install

Moderator: fredx181

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

GeForce 7900GS GPU - nvidia driver install

Post by dcung »

Continued from
viewtopic.php?p=26538#p26538

Decided to create separate thread.

@rcrsn51
Bill, I managed to find old notes that reminded me when I was experimenting to install nvidia driver few years ago. I have notes that confirmed I was able to install nvidia driver for Dell D630 laptop. Successful for both DebianDog and UbuntuDog . Not an issue now on Dell D630.

The current PC involved has following specs:
Asus P5K-E Motherboard, E6750 CoreDuo@2.66GHz, 4GB RAM, GeForce 7900GS GPU card and SSD.

Re-starting from scratch.
StretchDog64-openbox_xfce-jwm-2017-10-10.iso

My old notes (StretchDog64) indicated I was able to install nvidia using following commands (on Dell D630). So, trying on this PC now.

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install linux-headers-4.9.0-7-amd64
apt-get install nvidia-legacy-340xx-driver 
apt-get install nvidia-settings-legacy-340xx

Got errors installing headers. The 2 nvidia packages seems available. I guess I won't get too far before headers issue resolved (regardless Method A or B or v340 or v304 driver).

Code: Select all

root@live:~# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-3-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-3-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-3-amd64'
root@live:~# uname -r
4.9.0-3-amd64
root@live:~# apt-get install linux-headers-4.9.0-7-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-7-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-7-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-7-amd64'
root@live:~# 
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

FossaDog-2020-11-15_64-bit-UEFI.iso - from scratch with v304 driver.

apt-get update
apt-get install linux-headers-$(uname -r)

created /etc/modprobe.d/disable-nouveau.conf

Code: Select all

blacklist nouveau
blacklist vga16fb
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
blacklist amd76_edac
options nouveau modeset=0

reboot

extracted NVIDIA-Linux-x86_64-304.137.run
./nvidia-installer

Content of /var/log/nvidia-installer.log

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 28 12:48:57 2021
installer version: 304.137

PATH: /opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 304.137.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/5.4.0-53-generic/build'
-> Kernel output path: '/lib/modules/5.4.0-53-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/5.4.0-53-generic/build SYSOUT=/lib/modules/5.4.0-53-generic/build'...
   NVIDIA: calling KBUILD...
   make -f ./Makefile syncconfig
   make -f ./scripts/Makefile.build obj=scripts/basic
     gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89         -o scripts/basic/fixdep scripts/basic/fixdep.c   
   rm -f .tmp_quiet_recordmcount
   make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
     gcc -Wp,-MD,scripts/kconfig/.conf.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/conf.o scripts/kconfig/conf.c
     gcc -Wp,-MD,scripts/kconfig/.confdata.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/confdata.o scripts/kconfig/confdata.c
     gcc -Wp,-MD,scripts/kconfig/.expr.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/expr.o scripts/kconfig/expr.c
     flex -oscripts/kconfig/lexer.lex.c -L scripts/kconfig/lexer.l
   /bin/sh: flex: command not found
   make[4]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
   make[3]: *** [Makefile:617: syncconfig] Error 2
   make[2]: *** [Makefile:723: include/config/auto.conf.cmd] Error 2
   make[2]: *** [include/config/auto.conf.cmd] Deleting file 'include/config/tristate.conf'
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [Makefile:261: module] Error 1
   make: *** [makefile:59: module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.
Last edited by dcung on Fri May 28, 2021 5:26 am, edited 2 times in total.
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

FossaDog-2020-11-15_64-bit-UEFI.iso - with v304 driver.

I executed

Code: Select all

apt-get install gcc make build-essential gcc-multilib dkms mesa-utils
wget https://lafibre.info/testdebit/ubuntu/nvidia-304.137-bionic-18.04.patch
patch -p1 <nvidia-304.137-bionic-18.04.patch

then re-run

Code: Select all

./nvidia-installer

Content of make.log

Code: Select all

DKMS make.log for nvidia-304.137 for kernel 5.4.0-53-generic (x86_64)
Fri May 28 13:48:12 AEST 2021
NVIDIA: calling KBUILD...
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
  flex -oscripts/kconfig/lexer.lex.c -L scripts/kconfig/lexer.l
  bison -o scripts/kconfig/parser.tab.c --defines=scripts/kconfig/parser.tab.h -t -l scripts/kconfig/parser.y
/bin/sh: bison: command not found
/bin/sh: flex: command not found
make[4]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab.h] Error 127
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make[3]: *** [Makefile:617: syncconfig] Error 2
make[2]: *** [Makefile:723: include/config/auto.conf.cmd] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:262: module] Error 1
make: *** [makefile:59: module] Error 2

Content of new /var/log/nvidia-installer.log

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 28 13:47:34 2021
installer version: 304.137

PATH: /opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 304.137.
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility OpenGL libraries? (Answer: No)
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (304.137):
   executing: '/sbin/ldconfig'...
   executing: '/sbin/depmod -aq'...
   depmod: WARNING: Ignored deprecated option -q
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 304.137 -k 5.4.0-53-generic`: 
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=5.4.0-53-generic module SYSSRC=/lib/modules/5.4.0-53-generic/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.0-53-generic (x86_64)
Consult /var/lib/dkms/nvidia/304.137/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
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.

X started, nvidia X server settings says I'm not using nvidia driver.

Code: Select all

root@live:~# lspci -nnk | grep nvidia
	Kernel modules: nvidiafb, nouveau
root@live:~# 
root@live:~# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 400, current 800 x 600, maximum 800 x 600
default connected 800x600+0+0 0mm x 0mm
   800x600        0.00* 
   640x480        0.00  
   640x400        0.00  
   320x400        0.00  
root@live:~# 
Last edited by dcung on Fri May 28, 2021 5:28 am, edited 1 time in total.
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

FossaDog-2020-11-15_64-bit-UEFI.iso - from scratch with v340 driver

I have few test configs. I think this is the 'closest' setup to working (?)

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install nvidia-340 

On Dell D630 (nVidia Quadro) this works.

Code: Select all

root@D630:~# lspci -nnk | grep nvidia
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia

On this PC (nVidia 7900GS), No errors. But...

Code: Select all

root@live:~# lspci -nnk | grep nvidia
	Kernel modules: nvidiafb, nouveau, nvidia
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

dcung wrote: Fri May 28, 2021 5:25 am

FossaDog-2020-11-15_64-bit-UEFI.iso - from scratch with v340 driver

I have few test configs. I think this is the 'closest' setup to working (?)

Scratch that. I just looked at
https://www.nvidia.com/Download/driverR ... 6163/en-us
7900GS no longer in supported v340 HW list.
So, I guess it has to be v304 if it's possible at all...It's still listed there.

Last edited by dcung on Fri May 28, 2021 9:18 am, edited 1 time in total.
User avatar
fredx181
Posts: 2558
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

Re: GeForce 7900GS GPU - nvidia driver install

Post by fredx181 »

Hi dcung

make.log wrote:

/bin/sh: bison: command not found
/bin/sh: flex: command not found

Did you install bison and flex and tried again ?

About installing on older systems, e.g. Stretch, the problem is that the linux-headers version matching with the kernel version installed is not available anymore.
Fix could be upgrading the kernel to newest, boot with it and then install linux-headers.
(with Fossa it's ok though)

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

fredx181 wrote: Fri May 28, 2021 8:09 am

Hi dcung
...
About installing on older systems, e.g. Stretch, the problem is that the linux-headers version matching with the kernel version installed is not available anymore.
Fix could be upgrading the kernel to newest, boot with it and then install linux-headers.
(with Fossa it's ok though)

Hi Fred,
In that case, I will try FossaDog first. Not experienced on upgrading kernel yet.

I don't know what bison and flex are. Are they installable from synaptic? I'll see if they are while waiting your reply...and retry if I got them installed successfully.
Thanks Fred.

User avatar
fredx181
Posts: 2558
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

Re: GeForce 7900GS GPU - nvidia driver install

Post by fredx181 »

dcung wrote:

I don't know what bison and flex are. Are they installable from synaptic?

Yes, just:

Code: Select all

apt install bison flex
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

Found them, installed thru synaptic.

Rerun
./nvidia-installer

Content of make.log

Code: Select all

DKMS make.log for nvidia-304.137 for kernel 5.4.0-53-generic (x86_64)
Fri May 28 18:59:31 AEST 2021
NVIDIA: calling KBUILD...
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
  flex -oscripts/kconfig/lexer.lex.c -L scripts/kconfig/lexer.l
  bison -o scripts/kconfig/parser.tab.c --defines=scripts/kconfig/parser.tab.h -t -l scripts/kconfig/parser.y
  gcc -Wp,-MD,scripts/kconfig/.preprocess.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/preprocess.o scripts/kconfig/preprocess.c
  gcc -Wp,-MD,scripts/kconfig/.symbol.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/symbol.o scripts/kconfig/symbol.c
  gcc -Wp,-MD,scripts/kconfig/.lexer.lex.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89      -I ./scripts/kconfig -c -o scripts/kconfig/lexer.lex.o scripts/kconfig/lexer.lex.c
  gcc -Wp,-MD,scripts/kconfig/.parser.tab.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89      -I ./scripts/kconfig -c -o scripts/kconfig/parser.tab.o scripts/kconfig/parser.tab.c
  gcc   -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/confdata.o scripts/kconfig/expr.o scripts/kconfig/lexer.lex.o scripts/kconfig/parser.tab.o scripts/kconfig/preprocess.o scripts/kconfig/symbol.o   
scripts/kconfig/conf  --syncconfig Kconfig
make -f ./scripts/Makefile.build obj=arch/x86/entry/syscalls all
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
set -e; mkdir -p include/config/; trap "rm -f include/config/.kernel.release.tmp" EXIT; { echo "5.4.65$(sh ./scripts/setlocalversion .)"; } > include/config/.kernel.release.tmp; if [ ! -r include/config/kernel.release ] || ! cmp -s include/config/kernel.release include/config/.kernel.release.tmp; then : '  UPD     include/config/kernel.release'; mv -f include/config/.kernel.release.tmp include/config/kernel.release; fi
make -f ./scripts/Makefile.asm-generic obj=arch/x86/include/generated/uapi/asm \
generic=include/uapi/asm-generic
set -e; mkdir -p include/generated/uapi/linux/; trap "rm -f include/generated/uapi/linux/.version.h.tmp" EXIT; { 	echo \#define LINUX_VERSION_CODE 328769; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; } > include/generated/uapi/linux/.version.h.tmp; if [ ! -r include/generated/uapi/linux/version.h ] || ! cmp -s include/generated/uapi/linux/version.h include/generated/uapi/linux/.version.h.tmp; then : '  UPD     include/generated/uapi/linux/version.h'; mv -f include/generated/uapi/linux/.version.h.tmp include/generated/uapi/linux/version.h; fi
rm -f include/linux/version.h
make -f ./scripts/Makefile.build obj=arch/x86/tools relocs
make[3]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'.  Stop.
make[2]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[2]: *** Waiting for unfinished jobs....
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:262: module] Error 1
make: *** [makefile:59: module] Error 2

Content of /var/log/nvidia-installer.log

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 28 18:58:40 2021
installer version: 304.137

PATH: /opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 304.137.
-> There appears to already be a driver installed on your system (version: 304.137).  As part of installing this driver (version: 304.137), the existing driver will be uninstalled.  Are you sure you want to continue? ('no' will abort installation) (Answer: Yes)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility OpenGL libraries? (Answer: No)
-> Uninstalling the previous installation with /usr/bin/nvidia-uninstall.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (304.137):
   executing: '/sbin/ldconfig'...
   executing: '/sbin/depmod -aq'...
   depmod: WARNING: Ignored deprecated option -q
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 304.137 -k 5.4.0-53-generic`: 
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=5.4.0-53-generic module SYSSRC=/lib/modules/5.4.0-53-generic/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.0-53-generic (x86_64)
Consult /var/lib/dkms/nvidia/304.137/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
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.
User avatar
fredx181
Posts: 2558
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

Re: GeForce 7900GS GPU - nvidia driver install

Post by fredx181 »

Pity that it still fails to build.
You do have linux-headers matching with the kernel version installed ? (5.4.0-53)

User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

Hi Fred: Is it possible to upgrade StretchDog to its newest available kernel, so you could then get the matching headers?

Or would you run into the same old problem with aufs?

User avatar
fredx181
Posts: 2558
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 273 times
Been thanked: 992 times
Contact:

Re: GeForce 7900GS GPU - nvidia driver install

Post by fredx181 »

rcrsn51 wrote: Fri May 28, 2021 11:00 am

Hi Fred: Is it possible to upgrade StretchDog to its newest available kernel, so you could then get the matching headers?

Or would you run into the same old problem with aufs?

I tried to upgrade to latest Stretch kernel, but couldn't, no idea why, building aufs module with aufs-dkms went ok for v4.9.0-15, but booting with it failed for me.

But here's a workaround for to boot with kernel 4.9.0-12 and install matching linux-headers :
Extract the "package" kernel-stretch-amd64.tar.gz in "live" folder (k-4.9.0-12, the latest I could make it to work):
https://debiandog.github.io/MakeLive/ke ... d64.tar.gz
Boot with it and add to /etc/apt/sources.list, a line for "snapshot.debian" from a year ago (at the point of time that linux-headers v4.9.0-12 was still available):

Code: Select all

deb http://snapshot.debian.org/archive/debian/20200528/ stretch main contrib non-free

Then:

Code: Select all

apt update
apt install linux-headers-$(uname -r)

Works! Will install linux-headers-4.9.0-12

Fred

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

fredx181 wrote: Fri May 28, 2021 10:46 am

Pity that it still fails to build.
You do have linux-headers matching with the kernel version installed ? (5.4.0-53)

Yes, headers were installed.
(ie. assuming successful apt-get install linux-headers-$(uname -r) will install matching headers - I didn't pay attention to version details)

Basically, these were what I did to the test setup:

Code: Select all

Fresh FossaDog-2020-11-15_64-bit-UEFI.iso
apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install gcc make build-essential gcc-multilib dkms mesa-utils

created /etc/modprobe.d/disable-nouveau.conf
blacklist nouveau
blacklist vga16fb
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
blacklist amd76_edac
options nouveau modeset=0

reboot

extracted NVIDIA-Linux-x86_64-304.137.run
./nvidia-installer

reboot 

wget https://lafibre.info/testdebit/ubuntu/nvidia-304.137-bionic-18.04.patch
patch -p1 <nvidia-304.137-bionic-18.04.patch
./nvidia-installer

reboot

apt-get install bison flex
./nvidia-installer

So, v304 driver installer were run 3 times.
Once without patch and without bison & flex.
Once with patch and without bison & flex.
Once with patch and with bison & flex.
I doubt if it makes any difference if I re-do setup from scratch again, in order to run it without patch but with bison & flex.

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

I confirmed headers are ok.

Code: Select all

root@live:~# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-5.4.0-53-generic is already the newest version (5.4.0-53.59).
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
root@live:~# 

I renamed patched v304 driver subdir.
Re-extracted v304 driver from .run file.
Re-run ./nvidia-installer (ie. un-patched)

Content of make.log

Code: Select all

DKMS make.log for nvidia-304.137 for kernel 5.4.0-53-generic (x86_64)
Sat May 29 09:42:00 AEST 2021
NVIDIA: calling KBUILD...
make -f ./scripts/Makefile.build obj=arch/x86/entry/syscalls all
make -f ./scripts/Makefile.build obj=scripts/basic
set -e; mkdir -p include/config/; trap "rm -f include/config/.kernel.release.tmp" EXIT; { echo "5.4.65$(sh ./scripts/setlocalversion .)"; } > include/config/.kernel.release.tmp; if [ ! -r include/config/kernel.release ] || ! cmp -s include/config/kernel.release include/config/.kernel.release.tmp; then : '  UPD     include/config/kernel.release'; mv -f include/config/.kernel.release.tmp include/config/kernel.release; fi
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.asm-generic obj=arch/x86/include/generated/uapi/asm \
generic=include/uapi/asm-generic
set -e; mkdir -p include/generated/uapi/linux/; trap "rm -f include/generated/uapi/linux/.version.h.tmp" EXIT; { 	echo \#define LINUX_VERSION_CODE 328769; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; } > include/generated/uapi/linux/.version.h.tmp; if [ ! -r include/generated/uapi/linux/version.h ] || ! cmp -s include/generated/uapi/linux/version.h include/generated/uapi/linux/.version.h.tmp; then : '  UPD     include/generated/uapi/linux/version.h'; mv -f include/generated/uapi/linux/.version.h.tmp include/generated/uapi/linux/version.h; fi
rm -f include/linux/version.h
make -f ./scripts/Makefile.build obj=arch/x86/tools relocs
make[3]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'.  Stop.
make[2]: *** [arch/x86/Makefile:232: archscripts] Error 2
make[2]: *** Waiting for unfinished jobs....
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:261: module] Error 1
make: *** [makefile:59: module] Error 2

Content of /var/log/nvidia-installer.log

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat May 29 09:41:12 2021
installer version: 304.137

PATH: /opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 304.137.
-> There appears to already be a driver installed on your system (version: 304.137).  As part of installing this driver (version: 304.137), the existing driver will be uninstalled.  Are you sure you want to continue? ('no' will abort installation) (Answer: Yes)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility OpenGL libraries? (Answer: No)
-> Uninstalling the previous installation with /usr/bin/nvidia-uninstall.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (304.137):
   executing: '/sbin/ldconfig'...
   executing: '/sbin/depmod -aq'...
   depmod: WARNING: Ignored deprecated option -q
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 304.137 -k 5.4.0-53-generic`: 
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=5.4.0-53-generic module SYSSRC=/lib/modules/5.4.0-53-generic/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.0-53-generic (x86_64)
Consult /var/lib/dkms/nvidia/304.137/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
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.

I don't know what I'm doing, but to my untrained eyes, the patched one looks better. From older log - It runs more stuff, some C compiler stuffs (?)

Code: Select all

  flex -oscripts/kconfig/lexer.lex.c -L scripts/kconfig/lexer.l
  bison -o scripts/kconfig/parser.tab.c --defines=scripts/kconfig/parser.tab.h -t -l scripts/kconfig/parser.y
  gcc -Wp,-MD,scripts/kconfig/.preprocess.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/preprocess.o scripts/kconfig/preprocess.c
  gcc -Wp,-MD,scripts/kconfig/.symbol.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/symbol.o scripts/kconfig/symbol.c
  gcc -Wp,-MD,scripts/kconfig/.lexer.lex.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89      -I ./scripts/kconfig -c -o scripts/kconfig/lexer.lex.o scripts/kconfig/lexer.lex.c
  gcc -Wp,-MD,scripts/kconfig/.parser.tab.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89      -I ./scripts/kconfig -c -o scripts/kconfig/parser.tab.o scripts/kconfig/parser.tab.c
  gcc   -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/confdata.o scripts/kconfig/expr.o scripts/kconfig/lexer.lex.o scripts/kconfig/parser.tab.o scripts/kconfig/preprocess.o scripts/kconfig/symbol.o   
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

fredx181 wrote: Fri May 28, 2021 7:20 pm
rcrsn51 wrote: Fri May 28, 2021 11:00 am

Hi Fred: Is it possible to upgrade StretchDog to its newest available kernel, so you could then get the matching headers?

Or would you run into the same old problem with aufs?

...
apt install linux-headers-$(uname -r)[/code]
Works! Will install linux-headers-4.9.0-12

Fred

I think I got headers installed on StretchDog using Fred's instruction above.

Code: Select all

root@live:~# uname -r
4.9.0-12-amd64
root@live:~# apt update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease                           
Hit:3 http://deb.debian.org/debian stretch Release                             
Get:4 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]         
Get:6 https://fredx181.github.io/StretchDog/amd64/Packages ./ InRelease [2,302 B]
Err:4 http://dl.google.com/linux/chrome/deb stable InRelease                   
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
Hit:7 https://ixpeering.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all InRelease
Ign:8 http://snapshot.debian.org/archive/debian/20200528 stretch InRelease
Get:9 http://snapshot.debian.org/archive/debian/20200528 stretch Release [118 kB]
Get:10 http://snapshot.debian.org/archive/debian/20200528 stretch Release.gpg [2,410 B]
Get:11 http://snapshot.debian.org/archive/debian/20200528 stretch/main amd64 Packages [7,083 kB]
Get:12 http://snapshot.debian.org/archive/debian/20200528 stretch/main Translation-en [5,381 kB]
Get:13 http://snapshot.debian.org/archive/debian/20200528 stretch/contrib amd64 Packages [50.9 kB]
Get:14 http://snapshot.debian.org/archive/debian/20200528 stretch/contrib Translation-en [45.9 kB]
Get:15 http://snapshot.debian.org/archive/debian/20200528 stretch/non-free amd64 Packages [78.4 kB]
Get:16 http://snapshot.debian.org/archive/debian/20200528 stretch/non-free Translation-en [80.3 kB]
Reading package lists... Done                                                  
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@live:~# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-12-common linux-kbuild-4.9
The following NEW packages will be installed:
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-12-amd64
  linux-headers-4.9.0-12-common linux-kbuild-4.9
0 upgraded, 4 newly installed, 0 to remove and 212 not upgraded.
Need to get 9,911 kB of archives.
After this operation, 52.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 linux-compiler-gcc-6-x86 amd64 4.9.258-1 [756 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 linux-kbuild-4.9 amd64 4.9.258-1 [964 kB]
Get:3 http://snapshot.debian.org/archive/debian/20200528 stretch/main amd64 linux-headers-4.9.0-12-common all 4.9.210-1 [7,741 kB]
Get:4 http://snapshot.debian.org/archive/debian/20200528 stretch/main amd64 linux-headers-4.9.0-12-amd64 amd64 4.9.210-1 [450 kB]
Fetched 9,911 kB in 6s (1,513 kB/s)                                            
Selecting previously unselected package linux-compiler-gcc-6-x86.
(Reading database ... 37246 files and directories currently installed.)
Preparing to unpack .../linux-compiler-gcc-6-x86_4.9.258-1_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.258-1) ...
Selecting previously unselected package linux-headers-4.9.0-12-common.
Preparing to unpack .../linux-headers-4.9.0-12-common_4.9.210-1_all.deb ...
Unpacking linux-headers-4.9.0-12-common (4.9.210-1) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../linux-kbuild-4.9_4.9.258-1_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.258-1) ...
Selecting previously unselected package linux-headers-4.9.0-12-amd64.
Preparing to unpack .../linux-headers-4.9.0-12-amd64_4.9.210-1_amd64.deb ...
Unpacking linux-headers-4.9.0-12-amd64 (4.9.210-1) ...
Setting up linux-headers-4.9.0-12-common (4.9.210-1) ...
Setting up linux-compiler-gcc-6-x86 (4.9.258-1) ...
Setting up linux-kbuild-4.9 (4.9.258-1) ...
Setting up linux-headers-4.9.0-12-amd64 (4.9.210-1) ...
root@live:~# 
root@live:~# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.9.0-12-amd64 is already the newest version (4.9.210-1).
0 upgraded, 0 newly installed, 0 to remove and 212 not upgraded.
root@live:~# 

I will try installing nvidia driver 304 later today....

User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

It looks like you are still trying to install the nvidia driver in FossaDog using Method B.

Fred has given you a way to do it in StretchDog using Method A, which has a greater chance of succeeding.

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

rcrsn51 wrote: Sat May 29, 2021 12:57 am

It looks like you are still trying to install the nvidia driver in FossaDog using Method B.

Fred has given you a way to do it in StretchDog using Method A, which has a greater chance of succeeding.

Hi Bill,
You prob didn't see my last post while posting this...:-)
I'm already onto StretchDog Method A....in progress now...

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

On StretchDog

Code: Select all

root@live:~# apt-get install nvidia-detect
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  nvidia-detect
0 upgraded, 1 newly installed, 0 to remove and 212 not upgraded.
Need to get 197 kB of archives.
After this operation, 252 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/non-free amd64 nvidia-detect amd64 390.138-1 [197 kB]
Fetched 197 kB in 0s (477 kB/s)       
Selecting previously unselected package nvidia-detect.
(Reading database ... 53118 files and directories currently installed.)
Preparing to unpack .../nvidia-detect_390.138-1_amd64.deb ...
Unpacking nvidia-detect (390.138-1) ...
Setting up nvidia-detect (390.138-1) ...
root@live:~# nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G71 [GeForce 7900 GS] [10de:0292] (rev a1)

Checking card:  NVIDIA Corporation G71 [GeForce 7900 GS] (rev a1)
Your card is only supported up to the 304 legacy drivers series.
It is recommended to install the
    nvidia-legacy-304xx-driver
package.
root@live:~# apt-get install nvidia-legacy-304xx-driver
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libgl1-nvidia-legacy-304xx-glx libnvidia-legacy-304xx-glcore
  libnvidia-legacy-304xx-ml1 nvidia-legacy-304xx-alternative
  nvidia-legacy-304xx-driver-bin nvidia-legacy-304xx-driver-libs
  nvidia-legacy-304xx-kernel-dkms nvidia-legacy-304xx-kernel-support
  nvidia-legacy-304xx-vdpau-driver xserver-xorg-video-nvidia-legacy-304xx
Recommended packages:
  nvidia-settings-legacy-304xx nvidia-persistenced
  nvidia-legacy-304xx-driver-libs-i386 libnvidia-legacy-304xx-cfg1
The following NEW packages will be installed:
  libgl1-nvidia-legacy-304xx-glx libnvidia-legacy-304xx-glcore
  libnvidia-legacy-304xx-ml1 nvidia-legacy-304xx-alternative
  nvidia-legacy-304xx-driver nvidia-legacy-304xx-driver-bin
  nvidia-legacy-304xx-driver-libs nvidia-legacy-304xx-kernel-dkms
  nvidia-legacy-304xx-kernel-support nvidia-legacy-304xx-vdpau-driver
  xserver-xorg-video-nvidia-legacy-304xx
0 upgraded, 11 newly installed, 0 to remove and 212 not upgraded.
Need to get 14.7 MB of archives.
After this operation, 83.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-alternative amd64 304.137-5~deb9u1 [68.6 kB]
Get:2 http://deb.debian.org/debian stretch/non-free amd64 libnvidia-legacy-304xx-glcore amd64 304.137-5~deb9u1 [6,210 kB]
Get:3 http://deb.debian.org/debian stretch/non-free amd64 libgl1-nvidia-legacy-304xx-glx amd64 304.137-5~deb9u1 [456 kB]
Get:4 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-driver-libs amd64 304.137-5~deb9u1 [66.9 kB]
Get:5 http://deb.debian.org/debian stretch/non-free amd64 libnvidia-legacy-304xx-ml1 amd64 304.137-5~deb9u1 [189 kB]
Get:6 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-driver-bin amd64 304.137-5~deb9u1 [141 kB]
Get:7 http://deb.debian.org/debian stretch/non-free amd64 xserver-xorg-video-nvidia-legacy-304xx amd64 304.137-5~deb9u1 [2,621 kB]
Get:8 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-vdpau-driver amd64 304.137-5~deb9u1 [811 kB]
Get:9 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-kernel-support amd64 304.137-5~deb9u1 [67.6 kB]
Get:10 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-kernel-dkms amd64 304.137-5~deb9u1 [3,705 kB]
Get:11 http://deb.debian.org/debian stretch/non-free amd64 nvidia-legacy-304xx-driver amd64 304.137-5~deb9u1 [321 kB]
Fetched 14.7 MB in 9s (1,588 kB/s)                                             
Selecting previously unselected package nvidia-legacy-304xx-alternative.
(Reading database ... 53135 files and directories currently installed.)
Preparing to unpack .../00-nvidia-legacy-304xx-alternative_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-alternative (304.137-5~deb9u1) ...
Selecting previously unselected package libnvidia-legacy-304xx-glcore:amd64.
Preparing to unpack .../01-libnvidia-legacy-304xx-glcore_304.137-5~deb9u1_amd64.deb ...
Unpacking libnvidia-legacy-304xx-glcore:amd64 (304.137-5~deb9u1) ...
Selecting previously unselected package libgl1-nvidia-legacy-304xx-glx:amd64.
Preparing to unpack .../02-libgl1-nvidia-legacy-304xx-glx_304.137-5~deb9u1_amd64.deb ...
Unpacking libgl1-nvidia-legacy-304xx-glx:amd64 (304.137-5~deb9u1) ...
Selecting previously unselected package nvidia-legacy-304xx-driver-libs:amd64.
Preparing to unpack .../03-nvidia-legacy-304xx-driver-libs_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-driver-libs:amd64 (304.137-5~deb9u1) ...
Selecting previously unselected package libnvidia-legacy-304xx-ml1:amd64.
Preparing to unpack .../04-libnvidia-legacy-304xx-ml1_304.137-5~deb9u1_amd64.deb ...
Unpacking libnvidia-legacy-304xx-ml1:amd64 (304.137-5~deb9u1) ...
Selecting previously unselected package nvidia-legacy-304xx-driver-bin.
Preparing to unpack .../05-nvidia-legacy-304xx-driver-bin_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-driver-bin (304.137-5~deb9u1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-legacy-304xx.
Preparing to unpack .../06-xserver-xorg-video-nvidia-legacy-304xx_304.137-5~deb9u1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-legacy-304xx (304.137-5~deb9u1) ...
Selecting previously unselected package nvidia-legacy-304xx-vdpau-driver:amd64.
Preparing to unpack .../07-nvidia-legacy-304xx-vdpau-driver_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-vdpau-driver:amd64 (304.137-5~deb9u1) ...
Selecting previously unselected package nvidia-legacy-304xx-kernel-support.
Preparing to unpack .../08-nvidia-legacy-304xx-kernel-support_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-kernel-support (304.137-5~deb9u1) ...
Selecting previously unselected package nvidia-legacy-304xx-kernel-dkms.
Preparing to unpack .../09-nvidia-legacy-304xx-kernel-dkms_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-kernel-dkms (304.137-5~deb9u1) ...
Selecting previously unselected package nvidia-legacy-304xx-driver.
Preparing to unpack .../10-nvidia-legacy-304xx-driver_304.137-5~deb9u1_amd64.deb ...
Unpacking nvidia-legacy-304xx-driver (304.137-5~deb9u1) ...
Setting up nvidia-legacy-304xx-alternative (304.137-5~deb9u1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libnvidia-legacy-304xx-glcore:amd64 (304.137-5~deb9u1) ...
Processing triggers for nvidia-legacy-304xx-alternative (304.137-5~deb9u1) ...
Setting up libnvidia-legacy-304xx-ml1:amd64 (304.137-5~deb9u1) ...
Setting up xserver-xorg-video-nvidia-legacy-304xx (304.137-5~deb9u1) ...
Setting up libgl1-nvidia-legacy-304xx-glx:amd64 (304.137-5~deb9u1) ...
Setting up nvidia-legacy-304xx-vdpau-driver:amd64 (304.137-5~deb9u1) ...
Setting up nvidia-legacy-304xx-kernel-support (304.137-5~deb9u1) ...
Setting up nvidia-legacy-304xx-driver-bin (304.137-5~deb9u1) ...
Setting up nvidia-legacy-304xx-driver-libs:amd64 (304.137-5~deb9u1) ...
Processing triggers for nvidia-legacy-304xx-alternative (304.137-5~deb9u1) ...
Setting up nvidia-legacy-304xx-kernel-dkms (304.137-5~deb9u1) ...
Loading new nvidia-legacy-304xx-304.137 DKMS files...
Building for 4.9.0-12-amd64
Building initial module for 4.9.0-12-amd64
Done.

nvidia-legacy-304xx:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.9.0-12-amd64/updates/dkms/

depmod......

DKMS: install completed.
Setting up nvidia-legacy-304xx-driver (304.137-5~deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for glx-alternative-nvidia (0.8.8~deb9u2) ...
Processing triggers for update-glx (0.8.8~deb9u2) ...
Processing triggers for glx-alternative-nvidia (0.8.8~deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for initramfs-tools (0.130) ...
/boot/initrd.img-4.9.0-3-amd64 does not exist. Cannot update.
root@live:~# 

Not sure if it's successful. (?) /boot/initrd.img-4.9.0-3-amd64 does not exist. Cannot update. is a hickup I hope.
Rebooted and run

Code: Select all

root@live:~# lspci -nnk | grep nvidia
	Kernel modules: nvidia

I don't see nvidia splash screen (during boot time) like I saw in Dell d630 (but then again it's v340 on my Dell D630).
I suspect it's not using nvidia driver yet though...

User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

It looks like it worked.

Open /var/log/Xorg.0.log.

Look for references to nvidia instead of modeset.

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

Eventually, I'm gonna hook it up to a monitor/TV with 1920x1080 res.
But while testing/setting up it's connected to a 1680x1050 monitor.

This is from before nvidia driver install

Code: Select all

root@live:~# xrandr
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 4096 x 4096
DVI-I-1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050     59.95*+
   1600x1200     60.00  
   1400x1050     59.95  
   1280x1024     75.02  
   1440x900      74.98    59.90  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08  
DVI-I-2 disconnected (normal left inverted right x axis y axis)
TV-1 disconnected (normal left inverted right x axis y axis)
root@live:~# 

This is after nvidia driver install. Not liking the after resolution...but we'll see.... :)

Code: Select all

root@live:~# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024      0.00* 
   1024x768       0.00  
   800x600        0.00  
   640x480        0.00  
root@live:~# 

I have attached /var/log/Xorg.0.log both before and after driver install.

Attachments
before-Xorg.0.log
(34.58 KiB) Downloaded 57 times
after-Xorg.0.log
(64.86 KiB) Downloaded 58 times
User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

It did not work. Xorg reverted to VESA.

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

It appears that I have better luck with StretchDog + Method B.

Code: Select all

DVI-I-1 disconnected (normal left inverted right x axis y axis)
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-2 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050     59.95*+
   1600x1200     60.00  
   1440x900      74.98    59.89  
   1400x1050     59.98  
   1280x1024     75.02  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  
DVI-I-3 disconnected (normal left inverted right x axis y axis)
root@live:~# lspci -nnk | grep nvidia
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia
root@live:~# 

I have attached /var/log/Xorg.0.log (after install), could you verify please Bill?

Attachments
Xorg.0.log
(21.71 KiB) Downloaded 48 times
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

I found the driver also installed nvidia setting util GUI.
The screenshot attached pretty much confirmed it.

Attachments
2021-05-29-063319_1680x1050_scrot.png
2021-05-29-063319_1680x1050_scrot.png (445.86 KiB) Viewed 2056 times
User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

Excellent!

User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

@dcung: I was curious why your Method A failed, because it looked close.

So I set up a machine with a GeForce 610M card. I installed the Stretch Starter Kit and used Fred's method to upgrade the kernel to k4.9.0-12-amd64.

I successfully installed the matching kernel headers.

I ran nvidia-detect and it recommended "nvidia-driver".

I installed that and it worked.

The machine rebooted using the Xorg nvidia driver.

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

rcrsn51 wrote: Sat May 29, 2021 6:30 pm

@dcung: I was curious why your Method A failed, because it looked close.
...
The machine rebooted using the Xorg nvidia driver.

I was curious too. I redo the test from scratch (ie. extracted StretchDog from iso again).
Used Fred's method to upgrade the kernel to k4.9.0-12-amd64.
Installed matching kernel headers.
Installed nvidia-detect.
Installed nvidia-legacy-304xx-driver (recommended driver)
Rebooted....and it was successful.

Don't know what I did wrong, but I probably missed something. So, Method A or Method B both are working.
The only difference I can see is that Method A didn't install the GUI utility so I can't take screenshot.
I have attached /var/log/Xorg.0.log too, in case you want to see.

Thank you Bill & Fred for helping.
I'll probably continue fiddling with FossaDog, but at least I have one working solution to retire Windows 10 on this PC.

Code: Select all

root@live:~# lspci -nnk | grep nvidia
	Kernel driver in use: nvidia
	Kernel modules: nvidia
root@live:~# xrandr
Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 4096 x 4096
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-2 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050     59.95*+
   1600x1200     60.00  
   1440x900      74.98    59.89  
   1400x1050     59.98  
   1280x1024     75.02  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  
DVI-I-3 disconnected (normal left inverted right x axis y axis)
root@live:~# 
root@live:~# nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G71 [GeForce 7900 GS] [10de:0292] (rev a1)

Checking card:  NVIDIA Corporation G71 [GeForce 7900 GS] (rev a1)
Your card is only supported up to the 304 legacy drivers series.
It is recommended to install the
    nvidia-legacy-304xx-driver
package.
root@live:~# 



Attachments
Xorg.0.log
(21.71 KiB) Downloaded 42 times
dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

For FossaDog, I know there's nvidia-340 package in repository.
And v340 does not support 7900GS anymore.
Is there v304 package (or older) in FossaDog repository?

dcung
Posts: 360
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 37 times
Been thanked: 49 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by dcung »

I redo FossaDog64 rom scratch with what I know so far.
I also try BusterDog64 just because the interface looks similar to FossaDog64.
I used Fred's method to upgrade kernel-buster-4.19.0-14-amd64.tar.gz and install matching headers.

In summary, these are commands executed on both setup.

Code: Select all

apt-get update
apt-get install linux-headers-$(uname -r)
apt-get install gcc make build-essential gcc-multilib dkms mesa-utils bison flex

Then I used Bill's Method B to install NVIDIA-Linux-x86_64-304.137.run

The result are gibberish...to me... :lol: BusterDog gibberish longer than FossaDog gibberish...

FossaDog64 nvidia-installer.log

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun May 30 08:44:12 2021
installer version: 304.137

PATH: /opt/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer
    -a
    --ui=none
    --no-x-check
    --no-nouveau-check
    -k
    5.4.0-53-generic

Using built-in stream user interface
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1622' of a runnning X server.
-> Continuing per the '--no-x-check' option.
-> License accepted by command line option.
-> Installing NVIDIA driver version 304.137.
-> Not probing for precompiled kernel interfaces.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/5.4.0-53-generic/build'
-> Kernel output path: '/lib/modules/5.4.0-53-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/5.4.0-53-generic/build SYSOUT=/lib/modules/5.4.0-53-generic/build'...
   NVIDIA: calling KBUILD...
   make -f ./Makefile syncconfig
   make -f ./scripts/Makefile.build obj=scripts/basic
   rm -f .tmp_quiet_recordmcount
   make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
     flex -oscripts/kconfig/lexer.lex.c -L scripts/kconfig/lexer.l
     bison -o scripts/kconfig/parser.tab.c --defines=scripts/kconfig/parser.tab.h -t -l scripts/kconfig/parser.y
     gcc -Wp,-MD,scripts/kconfig/.lexer.lex.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89      -I ./scripts/kconfig -c -o scripts/kconfig/lexer.lex.o scripts/kconfig/lexer.lex.c
     gcc -Wp,-MD,scripts/kconfig/.parser.tab.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89      -I ./scripts/kconfig -c -o scripts/kconfig/parser.tab.o scripts/kconfig/parser.tab.c
     gcc -Wp,-MD,scripts/kconfig/.preprocess.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/preprocess.o scripts/kconfig/preprocess.c
     gcc -Wp,-MD,scripts/kconfig/.symbol.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89       -c -o scripts/kconfig/symbol.o scripts/kconfig/symbol.c
     gcc   -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/confdata.o scripts/kconfig/expr.o scripts/kconfig/lexer.lex.o scripts/kconfig/parser.tab.o scripts/kconfig/preprocess.o scripts/kconfig/symbol.o   
   scripts/kconfig/conf  --syncconfig Kconfig
   make -f ./scripts/Makefile.build obj=arch/x86/entry/syscalls all
   make -f ./scripts/Makefile.build obj=scripts/basic
   rm -f .tmp_quiet_recordmcount
   make -f ./scripts/Makefile.build obj=arch/x86/tools relocs
   make[3]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'.  Stop.
   make[2]: *** [arch/x86/Makefile:232: archscripts] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [Makefile:261: module] Error 1
   make: *** [makefile:59: module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.

BusterDog nvidia-installer.log

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun May 30 11:18:48 2021
installer version: 304.137

PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/bin:/usr/local/sbin:/usr/sbin:/sbin

nvidia-installer command line:
    ./nvidia-installer
    -a
    --ui=none
    --no-x-check
    --no-nouveau-check
    -k
    4.19.0-14-amd64

Using built-in stream user interface
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '3112' of a runnning X server.
-> Continuing per the '--no-x-check' option.
-> License accepted by command line option.
-> Installing NVIDIA driver version 304.137.
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
-> Not probing for precompiled kernel interfaces.
-> Performing CC sanity check with CC="cc".
-> Kernel source path: '/lib/modules/4.19.0-14-amd64/source'
-> Kernel output path: '/lib/modules/4.19.0-14-amd64/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/4.19.0-14-amd64/source SYSOUT=/lib/modules/4.19.0-14-amd64/build'...
   NVIDIA: calling KBUILD...
   make -C /lib/modules/4.19.0-14-amd64/build KBUILD_SRC=/usr/src/linux-headers-4.19.0-14-common \
   -f /usr/src/linux-headers-4.19.0-14-common/Makefile modules
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
   echo >&2;							\
   echo >&2 "  ERROR: Kernel configuration is invalid.";		\
   echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
   echo >&2 ;							\
   /bin/false)
   mkdir -p /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/.tmp_versions ; rm -f /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/.tmp_versions/*
   make -f /usr/src/linux-headers-4.19.0-14-common/scripts/Makefile.build obj=/mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel
   (cat /dev/null;   echo kernel//mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nvidia.ko;) > /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/modules.order
     cc -Wp,-MD,/mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/8/include -I/usr/src/linux-headers-4.19.0-14-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.19.0-14-common/include -I./include -I/usr/src/linux-headers-4.19.0-14-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.19.0-14-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.19.0-14-common/include/linux/kconfig.h -include /usr/src/linux-headers-4.19.0-14-common/include/linux/compiler_types.h  -I/mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel -I/mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Werror=return-type -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx 
   -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflo
   w -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=/usr/src/linux-headers-4.19.0-14-common/= -fcf-protection=none -Wno-packed-not-aligned  -I/mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -c -o /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/.tmp_nv.o /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c
   In file included from /usr/src/linux-headers-4.19.0-14-common/include/linux/byteorder/little_endian.h:11,
                    from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/uapi/asm/byteorder.h:5,
                    from /usr/src/linux-headers-4.19.0-14-common/include/asm-generic/bitops/le.h:6,
                    from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/bitops.h:510,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/bitops.h:19,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/kernel.h:11,
                    from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:45,
                    from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/current.h:6,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/sched.h:12,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/utsname.h:6,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:40,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (i = 0; i < len; i++)
                   ^
   /usr/src/linux-headers-4.19.0-14-common/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (i = 0; i < len; i++)
                   ^
   In file included from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/current.h:5,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/sched.h:12,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/utsname.h:6,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:40,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/thread_info.h: In function ‘check_copy_size’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/thread_info.h:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
     if (unlikely(sz >= 0 && sz < bytes)) {
                                ^
   /usr/src/linux-headers-4.19.0-14-common/include/linux/compiler.h:77:42: note: in definition of macro ‘unlikely’
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
   /usr/src/linux-headers-4.19.0-14-common/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   /usr/src/linux-headers-4.19.0-14-common/include/asm-generic/qrwlock.h:75:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘u32’ {aka ‘unsigned int’} [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/compiler.h:76:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-headers-4.19.0-14-common/include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/mmzone.h:990:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/compiler.h:76:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/current.h:6,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/sched.h:12,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/utsname.h:6,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:40,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:183:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:183:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:422:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:183:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:480:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:381:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:183:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:520:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:282:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:520:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:282:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:422:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:520:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:282:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:480:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:381:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:510:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:520:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-refcount.h:282:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   In file included from /usr/src/linux-headers-4.19.0-14-common/include/linux/page_ref.h:7,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/mm.h:26,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:82,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/page-flags.h: In function ‘PagePoisoned’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/page-flags.h:162:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
     return page->flags == PAGE_POISON_PATTERN;
                        ^~
   In file included from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/current.h:6,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/sched.h:12,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/utsname.h:6,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:40,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:423:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:459:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:497:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:499:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:423:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:459:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:497:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:499:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:423:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:459:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:497:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:499:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^~
   /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/percpu.h:471:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:381:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:423:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:459:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:497:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-defs.h:499:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/percpu-rwsem.h:97:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/paravirt.h:17,
                    from /usr/src/linux-headers-4.19.0-14-common/arch/x86/include/asm/irqflags.h:72,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/irqflags.h:16,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/rcupdate.h:39,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/rculist.h:11,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/pid.h:5,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/sched.h:14,
                    from /usr/src/linux-headers-4.19.0-14-common/include/linux/utsname.h:6,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:40,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/cpumask.h:243:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
      (cpu) < nr_cpu_ids;)
            ^
   /usr/src/linux-headers-4.19.0-14-common/include/linux/cpumask.h:778:36: note: in expansion of macro ‘for_each_cpu’
    #define for_each_online_cpu(cpu)   for_each_cpu((cpu), cpu_online_mask)
                                       ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’
     for_each_online_cpu(cpu)
     ^~~~~~~~~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/vmstat.h: In function ‘zone_page_state_snapshot’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/cpumask.h:243:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
      (cpu) < nr_cpu_ids;)
            ^
   /usr/src/linux-headers-4.19.0-14-common/include/linux/cpumask.h:778:36: note: in expansion of macro ‘for_each_cpu’
    #define for_each_online_cpu(cpu)   for_each_cpu((cpu), cpu_online_mask)
                                       ^~~~~~~~~~~~
   /usr/src/linux-headers-4.19.0-14-common/include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’
     for_each_online_cpu(cpu)
     ^~~~~~~~~~~~~~~~~~~
   In file included from /usr/src/linux-headers-4.19.0-14-common/include/linux/efi.h:20,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv-linux.h:193,
                    from /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:13:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’:
   /usr/src/linux-headers-4.19.0-14-common/include/linux/rtc.h:245:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare]
     if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) {
                         ^
   /usr/src/linux-headers-4.19.0-14-common/include/linux/rtc.h:250:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare]
     if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) {
                         ^
   /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c: In function ‘nv_start_rc_timer’:
   /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:3032:5: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
        init_timer(&nvl->rc_timer);
        ^~~~~~~~~~
        init_timers
   /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:3033:28: error: assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Werror=incompatible-pointer-types]
        nvl->rc_timer.function = nv_kern_rc_timer;
                               ^
   /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:3034:18: error: ‘struct timer_list’ has no member named ‘data’
        nvl->rc_timer.data = (unsigned long) nv;
                     ^
   cc1: some warnings being treated as errors
   make[4]: *** [/usr/src/linux-headers-4.19.0-14-common/scripts/Makefile.build:309: /mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel/nv.o] Error 1
   make[3]: *** [/usr/src/linux-headers-4.19.0-14-common/Makefile:1568: _module_/mnt/live/mnt/sda1/Temp/SD/NVIDIA-Linux-x86_64-304.137/kernel] Error 2
   make[2]: *** [Makefile:146: sub-make] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [Makefile:261: module] Error 1
   make: *** [makefile:59: module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.
User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

As the Linux kernel evolves, hardware-related drivers must be constantly updated to remain compatible. This is also true for WiFi drivers, which require recoding by their authors with each major change in the kernel.

It appears that Nvidia made the decision to not spend the considerable time needed to update the Linux drivers for some old products.

Even if you found a patch, it would only apply to a specific kernel.

For the majority of Linux users, the in-kernel nouveau driver will be good enough to keep their old Nvidia machines working. As I explained in another post, I got decent performance using the Xorg framebuffer driver on one such machine. But I'm not trying to run a big-screen TV off it.

User avatar
rcrsn51
Posts: 1191
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 262 times

Re: GeForce 7900GS GPU - nvidia driver install

Post by rcrsn51 »

As a test, I put the new Bullseye Starter Kit k5.10.0-6-amd64 on my Nvidia machine. It runs perfectly well with nouveau.

I then ran Method A. This time, nvidia-detect recommended the legacy-390xx driver. It installed OK and the machine rebooted using the nvidia Xorg driver.

So some old Nvidia cards are still supported by the new kernel. Although I suspect that the legacy-340xx and earlier drivers are now gone from Bullseye.

Post Reply

Return to “UbuntuDogs”