[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux kernel and nvidia - never ending story



On 08.03.2022 14:40, Hans wrote:
Am Dienstag, 8. März 2022, 00:07:05 CET schrieb Alexander V. Makartsev:
Yes, I am sure, no other version is working. It is GeForce G210 and GeForce
G86m, both NEED 340xx.
In that case, I've never actually tried to do it, but since Debian support for 340xx version is officially EoL, I think it's ok to install officially supported driver¹ from Nvidia.

Or, if you feel adventurous, you can build a backported packages of nvidia legacy 340xx driver from buster-backports. I've always used parts of this guide² and had successfully build packages from source³ package and DKMS module was also build successfully during package installation.
You can get source package using "dget":
    $ dget http://deb.debian.org/debian/pool/non-free/n/nvidia-graphics-drivers-legacy-340xx/nvidia-graphics-drivers-legacy-340xx_340.108-10~bpo10+1.dsc

No code patches were made by me, except changing "changelog" file via 'dch' and bumping up version numbers.

    $ uname -a
Linux hostname 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux

=============8<=============8<=============8<=============8<=============
...
Setting up nvidia-legacy-340xx-kernel-dkms (340.108-10~bpo11+1) ...
Loading new nvidia-legacy-340xx-340.108 DKMS files...
Building for 5.10.0-11-amd64
Building initial module for 5.10.0-11-amd64
Done.

nvidia-legacy-340xx.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-11-amd64/updates/dkms/

nvidia-legacy-340xx-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-11-amd64/updates/dkms/

depmod....

DKMS: install completed.
...
=============8<=============8<=============8<=============8<=============

Here is listing of all build packages for amd64 arch:
=============8<=============8<=============8<=============8<=============
$ ls -1
libegl1-nvidia-legacy-340xx_340.108-10~bpo11+1_amd64.deb
libgl1-nvidia-legacy-340xx-glx_340.108-10~bpo11+1_amd64.deb
libgles1-nvidia-legacy-340xx_340.108-10~bpo11+1_amd64.deb
libgles2-nvidia-legacy-340xx_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-cfg1_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-compiler_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-cuda1_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-eglcore_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-encode1_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-fbc1_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-glcore_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-ifr1_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-ml1_340.108-10~bpo11+1_amd64.deb
libnvidia-legacy-340xx-nvcuvid1_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-alternative_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-driver_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-driver-bin_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-driver-libs_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-kernel-dkms_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-kernel-source_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-kernel-support_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-opencl-icd_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-smi_340.108-10~bpo11+1_amd64.deb
nvidia-legacy-340xx-vdpau-driver_340.108-10~bpo11+1_amd64.deb
xserver-xorg-video-nvidia-legacy-340xx_340.108-10~bpo11+1_amd64.deb
=============8<=============8<=============8<=============8<=============

Same listing is for i386 arch too.
To build 32-bit packages the process essentially the same, but you (AFAIK still) have to do it under 32-bit environment (chroot, lxc/lxd container, VM, etc).

I didn't tested this build on actual hardware yet, but it looks promising to me.
Good luck.


¹ https://www.nvidia.co.uk/Download/driverResults.aspx/156193/en-uk
² https://wiki.debian.org/SimpleBackportCreation
³ https://packages.debian.org/buster-backports/nvidia-legacy-340xx-kernel-dkms

--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀


Reply to: