DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Fabian Pfitzner <f.pfitzner@pengutronix.de>
To: Roland Hieber <rhi@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH] v8a: add firmware nxp wifi package
Date: Mon, 16 Mar 2026 09:22:50 +0100	[thread overview]
Message-ID: <3fe63b0a-576a-44d3-89ff-23c000c9cdef@pengutronix.de> (raw)
In-Reply-To: <1773350062-c196320291db394d460247bf@pty>

On 3/12/26 10:15 PM, Roland Hieber wrote:
> On Tue, Jan 20, 2026 at 09:59:20AM +0100, Fabian Pfitzner wrote:
>> Some NXP WiFi chips require additional firmware that is not contained in the
>> firmware-imx or linux-firmware package.
>>
>> One of these chips is the iw612 WiFi chip, where the firmware is contained
>> in another repository [1].
>>
>> Thus create a rule to install further firmware files from this
>> repository. As of now, install only the iw612 firmware.
>> Later we can add more if needed.
>>
>> [1] https://github.com/nxp-imx/imx-firmware
>>
>> Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> This recipe is currently unused; no ptxconfig selects FIRMWARE_NXP_WIFI. For
> which board is it needed?
>
>   - Roland


imx8mp-frdm.


>
>
>> ---
>>   ...er-parent-directories-for-INSTALLDIR.patch | 27 ++++++++
>>   .../firmware-nxp-wifi-lf-6.6.52-2.2.2/series  |  4 ++
>>   .../platforms/firmware-nxp-wifi.in            |  7 ++
>>   .../platform-v8a/rules/firmware-nxp-wifi.make | 64 +++++++++++++++++++
>>   4 files changed, 102 insertions(+)
>>   create mode 100644 configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
>>   create mode 100644 configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series
>>   create mode 100644 configs/platform-v8a/platforms/firmware-nxp-wifi.in
>>   create mode 100644 configs/platform-v8a/rules/firmware-nxp-wifi.make
>>
>> diff --git a/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
>> new file mode 100644
>> index 0000000..faf86ef
>> --- /dev/null
>> +++ b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
>> @@ -0,0 +1,27 @@
>> +From: Fabian Pfitzner <f.pfitzner@pengutronix.de>
>> +Date: Mon, 12 Jan 2026 16:24:23 +0100
>> +Subject: [PATCH] Makefile: consider parent directories for INSTALLDIR
>> +
>> +If INSTALLDIR contains more than one level of directories (e. g.
>> +"/lib/firmware/nxp"), it fails creating them.
>> +
>> +Add "-p" to mkdir in order to allow the creation of multiple directories.
>> +
>> +Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
>> +---
>> + Makefile | 2 +-
>> + 1 file changed, 1 insertion(+), 1 deletion(-)
>> +
>> +diff --git a/Makefile b/Makefile
>> +index 8dff9dcd4a26..0f3b56712fa0 100644
>> +--- a/Makefile
>> ++++ b/Makefile
>> +@@ -21,7 +21,7 @@ INSTALLDIR ?= wlan_fw
>> + install:
>> +
>> + 	@if [ ! -d $(INSTALLDIR) ]; then \
>> +-		mkdir $(INSTALLDIR); \
>> ++		mkdir -p $(INSTALLDIR); \
>> + 	fi
>> +
>> + 	install -m 0644 nxp/wifi_mod_para.conf $(INSTALLDIR)/
>> diff --git a/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series
>> new file mode 100644
>> index 0000000..eef9445
>> --- /dev/null
>> +++ b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series
>> @@ -0,0 +1,4 @@
>> +# generated by git-ptx-patches
>> +#tag:base --start-number 1
>> +0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
>> +# 5e0d82ee0cc435fde80b8039b70a9f72  - git-ptx-patches magic
>> diff --git a/configs/platform-v8a/platforms/firmware-nxp-wifi.in b/configs/platform-v8a/platforms/firmware-nxp-wifi.in
>> new file mode 100644
>> index 0000000..b7560ab
>> --- /dev/null
>> +++ b/configs/platform-v8a/platforms/firmware-nxp-wifi.in
>> @@ -0,0 +1,7 @@
>> +## SECTION=non_free_firmware
>> +
>> +config FIRMWARE_NXP_WIFI
>> +	tristate
>> +	prompt "firmware-nxp-wifi"
>> +	help
>> +	  Install NXP WiFi firmware
>> diff --git a/configs/platform-v8a/rules/firmware-nxp-wifi.make b/configs/platform-v8a/rules/firmware-nxp-wifi.make
>> new file mode 100644
>> index 0000000..32e6b6d
>> --- /dev/null
>> +++ b/configs/platform-v8a/rules/firmware-nxp-wifi.make
>> @@ -0,0 +1,64 @@
>> +# -*-makefile-*-
>> +#
>> +# Copyright (C) 2026 by Fabian Pfitzner <f.pfitzner@pengutronix.de>
>> +#
>> +# For further information about the PTXdist project and license conditions
>> +# see the README file.
>> +#
>> +
>> +#
>> +# We provide this package
>> +#
>> +PACKAGES-$(PTXCONF_FIRMWARE_NXP_WIFI) += firmware-nxp-wifi
>> +
>> +#
>> +# Paths and names
>> +#
>> +FIRMWARE_NXP_WIFI_VERSION	:= lf-6.6.52-2.2.2
>> +FIRMWARE_NXP_WIFI_MD5		:= c45d14303b23a2ae2870170a6289d0bb
>> +FIRMWARE_NXP_WIFI		:= firmware-nxp-wifi-$(FIRMWARE_NXP_WIFI_VERSION)
>> +FIRMWARE_NXP_WIFI_SUFFIX	:= tar.gz
>> +FIRMWARE_NXP_WIFI_URL		:= https://github.com/nxp-imx/imx-firmware/archive/refs/tags/$(FIRMWARE_NXP_WIFI_VERSION).$(FIRMWARE_NXP_WIFI_SUFFIX)
>> +FIRMWARE_NXP_WIFI_SOURCE	:= $(SRCDIR)/$(FIRMWARE_NXP_WIFI).$(FIRMWARE_NXP_WIFI_SUFFIX)
>> +FIRMWARE_NXP_WIFI_DIR		:= $(BUILDDIR)/$(FIRMWARE_NXP_WIFI)
>> +FIRMWARE_NXP_WIFI_LICENSE	:= NXP-Software-License-Agreement
>> +FIRMWARE_NXP_WIFI_LICENSE_FILES	:= \
>> +	file://LICENSE.txt;md5=ca53281cc0caa7e320d4945a896fb837
>> +
>> +FIRMWARE_NXP_WIFI_MAKE_ENV	:= \
>> +	INSTALLDIR=$(FIRMWARE_NXP_WIFI_PKGDIR)/lib/firmware/nxp
>> +
>> +FIRMWARE_NXP_WIFI_CONF_TOOL	:= NO
>> +
>> +# ----------------------------------------------------------------------------
>> +# Compile
>> +# ----------------------------------------------------------------------------
>> +
>> +$(STATEDIR)/firmware-nxp-wifi.compile:
>> +	@$(call targetinfo)
>> +	@$(call touch)
>> +
>> +# ----------------------------------------------------------------------------
>> +# Target-Install
>> +# ----------------------------------------------------------------------------
>> +
>> +$(STATEDIR)/firmware-nxp-wifi.targetinstall:
>> +	@$(call targetinfo)
>> +
>> +	@$(call install_init, firmware-nxp-wifi)
>> +	@$(call install_fixup, firmware-nxp-wifi,PRIORITY,optional)
>> +	@$(call install_fixup, firmware-nxp-wifi,SECTION,base)
>> +	@$(call install_fixup, firmware-nxp-wifi,AUTHOR,"Fabian Pfitzner <f.pfitzner@pengutronix.de>")
>> +	@$(call install_fixup, firmware-nxp-wifi,DESCRIPTION,missing)
>> +
>> +	@$(call install_copy, firmware-nxp-wifi, 0, 0, 0755, \
>> +		$(FIRMWARE_NXP_WIFI_PKGDIR)/lib/firmware/nxp/sd_w61x_v1.bin.se, \
>> +		/lib/firmware/nxp/sd_w61x.bin)
>> +
>> +	@$(call install_finish, firmware-imx)
>> +
>> +	@$(call install_finish, firmware-nxp-wifi)
>> +
>> +	@$(call touch)
>> +
>> +# vim: syntax=make
>> -- 
>> 2.47.3
>>
>>
>>
-- 
Pengutronix e.K.                           | Fabian Pfitzner             |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |




      reply	other threads:[~2026-03-16  8:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-20  8:59 Fabian Pfitzner
2026-03-10 16:08 ` Robert Schwebel
2026-03-12 21:15 ` Roland Hieber
2026-03-16  8:22   ` Fabian Pfitzner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3fe63b0a-576a-44d3-89ff-23c000c9cdef@pengutronix.de \
    --to=f.pfitzner@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=rhi@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox