Skip to content

Commit

Permalink
MBa8MPxL-RAS314: use nxp firmware for WLAN/BT
Browse files Browse the repository at this point in the history
- download the firmware from NXP and integrate it into the rootfs

Signed-off-by: Martin Schmiedel <[email protected]>
  • Loading branch information
schmiedelm committed Oct 1, 2024
1 parent f38b5a0 commit eb03f3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion config/boards/mba8mpxl-ras314.wip
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions mail-for-pull-request.txt
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit eb03f3d

Please sign in to comment.