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

Post tutorials, HOWTO's and other useful resources here.
User avatar
Blaze
DEV Team
DEV Team
Posts: 3882
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#136 by Blaze » 20 Dec 2022, 04:58

rych, well, don't remove glibc-2.35
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3933
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

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

Post#137 by ncmprhnsbl » 20 Dec 2022, 06:08

rych wrote:
19 Dec 2022, 13:20
An interesting thread on compatibility of NVidia drivers with 6.0 kernels: https://forums.developer.nvidia.com/t/4 ... l/229735/4
Basically, I might have to apply a patch. But anyway, I'm not even getting to that stage, at the moment my porteus doesn't pass NVidia's "CC sanity check"
pretty sure the latest 470.161 release doesn't need to patched for 6.* kernels any more.. and the 5.25 series for newish cards is fine too..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

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

Post#138 by Rava » 25 Dec 2022, 05:55

Working on creating the NV driver 340.108 for kernel 6.1.1, will use the *run as provided by beny.
Since Blaze wrote
Blaze wrote:
24 Dec 2022, 10:50
Note 1: Compiler that was used.
for kernel 6.1.1: 11.2.0-x86_64
and that is the very same version as in the 05-devel module of Porteus 5.0:

Code: Select all

root@porteus:/mybin/linux/porteus/5.0/x86-64# md5sum 05-devel.xzm 
4ad2c0217ec914cb02aab3b77fd55fe5  05-devel.xzm
root@porteus:/mybin/linux/porteus/5.0/x86-64# mloop 05-devel.xzm
using /dev/loop11

Please wait while I gather some info ....


 Nothing is mounted in /mnt/loop.



 #################################
 Your module has been mounted at: 
/mnt/loop

 You can unmount it by typing uloop

 Here is a list of the files:
etc  lib  lib64  usr  var

root@porteus:/mybin/linux/porteus/5.0/x86-64# /mnt/loop/usr/bin/cc --version
cc (GCC) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
all should be ready to set up the compile-boot with kernel 6.1.1, with its 000-kernel.xzm and its 06-crippled_sources-6.1.1-64bit.xzm and of course the generic blacklist module, and of course boot into mode 3 (text mode, virtual terminal mode)

Or am I still missing things?
Cheers!
Yours Rava

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

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

Post#139 by beny » 25 Dec 2022, 17:45

when you have to use save-changes script to save the nvidia package is better that you do this task on a clean system to reduce to add files that isn't for the nvidia driver,but i can go wrong on this....

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

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

Post#140 by Rava » 25 Dec 2022, 19:15

^
you are correct, aside from the needed modules as named above I think I will only load 000- 001- and 002- modules.
not even any 003- should be needed since you cannot and should not startx prior the compilation of the driver for NVIDIA GPU.
Cheers!
Yours Rava

i3slkiller
Black ninja
Black ninja
Posts: 41
Joined: 03 Feb 2020, 18:51
Distribution: Porteus XFCE v5.0rc2 x86_64
Location: Poland

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

Post#141 by i3slkiller » 26 Mar 2024, 20:43

I wrote the script which builds nvidia driver module unattendedly https://gitlab.com/i3slkiller/porteusbu ... type=heads
I need to know from nvidia card owners if this module (not) works (no, I don't have nvidia card).

User avatar
Blaze
DEV Team
DEV Team
Posts: 3882
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#142 by Blaze » 30 Mar 2024, 14:20

i3slkiller, I don't have NVIDIA card too, but your script looks very nice.

Thanks.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#143 by Ed_P » 30 Mar 2024, 15:14

i3slkiller wrote:
26 Mar 2024, 20:43
I wrote the script which builds nvidia driver module unattendedly https://gitlab.com/i3slkiller/porteusbu ... type=heads
I don't have a NVIDIA card either and when I went to your link nothing I clicked on downloaded it. :wall: Do I have to be a gitlab member to download files?
Ed

i3slkiller
Black ninja
Black ninja
Posts: 41
Joined: 03 Feb 2020, 18:51
Distribution: Porteus XFCE v5.0rc2 x86_64
Location: Poland

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

Post#144 by i3slkiller » 30 Mar 2024, 15:19

Ed_P wrote:
30 Mar 2024, 15:14
Do I have to be a gitlab member to download files?
No.
Image

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#145 by Ed_P » 31 Mar 2024, 05:27

Thank you for the picture i3slkiller.

For others that come this way it should be noted the image posted is what displays when the Code v button in the upper right hand corner is pressed.
Ed

Post Reply