Complete Yocto mirror with license table for TQMa6UL (2038-compliance)

- 264 license table entries with exact download URLs (224/264 resolved)
- Complete sources/ directory with all BitBake recipes
- Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl)
- Full traceability for Softwarefreigabeantrag
- GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4
- License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
Siggi (OpenClaw Agent)
2026-03-01 20:58:18 +00:00
commit 16accb6b24
15086 changed files with 1292356 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
SUMMARY = "Auto Response Control Module"
LICENSE = "GPL-2.0-only & BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287"
inherit module
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/auto-resp;branch=nxp/sdk-v2.0.x;protocol=https"
SRCREV = "9a74743167dcfcfbca5056eedbff9a52337c9712"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}"
export KERNEL_PATH
INHIBIT_PACKAGE_STRIP = "1"
do_compile:prepend() {
sed -i -e 's,EXTRA_CFLAGS += -I$(PWD),EXTRA_CFLAGS += -I${S},' ${S}/armodule/source/Makefile
}
do_install(){
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}
install -d ${D}${bindir}
install -m 644 ${B}/bin/ar.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/
cp -f ${S}/bin/ar_* ${D}${bindir}/
}
FILES:${PN} += "${bindir}/"
INSANE_SKIP:${PN} = "ldflags"
COMPATIBLE_MACHINE = "(t1040|t1042)"
CLEANBROKEN = "1"

View File

