Initial Commit
- initial default booting image
This commit is contained in:
1637
package/rtl8812au-aircrack-ng/0001-fix-build-for-kernel-6.15.patch
Normal file
1637
package/rtl8812au-aircrack-ng/0001-fix-build-for-kernel-6.15.patch
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,34 @@
|
||||
From de764c6b43fef79bdea8783232a89d2e8ff0e059 Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
Date: Fri, 15 Aug 2025 23:48:33 +0200
|
||||
Subject: [PATCH] fix build for kernel 6.16
|
||||
|
||||
With commit:
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=41cb08555c4164996d67c78b3bf1c658075b75f1
|
||||
from_timer() has been renamed to timer_container_of() so let's rename
|
||||
according to linux version >= 6.16
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/rtl8812au/pull/1236
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
---
|
||||
include/osdep_service_linux.h | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h
|
||||
index 4c276f6..9f9a317 100644
|
||||
--- a/include/osdep_service_linux.h
|
||||
+++ b/include/osdep_service_linux.h
|
||||
@@ -355,7 +355,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
|
||||
static inline void timer_hdl(unsigned long cntx)
|
||||
#endif
|
||||
{
|
||||
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
|
||||
+ _timer *ptimer = timer_container_of(ptimer, in_timer, timer);
|
||||
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
|
||||
_timer *ptimer = from_timer(ptimer, in_timer, timer);
|
||||
#else
|
||||
_timer *ptimer = (_timer *)cntx;
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
From dfbeaa319808624c367200739a9a6f7fbc4b8281 Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
Date: Wed, 8 Oct 2025 17:56:52 +0200
|
||||
Subject: [PATCH] Fix build for kernel 6.17
|
||||
|
||||
With commit:
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b74947b4f6ff7c122a1bb6eb38bb7ecfbb1d3820
|
||||
set_wiphy_params() and set/get_tx_power() gain argument radio_idx to get
|
||||
radio index. So let's add that argument according to linux version >=
|
||||
6.17.
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/rtl8812au/pull/1238
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
---
|
||||
os_dep/linux/ioctl_cfg80211.c | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
|
||||
index ec47e95..3d834a4 100644
|
||||
--- a/os_dep/linux/ioctl_cfg80211.c
|
||||
+++ b/os_dep/linux/ioctl_cfg80211.c
|
||||
@@ -3365,7 +3365,12 @@ exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
||||
+static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, int radio_idx,
|
||||
+ u32 changed)
|
||||
+#else
|
||||
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
||||
+#endif
|
||||
{
|
||||
#if 0
|
||||
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
|
||||
@@ -4267,6 +4272,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
||||
struct wireless_dev *wdev,
|
||||
#endif
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
||||
+ int radio_idx,
|
||||
+#endif
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
enum nl80211_tx_power_setting type, int mbm)
|
||||
#else
|
||||
@@ -4328,6 +4336,9 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
||||
struct wireless_dev *wdev,
|
||||
#endif
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
||||
+ int radio_idx,
|
||||
+#endif
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
|
||||
unsigned int link_id,
|
||||
#endif
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From f17facc866cb36bc889f873beb36e7991fa5e71c Mon Sep 17 00:00:00 2001
|
||||
From: Christian Stewart <christian@aperture.us>
|
||||
Date: Sat, 14 Mar 2026 14:53:48 -0700
|
||||
Subject: [PATCH] Fix build for kernel 6.19
|
||||
|
||||
With kernel 6.19 and CONFIG_X86_KERNEL_IBT or CONFIG_KLP_BUILD enabled,
|
||||
objtool runs on the linked module object (delayed objtool via --link).
|
||||
The module Makefile passes --strip-all to ld -r, which strips local
|
||||
function symbols. Without these symbols, objtool cannot determine
|
||||
function boundaries and reports errors like:
|
||||
|
||||
88XXau.o: warning: objtool: rtw_mp_cmd+0xf8: unannotated intra-function call
|
||||
|
||||
Replace --strip-all with --strip-debug to preserve function symbols
|
||||
while still stripping debug information, allowing objtool to properly
|
||||
validate the linked module object.
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/rtl8812au/commit/f17facc866cb36bc889f873beb36e7991fa5e71c
|
||||
Signed-off-by: Christian Stewart <christian@aperture.us>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
ccflags-y += -I$(src)/include -I$(srctree)/$(src)/include
|
||||
ccflags-y += -I$(src)/hal/phydm -I$(srctree)/$(src)/hal/phydm
|
||||
-ldflags-y += --strip-all -O3
|
||||
+ldflags-y += --strip-debug -O3
|
||||
|
||||
########################## WIFI IC ############################
|
||||
CONFIG_RTL8812A = y
|
||||
--
|
||||
2.50.1 (Apple Git-155)
|
||||
12
package/rtl8812au-aircrack-ng/Config.in
Normal file
12
package/rtl8812au-aircrack-ng/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
comment "rtl8812au-aircrack-ng needs a Linux kernel to be built"
|
||||
depends on !BR2_s390x
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
config BR2_PACKAGE_RTL8812AU_AIRCRACK_NG
|
||||
bool "rtl8812au-aircrack-ng"
|
||||
depends on !BR2_s390x
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
rtl8812au wifi driver (aircrack-ng repository)
|
||||
|
||||
https://github.com/aircrack-ng/rtl8812au
|
||||
3
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash
Normal file
3
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 d4a1435e29bf4a46a4b0b31cad91f30bb263a899b382f828125437dce3cb4bae rtl8812au-aircrack-ng-c3fb89a2f7066f4bf4e4d9d85d84f9791f14c83e.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
|
||||
35
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk
Normal file
35
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# rtl8812au-aircrack-ng
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RTL8812AU_AIRCRACK_NG_VERSION = c3fb89a2f7066f4bf4e4d9d85d84f9791f14c83e
|
||||
RTL8812AU_AIRCRACK_NG_SITE = $(call github,aircrack-ng,rtl8812au,$(RTL8812AU_AIRCRACK_NG_VERSION))
|
||||
RTL8812AU_AIRCRACK_NG_LICENSE = GPL-2.0
|
||||
RTL8812AU_AIRCRACK_NG_LICENSE_FILES = LICENSE
|
||||
|
||||
RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS = \
|
||||
-DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \
|
||||
-DCONFIG_IOCTL_CFG80211 \
|
||||
-DRTW_USE_CFG80211_STA_EVENT \
|
||||
-Wno-error=address \
|
||||
-Wno-error=array-bounds \
|
||||
-Wno-error=cast-function-type
|
||||
|
||||
RTL8812AU_AIRCRACK_NG_MODULE_MAKE_OPTS = \
|
||||
CONFIG_PLATFORM_I386_PC=n \
|
||||
CONFIG_88XXAU=m \
|
||||
KVER=$(LINUX_VERSION_PROBED) \
|
||||
USER_EXTRA_CFLAGS="$(RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS)"
|
||||
|
||||
define RTL8812AU_AIRCRACK_NG_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_USB_SUPPORT)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_USB)
|
||||
endef
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user