From eb03f3df4dc44ea17b41bd7c0acac11504045c7f Mon Sep 17 00:00:00 2001 From: Martin Schmiedel Date: Wed, 18 Sep 2024 10:25:55 +0200 Subject: [PATCH] MBa8MPxL-RAS314: use nxp firmware for WLAN/BT - download the firmware from NXP and integrate it into the rootfs Signed-off-by: Martin Schmiedel --- config/boards/mba8mpxl-ras314.wip | 13 ++++++++++++- mail-for-pull-request.txt | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 mail-for-pull-request.txt diff --git a/config/boards/mba8mpxl-ras314.wip b/config/boards/mba8mpxl-ras314.wip index 1add26998778..530b6027fefa 100644 --- a/config/boards/mba8mpxl-ras314.wip +++ b/config/boards/mba8mpxl-ras314.wip @@ -10,11 +10,22 @@ DEFAULT_CONSOLE="serial" SERIALCON="ttymxc3" BOOT_FDT_FILE="freescale/imx8mp-tqma8mpql-mba8mp-ras314.dtb" ASOUND_STATE="asound.state.tqma" -BOARD_FIRMWARE_INSTALL="-full" PACKAGE_LIST_BOARD="gpiod python3-pip python3-periphery" function post_family_tweaks_bsp__mba8mpxl-ras314() { + # Wifi & Bluetooth + wget https://github.com/nxp-imx/imx-firmware/raw/lf-6.6.3_1.0.0/nxp/FwImage_8997/pcieuart8997_combo_v4.bin + run_host_command_logged mkdir -pv --mode=755 "$destination/lib/firmware/" || exit_with_error "Unable to mkdir firmware" + run_host_command_logged mkdir -v --mode=775 "$destination/lib/firmware/mrvl/" || exit_with_error "Unable to mkdir mrvl" + run_host_command_logged cp -Pv "pcieuart8997_combo_v4.bin" "$destination/lib/firmware/mrvl/" || exit_with_error "Unable to copy mrvl firmware" + + # Add udev rule to delay btnxpuart loading + cat <<- EOF > "${destination}"/etc/udev/rules.d/10-nxp-bluetooth-delay.rules + # wait until combo FW is loaded by wifi driver + KERNEL=="mlan*", ACTION=="add", RUN+="/sbin/modprobe btnxpuart" + EOF + mkdir -p $destination/etc/udev/rules.d cat <<- EOF > "$destination"/etc/udev/70-periphery.rules # Allow group periphery to access devices diff --git a/mail-for-pull-request.txt b/mail-for-pull-request.txt new file mode 100644 index 000000000000..6f10031b693e --- /dev/null +++ b/mail-for-pull-request.txt @@ -0,0 +1,3 @@ +After a discussion with NXP it is allowed to download the proprietary firmware (for the WLAN/BT module) from NXP and integrate it into the rootfs. +Deployment via the armbian-firmware repo was rejected. +Unfortunately, there seems to be no interest on the part of NXP to integrate the WLAN/BT firmware into linux-firware in a timely manner.