I have managed to compile the 304.137 on Linux DevStation_464f34925507 5.10.89TS #1 SMP PREEMPT Sat Jan 1 16:14:12 UTC 2022 x86_64 Common KVM processor AuthenticAMD GNU/Linux
Thinstation 6.2.13, so far so good now it remains to be seen how to downgrade x-server to 1.19. Hopefully I will have my Dell M90 with a FX2500M 4G mem playing fortnite on windows with accellerated graphics as a thin client anytime real soon
, one thing failed in the build when linking. ERROR: file .nv-kernel.o.cmd not found
I simply just touched the file in $NVIDIA/kernel/
Remains to be seen if it worked when I can test the kernel module on physical hardware.
Many thanks for your effort JayByrd!
The patches I applied, were
[root@TS_chroot]/ts/ports/opt/nvidia_304_137# ls *.patch
0002-pud-offset-4.12.patch 0015-ioctl32-5.9.patch
0003-nvidia-drm-pci-init-4.14.patch 0016-get-user-pages-5.9.patch
0004-timer-4.15.patch 0017-conftest-headers.patch
0005-usercopy-4.16.patch 0018-vmalloc-5.8.patch
0006-do_gettimeofday-5.0.patch 0019-flush-tlb-5.8.patch
0007-subdirs-5.3.patch 0020-license-5.9.patch
0008-on-each-cpu-5.3.patch 0021-get-user-pages-4.4.168.patch
0010-proc-ops-5.6.patch 0022-kmap_types-5.11.patch
0011-compile-tests-5.6.patch 0023-task_struct_state-5.14.patch
0012-compile-tests-5.7.patch 0024-stdarg-5.16.patch
0013-nv-mlock-5.8.patch 0025-pde-data-5.17.patch
and this one (specific for Thinstation)
--- Makefile.kbuild 2022-02-21 21:41:07.049849296 +0000
+++ Makefile.kbuild.orig 2022-02-21 21:43:01.152849296 +0000
@@ -216,7 +216,7 @@
endif
KBUILD_PARAMS += KBUILD_VERBOSE=$(NV_VERBOSE)
-KBUILD_PARAMS += -C $(KERNEL_SOURCES) SUBDIRS=$(PWD)
+KBUILD_PARAMS += -C $(KERNEL_SOURCES) M=$(PWD)
KBUILD_PARAMS += ARCH=$(ARCH)
#
@@ -226,10 +226,10 @@
.PHONY: suser-sanity-check rmmod-sanity-check build-sanity-checks
suser-sanity-check:
- @if ! $(CONFTEST) suser_sanity_check; then exit 1; fi
+ #@if ! $(CONFTEST) suser_sanity_check; then exit 1; fi
rmmod-sanity-check:
- @if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi
+ #@if ! $(CONFTEST) rmmod_sanity_check; then exit 1; fi
build-sanity-checks:
@if ! $(CONFTEST) cc_version_check full_output; then exit 1; fi
@@ -257,9 +257,9 @@
#
module-install: suser-sanity-check module
- @mkdir -p $(MODULE_ROOT)/video; \
- install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
- PATH="$(PATH):/bin:/sbin" depmod -ae;
+ #@mkdir -p $(MODULE_ROOT)/video; \
+ #install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
+
#
# This target builds, then installs, then creates device nodes and inserts
@@ -267,8 +267,8 @@
#
package-install: module-install rmmod-sanity-check
- @PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
- echo "$(MODULE_OBJECT) installed successfully.";
+ #@PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
+ #echo "$(MODULE_OBJECT) installed successfully.";
#
# Build an object file suitable for further processing by the installer