Tiny Core Base > Corepure64
Getting kernel files ready for nvidia proprietary drivers installer
Juanito:
--- Quote from: CardealRusso on May 05, 2023, 08:14:12 AM ---My current difficulty is creating the nvidia tcz. I'm currently trying to keep track of all files created/moved by the installer but it's been an almost impossible task.
--- End quote ---
You could check if nvidia supports the $DESTDIR install method.
..failing that, then:
--- Code: ---touch mymarker
sudo make install
sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files.txt
vi files.txt
--- End code ---
..there will be a few files in files.txt that are obviously not needed and can de removed from the list.
CardealRusso:
--- Quote from: Juanito on May 05, 2023, 11:40:20 AM ---
--- End quote ---
Again, I'd like to thank you for your help, juanito. Not only yours but also everyone present in this topic, as
--- Quote from: curaga on May 05, 2023, 01:39:05 AM ---
--- End quote ---
--- Quote from: aus9 on May 04, 2023, 09:48:20 PM ---
--- End quote ---
--- Quote from: Rich on May 01, 2023, 10:49:35 PM ---
--- End quote ---
The efforts were not in vain. I confess that I had already given up, but when I finally managed to shoot, I dedicated myself.
Today I skipped going to the beach with my friends and dedicated my whole day to doing everything right. I thoroughly analyzed the coreplayer2 nvidia tcz. It took me hours with a headache until I finally discovered that the driver would not load simply because the info file was not in tce.installed. Also many problems regarding file permissions, directories (there are more than 4 directory options for the same file) and so on. tcl x11 tries to load the settings in a totally inappropriate location.
After all, I was successful.
Here it is, the proprietary nvidia driver properly working perfectly. It is possible to upgrade and add to the TCL 14.x repository. Everything is perfect!
nvidia-470.182.03-6.1.2-tinycore64.tcz
About the 5xx driver version. I found it very disrespectful of nvidia. The 525 driver, in addition to being almost twice the size, has a loss of almost half in performance. I think you should use the 525 driver only if it's really necessary.
The 470 driver received its last update in March of this year and will probably not receive any more updates regarding support for new cards, it should only receive security updates.
The only advantage over the 525 driver would be that it is compatible with RTX 40 and onwards video cards.
It took me several days to do something that today I am able to do from scratch in just a few minutes. It is very easy to install and make the tcz, but it still takes a lot of manual work.
CardealRusso:
I will leave driver 525 here for public interest.
I was able to resolve 90% of the driver issues by moving the /usr/lib folder to /usr/local/lib as many Xorg 3d dependencies overlap these nvidia files.
The coreplayer2 driver used /usr/lib (which is default in the installer) and it manually deleted the files created by Xorg 3d via tce.installed, however there are many files, not just 1 file (1 file, 2 symlinks of the same file ) as he used it.
So I found that it would be much easier to move to /usr/local/lib and I had no problems, quite the contrary, many problems were solved.
One of them was DRI2 (DRI2: failed to authenticate (caused on mpv, nvidia-settings and others)) which gave priority to libEGL from /usr/local/lib created by the libEGL.tcz package.
Also the vulkan support is working correctly, in the previous 475 driver it doesn't work because I forgot to embed 4 miserable jsons that are created in /etc by the installer. These files I moved to /usr/local/etc and with that vulkan through the GPU worked perfectly again.
The order of packages is very important, the driver must be placed before Xorg 3D.
Here is the onboot.lst needed for everything to work correctly:
--- Code: ---...
graphics-6.1.2-tinycore64.tcz
nvidia-525.116.04-6.1.2-tinycore64.tcz
vulkan-tools.tcz
--- End code ---
firmware-nvidia.tcz is not required (at least for me)
vulkan-tools.tcz has Xorg 3d as a dependency, so it's unnecessary to mention it
nvidia-525.116.04-6.1.2-tinycore64.tcz
CardealRusso:
Driver version 535.86.05 here: https://drive.google.com/file/d/1foocZjgid_Tt1bJFrCWa8tagelWRFq55/view?usp=drive_link
It was a little painful to get it working because the proprietary kernel refuses to compile in the current version of TinyCore, so the best solution was to use the open source version: https://github.com/NVIDIA/open-gpu-kernel-modules
To work correctly, you need to add nvidia.NVreg_OpenRmEnableUnsupportedGpus=1 in the boot options in grub.cfg, otherwise it won't work.
To get nvenc to work on ffmpeg is also pretty easy, you just need to make & sudo make install https://github.com/FFmpeg/nv-codec-headers and compile current ffmpeg without anything special, as it will be enabled when detected https://github.com/FFmpeg/FFmpeg/
The first run needs to be with sudo in ffmpeg, otherwise it will return an error. subsequent ones don't need sudo.
CardealRusso:
This is probably the most competent I've done so far.
Everything works correctly, without error or warning, as long as I run
--- Quote from: GNUser on August 09, 2019, 09:43:31 AM ---...Try putting this in your ~/.profile (or ~/.xsession or the like), backing up your files, and rebooting:
--- Code: ---export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
--- End code ---
...
--- End quote ---
I identified a symlink problem in the gbm, which may have been responsible for preventing wayland from running? The proprietary kernel apparently (the installer decides between the proprietary and the open-source without any information) was compiled successfully and without problems.
graphics-kernel is required before, libvulkan is recommended after.
https://drive.google.com/file/d/16n6qssVsIe3y2p1QVBZLHX_xBdnPXBUn/view?usp=drive_link
a few prints:
https://imgur.com/a/maOL168
Unfortunately I don't have any buildscript, a lot of manual work.
Navigation
[0] Message Index
[*] Previous page
Go to full version