[HOWTO] make a xzm module driver for NVIDIA video card

Post tutorials, HOWTO's and other useful resources here.
S4m4n
Black ninja
Black ninja
Posts: 34
Joined: 25 Mar 2020, 18:18
Distribution: Porteus4 X64 Mate,Trying 5 rc1

[HOWTO] make a xzm module driver for NVIDIA video card

Post#91 by S4m4n » 31 Mar 2020, 20:26

Dear Rava,
I knew that you have that driver prepared. But since I have accomplished nvidia driver installation on other distros I thought that I can handle it on porteus too.
It is a mystery to me that despite I took the same kernel, devel, initrd, vmlinuz from you on same distro and followed the same steps explained on your guide, The final result was disappointing. you are probably a wizard :magic: Now your provided driver is working smoothly:
https://imgur.com/a/QKKE60E

Thanks for your help.

User avatar
Rava
Contributor
Contributor
Posts: 2480
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 5.0rc1 x86-64 XFCe
Location: Forests of Germany

[HOWTO] make a xzm module driver for NVIDIA video card

Post#92 by Rava » 01 Apr 2020, 02:41

S4m4n wrote:
31 Mar 2020, 20:26
It is a mystery to me that despite I took the same kernel, devel, initrd, vmlinuz from you on same distro and followed the same steps explained on your guide, The final result was disappointing. you are probably a wizard :magic: Now your provided driver is working smoothly:
I am sure no wizard. If I were I would able to successfully compile NVIDIA-Linux-x86_64-304.137.run using the same kernel.
But I cannot, and the reason being that they stopped supporting 304.x a while ago; donald explained above why:
donald wrote:
29 Mar 2020, 18:44
The 304 driver is out of support.
AFAIK it is not possible getting it to run on a system since xorg-server 1.20
Porteus 4 with xorg 1.19 will be the last one.

nvidia-304.137-kernel 4.16.3-x86_64 (porteus 4)
(built without the 32-bit libraries.)
http://filehorst.de/d/cjsidhnG
_______________________________________________

@donald
Would it make sense to tweak Porteus 5.0rc1 into using kernel 4.16.3 and xorg-server 1.19?
How could that be done? I presume I would have at least alter 002-xorg.xzm.
Maybe I would also have to alter 000-kernel.xzm and 001-core.xzm.
Has anyone ever done this before?

BTW, I already am using the above for Porteus 4.0 as seen by the filename and the md5sum:

Code: Select all

424afaeeacbe727398306ccfca66cae6  /mnt/sda1/Porteus_4.0/porteus/base/010-nvidia-304.137-k.4.16.3-x86_64-don.xzm
CAVE! The discussion about downgrading Xorg to 1.19 was split and moved here:
[HOWTO] downgrade Xorg to 1.19 (Post by donald #76696)
Please reply about that topic in the thread linked above.
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 2480
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 5.0rc1 x86-64 XFCe
Location: Forests of Germany

[HOWTO] make a xzm module driver for NVIDIA video card

Post#93 by Rava » 06 Apr 2020, 16:43

Blaze, I tried compiling the NV driver V340.108 for 5.0rc1-pre-rc2 and your kernel 5.4.30. I also used your 05-devel:

Code: Select all

bda976e458a5762b461a22b239ae804a  05-devel_blaze_2020-04-04_gcc-9.3.0.xzm
These are the reasons it failed:

Code: Select all

-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; /usr/bin/make clean'...
   /usr/bin/make: error while loading shared libraries: libguile-3.0.so.1: cannot open shared object file: No such file or directory
-> Building NVIDIA kernel module:
   executing: 'cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/5.4.30-porteus/source SYSOUT=/lib/modules/5.4.30-porteus/build NV_BUILD_MODULE_INSTANCES='...
   /usr/bin/make: error while loading shared libraries: libguile-3.0.so.1: cannot open shared object file: No such file or directory
-> 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.
Do you have any idea why that failed?

Your 05-devel and the 000-kernel.xzm should work together, or not?

000-kernel.xzm md5sum is d33c33ba339f0a94844dd73e6749daee. But it should be okay since the kernel tar archive md5sum was okay.

And Porteus usually refuses to activate a corrupted module.
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 864
Joined: 02 Jan 2011, 11:33
Location: italy

[HOWTO] make a xzm module driver for NVIDIA video card

Post#94 by beny » 06 Apr 2020, 18:23

see your devel package if the guile version match what make want to build driver.

User avatar
Rava
Contributor
Contributor
Posts: 2480
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 5.0rc1 x86-64 XFCe
Location: Forests of Germany

[HOWTO] make a xzm module driver for NVIDIA video card

Post#95 by Rava » 06 Apr 2020, 18:28

beny wrote:
06 Apr 2020, 18:23
see your devel package if the guile version match what make want to build driver.
I asked Blaze, who made the kernel tar ( containing crippled_sources-5.4.30-64bit.xzm - vmlinuz - 000-kernel.xzm ), which 05-devel package to use and he told me the one I used is the correct one.

Therefore I addressed the question to him…
Cheers!
Yours Rava

User avatar
Blaze
DEV Team
DEV Team
Posts: 2946
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

[HOWTO] make a xzm module driver for NVIDIA video card

Post#96 by Blaze » 07 Apr 2020, 17:27

Rava, in my Slackware-current base I have this package

Code: Select all

# ls /var/lib/pkgtools/packages/*guile*
/var/lib/pkgtools/packages/guile-3.0.2-x86_64-1
guile is not a part of devel package

Code: Select all

# ls /mnt/sdb1/porteus/base/001-core/var/lib/pkgtools/packages/*guile*
/mnt/sdb1/porteus/base/001-core/var/lib/pkgtools/packages/guile-3.0.2-x86_64-1
001-core :happy62:

You can download it manually http://slackware.cs.utah.edu/pub/slackw ... 6_64-1.txz
Linux 5.4.57-porteus #1 SMP Sun Aug 9 09:03:28 UTC 2020 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

beny
Full of knowledge
Full of knowledge
Posts: 864
Joined: 02 Jan 2011, 11:33
Location: italy

[HOWTO] make a xzm module driver for NVIDIA video card

Post#97 by beny » 07 Apr 2020, 18:26

hi blaze /root/slackware/slackware64-current/slackware64/d/guile-3.0.2-x86_64-1.txt better to adds to devel package.....

User avatar
Rava
Contributor
Contributor
Posts: 2480
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 5.0rc1 x86-64 XFCe
Location: Forests of Germany

[HOWTO] make a xzm module driver for NVIDIA video card

Post#98 by Rava » 09 Apr 2020, 17:51

Cheers!
Yours Rava

Post Reply