seduction
 Language:
Welcome, Guest. Please login or register.
Did you miss your activation email?
2019/12/10, 23:35:19


Help

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Testing Linux 5.4-rcX  (Read 2238 times)

0 Members and 1 Guest are viewing this topic.

Offline towo

  • Global Moderator
  • User
  • *****
  • Posts: 2.308
Testing Linux 5.4-rcX
« 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
Nvidia 435.21 benötigt einen Patch
Vmware benötigt Patches

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

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
Nvidia 435.21 needs a patch
Vmware needs patches
« Last Edit: 2019/10/22, 17:51:55 by towo »
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline pjnsmb

  • User
  • Posts: 61
Re: Testing Linux 5.4-rcX
« Reply #1 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







regards
pjnsmb

Offline axt

  • User
  • Posts: 337
    • axebase.net
Re: Testing Linux 5.4-rcX
« Reply #2 on: 2019/10/23, 19:07:56 »
Quote from: pjnsmb
how to apply the patch for nvidia 435.21.

rglinuxtech.com is the best address for problems with proprietary Nvidia drivers.

Offline pjnsmb

  • User
  • Posts: 61
Re: Testing Linux 5.4-rcX
« Reply #3 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.
regards
pjnsmb

Offline axt

  • User
  • Posts: 337
    • axebase.net
Re: Testing Linux 5.4-rcX
« Reply #4 on: 2019/10/25, 08:24:30 »
« Last Edit: 2019/10/25, 21:00:33 by axt »

Offline axt

  • User
  • Posts: 337
    • axebase.net
Re: Testing Linux 5.4-rcX
« Reply #5 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
« Last Edit: 2019/10/25, 21:18:38 by axt »

Offline axt

  • User
  • Posts: 337
    • axebase.net
Re: Testing Linux 5.4-rcX
« Reply #6 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).
« Last Edit: 2019/10/25, 21:13:28 by axt »

Offline pjnsmb

  • User
  • Posts: 61
Re: Testing Linux 5.4-rcX
« Reply #7 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.



« Last Edit: 2019/10/27, 16:17:54 by pjnsmb »
regards
pjnsmb