Logs would be useful, such as /var/log/Xorg.* files and dmesg command output.
For now I can only suggest try build without nvidia-uvm kmod (modified script is in 08-nvidia-340xx-fix branch)
Code: Select all
$ git diff 08-nvidia..08-nvidia-340xx-fix
diff --git a/porteus/5.01/08-nvidia/08-nvidia.PorteusBuild b/porteus/5.01/08-nvidia/08-nvidia.PorteusBuild
index b077991..fa8c302 100755
--- a/porteus/5.01/08-nvidia/08-nvidia.PorteusBuild
+++ b/porteus/5.01/08-nvidia/08-nvidia.PorteusBuild
@@ -191,13 +191,14 @@ else
if [ $MAJORVER -le 340 ]; then
cd kernel
make -j$(nproc) module
- cd uvm
- make -j$(nproc) module
+# cd uvm
+# make -j$(nproc) module
- cd ../..
+# cd ..
+ cd ..
install -D -m0644 kernel/nvidia.ko -t "$PKG/lib/modules/$KERNELVER/kernel/drivers/video"
- install -D -m0644 kernel/uvm/nvidia-uvm.ko -t "$PKG/lib/modules/$KERNELVER/kernel/drivers/video"
+# install -D -m0644 kernel/uvm/nvidia-uvm.ko -t "$PKG/lib/modules/$KERNELVER/kernel/drivers/video"
else
cd kernel
make -j$(nproc) module
If this won't work, then we will check pre-patched installer
https://sourceforge.net/projects/nvidia ... s/340.108/ although it will require further modifying this script (delete patching code, handle downloading/extracting valid installer based on running kernel version, etc...)
By the way I remembered that Rava had made nvidia 340.108 module without nvidia-uvm kmod inside, apparently it worked for him, but it was for 5.4.30 kernel, and Porteus 5.0rc1/2 (and have no 32-bit libs which may cause problems if eg. you want to play 32-bit 3D windows game on wine). I have both this module and suitable kernel for it, so I can share them, but only when anything else fails.
DarthNihilus wrote: ↑03 Oct 2024, 14:20
The only thing that catched my eyes during the build was those lines :
For me it looks like it prints exact command that will be executed, in this case
Code: Select all
test -e include/generated/autoconf.h -a -e include/config/auto.conf
checks if include/generated/autoconf.h and include/config/auto.conf files exists in /usr/src/linux-5.18.8 (and that's the case here), otherwise ( || - two pipes ) it prints "ERROR: Kernel configuration is invalid" message to stderr and triggers failure (/bin/false)