@@ -0,0 +1,330 @@
Add makefile to kernel-module-imx-gpu-viv
Upstream-Status: Pending
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Index: git/Makefile
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ git/Makefile 2017-06-27 12:07:11.931698672 -0500
@@ -0,0 +1,17 @@
+obj-m := galcore.o
+
+SRC := $(shell pwd)
+
+all:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC)/src AQROOT=${PWD}/src
+ cp $(SRC)/src/Module.symvers $(PWD)
+ cp $(SRC)/src/modules.order $(PWD)
+
+modules_install:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC)/src modules_install
+
+clean:
+ find . -name '*.o' -delete
+ rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
+ rm -f Module.markers Module.symvers modules.order
+ rm -rf .tmp_versions Modules.symvers
Index: git/src/hal/kernel/arch/makefile.linux
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ git/src/hal/kernel/arch/makefile.linux 2017-06-27 11:44:06.004826232 -0500
@@ -0,0 +1,91 @@
+##############################################################################
+#
+# The MIT License (MIT)
+#
+# Copyright (c) 2014 - 2017 Vivante Corporation
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+##############################################################################
+#
+# The GPL License (GPL)
+#
+# Copyright (C) 2014 - 2017 Vivante Corporation
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+##############################################################################
+#
+# Note: This software is released under dual MIT and GPL licenses. A
+# recipient may use this file under the terms of either the MIT license or
+# GPL License. If you wish to use only one license not the other, you can
+# indicate your decision by deleting one of the above license notices in your
+# version of this file.
+#
+##############################################################################
+
+
+#
+# Linux build file for architecture dependent kernel HAL layer.
+#
+
+################################################################################
+# Include common definitions.
+
+include $(AQROOT)/makefile.linux.def
+
+################################################################################
+# Define a shortcut for the main target.
+
+STATIC = 1
+TARGET_NAME = libhalarchkernel.a
+
+################################################################################
+# Supply additional include directories.
+
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
+INCLUDE += -I$(AQROOT)/hal/kernel
+INCLUDE += -I$(AQROOT)/hal/kernel/arch
+ifeq ($(VIVANTE_ENABLE_VG),1)
+INCLUDE += -I$(AQROOT)/hal/kernel/archvg
+endif
+
+CFLAGS += $(INCLUDE) -Werror -ansi
+
+
+################################################################################
+# Describe object files.
+
+OBJECTS = $(OBJ_DIR)/gc_hal_kernel_context.o \
+ $(OBJ_DIR)/gc_hal_kernel_hardware.o
+
+include $(AQROOT)/common.target
Index: git/src/hal/kernel/archvg/makefile.linux
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ git/src/hal/kernel/archvg/makefile.linux 2017-06-27 11:44:06.004826232 -0500
@@ -0,0 +1,91 @@
+##############################################################################
+#
+# The MIT License (MIT)
+#
+# Copyright (c) 2014 - 2017 Vivante Corporation
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+##############################################################################
+#
+# The GPL License (GPL)
+#
+# Copyright (C) 2014 - 2017 Vivante Corporation
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+##############################################################################
+#
+# Note: This software is released under dual MIT and GPL licenses. A
+# recipient may use this file under the terms of either the MIT license or
+# GPL License. If you wish to use only one license not the other, you can
+# indicate your decision by deleting one of the above license notices in your
+# version of this file.
+#
+##############################################################################
+
+
+#
+# Linux build file for architecture dependent kernel HAL layer.
+#
+
+################################################################################
+# Include common definitions.
+
+include $(AQROOT)/makefile.linux.def
+
+################################################################################
+# Define a shortcut for the main target.
+
+STATIC = 1
+
+TARGET_NAME = libhalarchkernelvg.a
+
+################################################################################
+# Supply additional include directories.
+
+INCLUDE += -I$(AQROOT)/hal/inc
+INCLUDE += -I$(AQROOT)/hal/user
+INCLUDE += -I$(AQROOT)/hal/kernel
+INCLUDE += -I$(AQROOT)/hal/kernel/arch
+ifeq ($(VIVANTE_ENABLE_VG), 1)
+INCLUDE += -I$(AQROOT)/hal/kernel/archvg
+endif
+
+CFLAGS += $(INCLUDE) -Werror -ansi
+
+################################################################################
+# Describe object files.
+
+OBJECTS = $(OBJ_DIR)/gc_hal_kernel_hardware_vg.o \
+ $(OBJ_DIR)/gc_hal_kernel_hardware_command_vg.o
+
+include $(AQROOT)/common.target
Index: git/src/hal/kernel/makefile.linux
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ git/src/hal/kernel/makefile.linux 2017-06-27 11:44:06.004826232 -0500
@@ -0,0 +1,107 @@
+##############################################################################
+#
+# The MIT License (MIT)
+#
+# Copyright (c) 2014 - 2017 Vivante Corporation
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+##############################################################################
+#
+# The GPL License (GPL)
+#
+# Copyright (C) 2014 - 2017 Vivante Corporation
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+##############################################################################
+#
+# Note: This software is released under dual MIT and GPL licenses. A
+# recipient may use this file under the terms of either the MIT license or
+# GPL License. If you wish to use only one license not the other, you can
+# indicate your decision by deleting one of the above license notices in your
+# version of this file.
+#
+##############################################################################
+
+
+#
+# Linux build file for architecture dependent kernel HAL layer.
+#
+#
+
+
+################################################################################
+# Include common definitions.
+
+include $(AQROOT)/makefile.linux.def
+
+################################################################################
+# Define a shortcut for the main target.
+
+STATIC = 1
+TARGET_NAME = libhalkernel.a
+
+################################################################################
+# Supply additional include directories.
+
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
+INCLUDE += -I$(AQROOT)/hal/kernel/inc
+INCLUDE += -I$(AQROOT)/hal/kernel/arch
+INCLUDE += -I$(AQROOT)/hal/kernel
+ifeq ($(VIVANTE_ENABLE_VG),1)
+INCLUDE += -I$(AQROOT)/hal/kernel/archvg
+endif
+INCLUDE += -I$(AQROOT)/hal/os/linux/kernel
+CFLAGS += $(INCLUDE) -Werror -ansi
+
+
+################################################################################
+# Describe object files.
+
+OBJECTS = $(OBJ_DIR)/gc_hal_kernel_command.o \
+ $(OBJ_DIR)/gc_hal_kernel_db.o \
+ $(OBJ_DIR)/gc_hal_kernel_debug.o \
+ $(OBJ_DIR)/gc_hal_kernel_event.o \
+ $(OBJ_DIR)/gc_hal_kernel_heap.o \
+ $(OBJ_DIR)/gc_hal_kernel.o \
+ $(OBJ_DIR)/gc_hal_kernel_mmu.o \
+ $(OBJ_DIR)/gc_hal_kernel_video_memory.o
+
+ifeq ($(VIVANTE_ENABLE_VG),1)
+OBJECTS += \
+ $(OBJ_DIR)/gc_hal_kernel_command_vg.o \
+ $(OBJ_DIR)/gc_hal_kernel_interrupt_vg.o \
+ $(OBJ_DIR)/gc_hal_kernel_mmu_vg.o \
+ $(OBJ_DIR)/gc_hal_kernel_vg.o
+endif
+
+include $(AQROOT)/common.target

