mmortal03 wrote: ↑19 Sep 2022, 17:02
Would it be possible to convert the nvidia-legacy-390xx-driver deb package to a module to use in Porteus
No, you have to compile the NVidia driver especially for the certain kernel you are using.
That is the reason why I have to use the 5.4.30-porteus kernel since that is the newest kernel I was able to compile the driver 340.108 for.
When you need the 390.??? driver, it must be compiled for the kernel you use (as long as that kernel is supported, if not you have to use an older kernel) If you plan on using a different kernel in the future, you again have to compile the nvidia driver for that different kernel.
At least with the NVidia legacy drivers as distributed as *run files containing the C source code these only work for the very kernel they are compiled under, and not work for any other kernel.
To be able to compile the driver, you need a certain boot configuration that blacklists the generic graphics driver and also includes the stripped kernel sources, as well as 05-devel. And of course the correct Nvidia-driver-390.???.run file (that is a self-extracting archive)
Somewhere there is a thread on
https://forum.porteus.org with a script by blaze that tries to make creating such a driver more easy, but my experience with that script is that it also included stuff not related to the NVidia driver, so I had to extract the resulting module and remove files and folders from it.
That is the main reason why the name of my NVidia driver contains the kernel version as well:
Code: Select all
010-nvidia-340.108-k.5.4.30-porteus-v5.0-x86_64_rava.xzm
Maybe look into the thread (or threads) about me creating the 010-nvidia-340.108-k.5.4.30-porteus-v5.0-x86_64_rava.xzm driver or similar drivers e.g. by donald - hopefully that gives you enough insight on how to compile your own nvidia driver module.
