Skip to content

Instantly share code, notes, and snippets.

View vejeta's full-sized avatar
🎯
Focusing

Juan Manuel Méndez Rey vejeta

🎯
Focusing
View GitHub Profile
@vejeta
vejeta / nvidia-340xx-fix-linux-6.14.0.patch
Created March 28, 2025 00:00
Tentative patch for nvidia-340xx for Linux Kernel 6.14.x in Debian
--- nvidia-legacy-340xx-340.108/nv-drm.c 2025-03-28 00:40:02.145469312 +0100
+++ b/nv-drm.c 2025-03-28 00:32:41.586697382 +0100
@@ -198,7 +198,10 @@
.name = "nvidia-drm",
.desc = "NVIDIA DRM driver",
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0)
+ // Rel. commit. "drm: remove driver date from struct drm_driver and all drivers" (Jani Nikula, 4 Dec 2024)
.date = "20150116",
+#endif
@vejeta
vejeta / rtl8192eu-fix-linux-6.13.0.patch
Last active January 24, 2025 23:50
Tentative fix for rtl8192eu driver for Linux Kernel 6.13.x in Debian
From b9f21a6ff209edc220b2fc4ca610eb54595f218d Mon Sep 17 00:00:00 2001
From: Franz Eitzinger <[email protected]>
Date: Mon, 2 Dec 2024 22:51:54 +0100
Subject: [PATCH] Adapt to Kernel 6.13.0
Pass net_device to .set_monitor_channel
---
os_dep/linux/ioctl_cfg80211.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@vejeta
vejeta / broadcom-sta-fix-linux-6.12.1.patch
Last active December 31, 2024 21:20
Tentative fix for broadcom-sta-dkms 6.30.223.271-24 module for Linux 6.12.1
--- broadcom-sta-6.30.223.271/src/wl/sys/wl_linux.c
+++ b/src/wl/sys/wl_linux.c
59c59
< #include <asm/unaligned.h>
---
> #include <linux/unaligned.h>
@vejeta
vejeta / nvidia-340xx-fix-linux-6.10.4.patch
Created August 12, 2024 20:43
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-21 module for Linux 6.10.4
--- nvidia-legacy-340xx-340.108/conftest.sh 2024-08-12 22:17:58.885145704 +0200
+++ b/conftest.sh 2024-08-12 22:20:26.971071281 +0200
@@ -197,7 +197,8 @@
build_cflags() {
BASE_CFLAGS="-O2 -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM \
+-Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"
@vejeta
vejeta / gist:4c1cf3f7d5f92bf59a2f088b689940b8
Created June 4, 2024 22:06
Tentative fix for rtl8192eu-1.0 DKMS source for Linux 6.9 (Debian)
From: Juan Manuel Méndez Rey <[email protected]>
Date: Mon, 04 June 2024 23:58:30 +0000
Subject: [PATCH] Tentative fix for rtl8192eu-1.0 DKMS source for Linux 6.9
--- a/os_dep/linux/ioctl_cfg80211.c 2024-06-04 22:53:56.300912246 +0200
+++ b/os_dep/linux/ioctl_cfg80211.c 2024-06-04 23:40:49.117002360 +0200
@@ -459,10 +459,10 @@
,0
#endif
,0
@vejeta
vejeta / nvidia-340xx-fix-linux-6.5.patch
Created September 18, 2023 20:18
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-19 module for Linux 6.5.x
From: Juan Manuel Méndez Rey <[email protected]>
Date: Mon, 18 Sep 2023 22:18:30 +0000
Subject: [PATCH] Tentative fix for NVIDIA 340.108 DKMS source for Linux 6.5
--- nvidia-legacy-340xx-340.108/nv-linux.h 2019-12-11 23:04:24.000000000 +0100
+++ b/nv-linux.h 2023-09-18 21:41:04.512972716 +0200
@@ -2093,7 +2093,24 @@ static inline NvU64 nv_node_end_pfn(int
*
*/
@vejeta
vejeta / nvidia-340xx-fix-linux-6.3.patch
Created May 16, 2023 12:43
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-18 module for Linux 6.3.x
unchanged:
--- a/nv-mmap.c 2023-05-16 13:39:04.867479247 +0200
+++ b/nv-mmap.c 2023-05-16 13:47:10.858833967 +0200
@@ -312,7 +312,7 @@ int nvidia_mmap(
goto done;
}
- vma->vm_flags |= VM_IO;
+ vm_flags_set(vma, VM_IO);
}
@vejeta
vejeta / nvidia-340xx-fix-linux-6.2.patch
Created March 13, 2023 15:05
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-17 module for Linux 6.2.x
From: Juan Manuel Méndez Rey <[email protected]>
Date: Mon, 13 Mar 2023 15:49:30 +0000
Subject: [PATCH] Tentative fix for NVIDIA 340.108 DKMS source for Linux 6.2
Credit goes to Joan Bruguera <[email protected]> for the inspiration patch:
"Tentative fix for NVIDIA 470.161.03 driver for Linux 6.2"
---
nv-acpi.c | 19 ++++++++++++++++---
name: tempchromecsrffix
version: 0.1.0
patches:
openedx-lms-production-settings: |
DCS_SESSION_COOKIE_SAMESITE = 'Lax'
openedx-cms-production-settings: |
DCS_SESSION_COOKIE_SAMESITE = 'Lax'
@vejeta
vejeta / cucumber_scala_emacs.md
Last active February 28, 2016 04:13
Tests with Cucumber, and Support with Scala, SBT and Emacs

Introduction

When I first heard about cucumber, it was in a emacs related post (http://www.47deg.com/blog/scala-development-with-emacs)

There, ldeck asked about using cucumber-scala with emacs... and then after some time I started the research about cucumber.

Let's learn a bit about Cucumber