View File

@@ -0,0 +1,24 @@
# Copyright (C) 2015-2016 Freescale Semiconductor
# Copyright (C) 2017-2021 NXP
SUMMARY = "Kernel loadable module for Vivante GPU"
DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \
allowing flexibility to use a newer graphics release with an older kernel."
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
SRC_URI = "${KERNEL_SRC};subpath=drivers/mxc/gpu-viv;destsuffix=git/src \
file://Add-makefile.patch"
KERNEL_SRC ?= "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}"
SRCBRANCH = "lf-6.6.y"
LOCALVERSION = "-6.6.52-2.2.1"
SRCREV = "b1d8a6dd8bef36e0bb923afbfa0466935f0270d6"
S = "${WORKDIR}/git"
inherit module
EXTRA_OEMAKE += "CONFIG_MXC_GPU_VIV=m"
KERNEL_MODULE_AUTOLOAD = "galcore"
COMPATIBLE_MACHINE = "(imx-nxp-bsp)"

View File

@@ -0,0 +1,20 @@
# Copyright (C) 2015-2018 O.S. Systems Software LTDA.
# Copyright (C) 2015-2016 Freescale Semiconductor
SUMMARY = "Kernel loadable module for Vivante GPU"
DESCRIPTION = "This package uses an exact copy of the GPU kernel driver source code of \
the same version as base and include fixes and improvements developed by FSL Community"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
PV .= "+git${SRCPV}"
SRCREV = "4d035200e7b15d2713d49979a1d05f201b92cf4c"
SRC_URI = "git://github.com/Freescale/kernel-module-imx-gpu-viv.git;protocol=https;branch=master"
S = "${WORKDIR}/git"
inherit module
KERNEL_MODULE_AUTOLOAD = "galcore"
COMPATIBLE_MACHINE = "(imx-nxp-bsp)"

View File

@@ -0,0 +1,18 @@
SUMMARY = "Linux IPC KERNEL MODULE "
DESCRIPTION = "DSP boot application and ipc test application"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
inherit module qoriq_build_64bit_kernel
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/ipc;protocol=https;nobranch=1"
SRCREV = "74d662707558290f070f9589177db730444bc435"
S = "${WORKDIR}/git"
do_configure[depends] += "virtual/kernel:do_shared_workdir"
do_compile:prepend () {
cd ${S}/kernel
}
INHIBIT_PACKAGE_STRIP = "1"

View File

@@ -0,0 +1,22 @@
# Copyright 2020-2023 NXP
DESCRIPTION = "Kernel loadable module for ISP"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${S}/../LICENSE;md5=64381a6ea83b48c39fe524c85f65fb44"
SRC_URI = "${ISP_KERNEL_SRC};branch=${SRCBRANCH}"
ISP_KERNEL_SRC ?= "git://github.com/nxp-imx/isp-vvcam.git;protocol=https"
SRCBRANCH = "lf-6.6.y_2.0.0"
SRCREV = "ab77b0521615d3f279263ba67439aed887d525d7"
S = "${WORKDIR}/git/vvcam/v4l2"
inherit module
MODULES_MODULE_SYMVERS_LOCATION = "dwe"
DEBUG_PREFIX_MAP:prepend = " \
-fmacro-prefix-map=${WORKDIR}/git/vvcam=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
-fdebug-prefix-map=${WORKDIR}/git/vvcam=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} "
COMPATIBLE_MACHINE = "(mx8mp-nxp-bsp)"

