Siduction Forum

Siduction Forum => Announcements / Ankündigungen (DE / EN) => Topic started by: towo on 2019/10/22, 10:37:05

Title: Testing Linux 5.4-rcX
Post by: towo on 2019/10/22, 10:37:05
Ich habe vor wenigen Minuten Kernel 5.4-rc4 in unser Experimental Repo hochgeladen.
Wer mutig ist, sollte diesen Kernel testen, damit wir möglichst vor dem offiziellen Release etwaige Probleme
finden und beheben können.
Bekannt ist:

VBox benötigt einen Patch (https://paste.debian.net/1109102/)
Nvidia 435.21 benötigt einen Patch (http://ix.io/1MRE)
Vmware benötigt Patches (https://github.com/mkubecek/vmware-host-modules)

------------------------------------------------------------------------------------

A few minutes ago I uploaded kernel 5.4-rc4 to our Experimental Repo.
If you are brave, you should test this kernel, so that we can solve any problems before the official release.
and fix it.
Known is: 

VBox needs a patch (https://paste.debian.net/1109102/)
Nvidia 435.21 needs a patch (http://ix.io/1MRE)
Vmware needs patches (https://github.com/mkubecek/vmware-host-modules)
Title: Re: Testing Linux 5.4-rcX
Post by: pjnsmb on 2019/10/23, 14:30:45
I would like to test this kernel but after searching the forum and online I cannot see any proper instructions as to how to apply the patch for nvidia 435.21.


I have tried some of the answers on the forum for various kernel problems but they do not seem to apply to using this patch properly.


After 24 hours of trying I have to admit defeat and realise I need help.


I love to learn about linux, like all of us do, and would be very grateful if a more experienced user has the time to explain the procedure as to how to apply and use the patch properly.


I am sure there are many members of the forum who would also like to learn how to do it but are a little nervous of asking.


thanks in anticipation







Title: Re: Testing Linux 5.4-rcX
Post by: axt on 2019/10/23, 19:07:56
Quote from: pjnsmb
how to apply the patch for nvidia 435.21.

rglinuxtech.com (http://rglinuxtech.com/?p=2620) is the best address for problems with proprietary Nvidia drivers.
Title: Re: Testing Linux 5.4-rcX
Post by: pjnsmb on 2019/10/25, 08:00:28
@axt
thanks for your help


looking at the website you recommended I see the same patch available but cannot see any  instructions as to how to apply the patch, which was my original request.
Title: Re: Testing Linux 5.4-rcX
Post by: axt on 2019/10/25, 08:24:30
catchwords: how to patch nvidia driver linux (https://www.google.com/search?hl=en&tbs=ctr%3AcountryALL&source=hp&q=how+to+patch+nvidia+driver+linux)
Title: Re: Testing Linux 5.4-rcX
Post by: axt on 2019/10/25, 21:00:38
Change the directory:
Code: [Select]
$ cd ~/Downloads/
Leech the proprietary driver nvidia:
Code: [Select]
$ wget http://us.download.nvidia.com/XFree86/Linux-x86_64/435.21/NVIDIA-Linux-x86_64-435.21.run
Extract the driver:
Code: [Select]
$ ./NVIDIA-Linux-x86_64-435.21.run --extract-only
Output:
Code: [Select]
Creating directory NVIDIA-Linux-x86_64-435.21
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 435.21...

Change the directory:
Code: [Select]
$ cd NVIDIA-Linux-x86_64-435.21/
Leech the patch:
Code: [Select]
$ wget http://ix.io/1MRE -O nvidia.patch
Execute the patch:
Code: [Select]
$ patch -p1 < nvidia.patch
Output:
Code: [Select]
patching file kernel/Kbuild
patching file kernel/conftest.sh
patching file kernel/nvidia-drm/nvidia-drm-drv.c

Now you change to a  virtual console (tty). You have to shutdown the display manager, to deinstall an installed nvidia driver and to blacklist nouveau.

Afterwards you could install with root rights in the "NVIDIA-Linux-x86_64-435.21" directory:
Code: [Select]
# ./nvidia-installer
Title: Re: Testing Linux 5.4-rcX
Post by: axt on 2019/10/25, 21:10:01
The other method (a patched .run file will be created) would be more elegant, but does not work ("can't find file to patch at input line 5"):

Code: [Select]
$ ./NVIDIA-Linux-x86_64-435.21.run --apply-patch nvidia.patch
I'm not testing it either (I use nouveau).
Title: Re: Testing Linux 5.4-rcX
Post by: pjnsmb on 2019/10/26, 07:57:16
@axt
@axt

thanks again for your very clear instructions


Having tried them all  I get as far as a screen showing a problem that the kernel is already loaded with nvidia-drm .


I have tried purging all .nvidia packages without success


Trying to use the patch file from this initial post and patch instructions from other instructions on here gives me the same as you - "can't find file to patch at line 5"


I have learned a little more from your posts, and man pages for dkms and patch but have to admit this is above my level of knowledge for linux.


I guess I will wait for an update to nvidia in experimental and a newer Linux 5.4-rcX candidate which hopefully will play together more nicely.

I do try the nouveau driver regularly but it gives me video tearing and an occasional frozen desktop so I return to nvidia .

I am grateful for your help.



#EDIT and UPDATE#

Not wanting to be beaten by the challenge of solving my problem myself I have finally got the patch to work -

In a terminal I used-

#patch -p1  < 5.4x.patch

After "can't find file to patch at line 5"
I had to manually input -

File to patch: /usr/src/nvidia-current-435.21/Kbuild
File to patch: /usr/src/nvidia-current-435.21/conftest.sh
File to patch: /usr/src/nvidia-current-435.21/nvidia-drm/nvidia-drm-drv.c

at each prompt.

I then used -

#dkms build -m nvidia-current -v 435.21 -k 5.4.0-rc4-siduction-amd64

#dkms install -m nvidia-current -v 435.21 -k 5.4.0-rc4-siduction-amd64

for a correct patch and DKMS: build completed.