philmmanjaro / nvidia-340xx-dkms Goto Github PK
View Code? Open in Web Editor NEWNVIDIA driver sources for linux, 340xx legacy branch
NVIDIA driver sources for linux, 340xx legacy branch
Prerequisite: Patches up to 5.15 from AUR (https://aur.archlinux.org/packages/nvidia-340xx-dkms/).
These have to be included in the PKGBUILD the usual way, by amending the source() and bsums() arrays as well as the patch section.
The patch for kernel 5.15 from AUR, unfortunately, has DOS instead of Unix line breaks which causes patch
to spit out a warning
(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-drm.c
patch unexpectedly ends in middle of line
It appears to be merely cosmetically but can be removed by converting the line breaks
echo "$(tr -d '\r' < 0007-kernel-5.15.patch)" > 0007-kernel-5.15.patch
For kernel 5.16, it looks like there is not a lot to be done in addition:
--- a/kernel/nv.h 2022-01-03 17:06:46.101301755 +0100
+++ b/kernel/nv.h 2022-01-03 17:06:57.357726949 +0100
@@ -13,7 +13,7 @@
#define _NV_H_
#include <nvtypes.h>
-#include <stdarg.h>
+#include <linux/stdarg.h>
#if !defined(NV_MIN)
#define NV_MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))
--- a/kernel/os-interface.h 2022-01-03 17:04:38.890696020 +0100
+++ b/os-interface.h 2022-01-03 17:04:54.263699866 +0100
@@ -24,7 +24,7 @@
* *
\***************************************************************************/
-#include <stdarg.h>
+#include <linux/stdarg.h>
/*
* Define away Microsoft compiler extensions when possible
Finally, we need the usual ABI check workaround:
Section "ServerFlags"
Option "IgnoreABI" "true"
EndSection
And that's already all I had to do to get that driver working with kernel 5.16 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.