View File

@@ -0,0 +1,18 @@
SUMMARY = "Layerscape Debug File System Module"
DESCRIPTION = "This package is the kernel module which is used for \
ls102xa targets debug."
SECTION = "ls-debug"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94263f12f9416f9fd0493c8f9e8085a3"
inherit module autotools-brokensep
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/ls-dbg;branch=nxp/master;protocol=https"
SRCREV = "40501f6659e880d38508cdd34a4df2d348d1c68e"
S = "${WORKDIR}/git"
EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_DIR}"
EXTRA_OEMAKE += 'SYSROOT="${D}"'
COMPATIBLE_MACHINE = "(ls102xa)"

View File

@@ -0,0 +1,36 @@
From b1b218757973fd6a293de5bdbdc75307db07998e Mon Sep 17 00:00:00 2001
From: Vitor Soares <vitor.soares@toradex.com>
Date: Wed, 30 Apr 2025 15:12:06 +0100
Subject: [PATCH] mlinux: moal_main: lower PRINTM_MMSG() log level to KERN_INFO
Currently, the PRINTM_MMSG macro uses KERN_ALERT for printing messages.
KERN_ALERT is intended for critical conditions requiring immediate
attention (e.g., hardware failure), and using it for normal debug output
is misleading and can clutter system logs.
This patch lowers the log level to KERN_INFO, which is more appropriate
for informational messages that are not indicative of system-critical
failures.
Upstream-Status: Inappropriate [upstream not accepting patches]
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
---
mlinux/moal_main.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlinux/moal_main.h b/mlinux/moal_main.h
index 6d87dcf4f5db..b4e7e4d4a5fd 100644
--- a/mlinux/moal_main.h
+++ b/mlinux/moal_main.h
@@ -3517,7 +3517,7 @@ extern t_u32 drvdbg;
do { \
woal_print(level, msg); \
if (drvdbg & MMSG) \
- printk(KERN_ALERT msg); \
+ printk(KERN_INFO msg); \
} while (0)
static inline void woal_print(t_u32 level, char *fmt, ...)
--
2.34.1

View File

@@ -0,0 +1,105 @@
From b2bcca5c812b654e39d8709070266d6fbf37c121 Mon Sep 17 00:00:00 2001
From: Luke Wang <ziniu.wang_1@nxp.com>
Date: Tue, 15 Oct 2024 15:49:05 +0800
Subject: [PATCH] mxm_wifiex: fix build error for 64-bit division
When build on 32-bit platform, error log shows:
ERROR: modpost: "__aeabi_uldivmod" [mwifiex/mlan.ko] undefined!
ERROR: modpost: "__aeabi_ldivmod" [mwifiex/mlan.ko] undefined!
32-bit platform need to use do_div() to support 64-bit division.
Upstream-Status: Backport [https://github.com/nxp-imx/mwifiex/commit/fd7dd188a1ad7eb8bc110d30815e087362f91d72]
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
---
mlan/mlan_wmm.c | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/mlan/mlan_wmm.c b/mlan/mlan_wmm.c
index 6da49ea..8815ca5 100644
--- a/mlan/mlan_wmm.c
+++ b/mlan/mlan_wmm.c
@@ -840,11 +840,11 @@ static raListTbl *wlan_wmm_get_highest_priolist_ptr(pmlan_adapter pmadapter,
*
* @return byte budget
*/
-static t_u32 wlan_wmm_get_byte_budget(t_u32 time_budget_us, t_u32 phy_rate_kbps)
+static t_u32 wlan_wmm_get_byte_budget(pmlan_adapter pmadapter, t_u32 time_budget_us, t_u32 phy_rate_kbps)
{
const t_u32 min_budget = MV_ETH_FRAME_LEN;
- t_u64 byte_budget =
- ((t_u64)phy_rate_kbps * time_budget_us) / (8 * 1000u);
+ t_u64 byte_budget = pmadapter->callbacks.moal_do_div((t_u64)phy_rate_kbps * time_budget_us,
+ 8 * 1000u);
if (byte_budget > INT_MAX)
return INT_MAX;
@@ -891,7 +891,7 @@ wlan_wmm_allocate_sta_table(pmlan_adapter pmadapter, t_u8 *ra)
sta_table->budget.time_budget_init_us = pmadapter->init_para.tx_budget;
sta_table->budget.byte_budget_init = wlan_wmm_get_byte_budget(
- sta_table->budget.time_budget_init_us, default_rate);
+ pmadapter, sta_table->budget.time_budget_init_us, default_rate);
sta_table->budget.queue_packets = default_queue_packets;
sta_table->budget.phy_rate_kbps = default_rate;
@@ -900,14 +900,14 @@ wlan_wmm_allocate_sta_table(pmlan_adapter pmadapter, t_u8 *ra)
sta_table->budget.mpdu_no_amsdu_pps_cap =
pmadapter->tx_mpdu_no_amsdu_pps;
- sta_table->budget.mpdu_with_amsdu_budget_init =
- ((t_u64)sta_table->budget.mpdu_with_amsdu_pps_cap *
- sta_table->budget.time_budget_init_us) /
- 1000000;
- sta_table->budget.mpdu_no_amsdu_budget_init =
- ((t_u64)sta_table->budget.mpdu_no_amsdu_pps_cap *
- sta_table->budget.time_budget_init_us) /
- 1000000;
+ sta_table->budget.mpdu_with_amsdu_budget_init = pmadapter->callbacks.moal_do_div(
+ (t_u64)sta_table->budget.mpdu_with_amsdu_pps_cap *
+ sta_table->budget.time_budget_init_us,
+ 1000000);
+ sta_table->budget.mpdu_no_amsdu_budget_init = pmadapter->callbacks.moal_do_div(
+ (t_u64)sta_table->budget.mpdu_no_amsdu_pps_cap *
+ sta_table->budget.time_budget_init_us,
+ 1000000);
for (i = 0; i < NELEMENTS(sta_table->budget.bytes); ++i) {
sta_table->budget.bytes[i] = sta_table->budget.byte_budget_init;
@@ -3142,12 +3142,12 @@ static t_void wlan_wmm_update_queue_packets_budget(pmlan_adapter pmadapter,
list_entry, struct wmm_sta_table, active_sta_entry);
const t_u64 sta_capacity = sta->budget.byte_budget_init;
const t_u32 max_pkts_by_airtime =
- wlan_wmm_get_byte_budget(max_pending_tx_time_us,
+ wlan_wmm_get_byte_budget(pmadapter, max_pending_tx_time_us,
sta->budget.phy_rate_kbps) /
MV_ETH_FRAME_LEN;
+ t_u32 sta_share = pmadapter->callbacks.moal_do_div((t_u64)queue_packets_limit * sta_capacity,
+ total_capacity);
- t_u32 sta_share =
- queue_packets_limit * sta_capacity / total_capacity;
sta_share = MAX(sta_share, min_sta_share);
sta_share = MIN(sta_share, queue_packets_limit * 7 / 8);
sta_share = MIN(sta_share, max_pkts_by_airtime);
@@ -5183,6 +5183,7 @@ static void wlan_wmm_adjust_sta_tx_budget(pmlan_private priv,
struct wmm_sta_table *sta,
HostCmd_TX_RATE_QUERY *rate)
{
+ mlan_adapter *pmadapter = priv->adapter;
const t_u8 ppdu_type_legacy = 0;
const t_u8 ppdu_type_ht = 1;
const t_u8 ppdu_type_vht = 2;
@@ -5210,7 +5211,7 @@ static void wlan_wmm_adjust_sta_tx_budget(pmlan_private priv,
if (phy_rate > 0) {
const t_u32 old_phy_rate = sta->budget.phy_rate_kbps;
sta->budget.byte_budget_init = wlan_wmm_get_byte_budget(
- sta->budget.time_budget_init_us, phy_rate);
+ pmadapter, sta->budget.time_budget_init_us, phy_rate);
sta->budget.phy_rate_kbps = phy_rate;
if (old_phy_rate / phy_rate >= 2 ||
--
2.25.1

View File

@@ -0,0 +1,31 @@
From f45013f26a7045e882e4a0ac99ae126571fa60af Mon Sep 17 00:00:00 2001
From: Luke Wang <ziniu.wang_1@nxp.com>
Date: Tue, 15 Oct 2024 15:49:48 +0800
Subject: [PATCH] mxm_wifiex: fix build error for udelay
When build on 32-bit platform, error log shows:
ERROR: modpost: "__bad_udelay" [mwifiex/moal.ko] undefined!
32-bit platform udelay has 2000us limition. Split it as workaround.
Upstream-Status: Backport [https://github.com/nxp-imx/mwifiex/commit/f45013f26a7045e882e4a0ac99ae126571fa60af]
Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
---
mlinux/moal_sdio_mmc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mlinux/moal_sdio_mmc.c b/mlinux/moal_sdio_mmc.c
index 746f434..299829e 100644
--- a/mlinux/moal_sdio_mmc.c
+++ b/mlinux/moal_sdio_mmc.c
@@ -3322,7 +3322,8 @@ static int woal_sdiommc_reset_fw(moal_handle *handle)
ret = -EFAULT;
goto done;
}
- udelay(4000);
+ udelay(2000);
+ udelay(2000);
/** wait SOC fully wake up */
for (tries = 0; tries < MAX_POLL_TRIES; ++tries) {
ret = handle->ops.write_reg(handle, reset_reg, 0xba);

View File

@@ -0,0 +1,26 @@
SUMMARY = "NXP Wi-Fi driver for module 88w8801/8987/8997/9098 IW416/610/612"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ab04ac0f249af12befccb94447c08b77"
# For backwards compatibility
PROVIDES += "kernel-module-nxp89xx"
RREPLACES:${PN} = "kernel-module-nxp89xx"
RPROVIDES:${PN} = "kernel-module-nxp89xx"
RCONFLICTS:${PN} = "kernel-module-nxp89xx"
SRCBRANCH = "lf-6.6.52_2.2.0"
MRVL_SRC ?= "git://github.com/nxp-imx/mwifiex.git;protocol=https"
SRC_URI = " \
${MRVL_SRC};branch=${SRCBRANCH} \
file://wlan_src_driver_patch_release_lf-6.6.52-2.2.0.patch \
file://mlinux-moal_main-lower-PRINTM_MMSG-log-level-to-KERN_INFO.patch \
file://mxm_wifiex_fix_build_error_for_64-bit_division.patch \
file://mxm_wifiex_fix_build_error_for_udelay.patch \
"
SRCREV = "5ad19e194f49ed9447bee7864eb562618ccaf9b1"
S = "${WORKDIR}/git"
inherit module
EXTRA_OEMAKE = "KERNELDIR=${STAGING_KERNEL_BUILDDIR} -C ${STAGING_KERNEL_BUILDDIR} M=${S}"

View File

@@ -0,0 +1,12 @@
DESCRIPTION = "UIO driver for T1040 L2 Switch"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
SRC_URI = "git://github.com/nxp-qoriq-yocto-sdk/l2switch-uio;branch=nxp/sdk-v2.0.x;protocol=https"
SRCREV = "0f31fbcbe9ab1ab9c424da34f70c82314b16f8de"
inherit module
S = "${WORKDIR}/git/uio-driver"
COMPATIBLE_MACHINE = "(t1040|t1042)"