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 2, 2024
1 parent 24f7c44 commit 7198125
Showing 1 changed file with 12 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 (use firmware from NXP)
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

0 comments on commit 7198125

Please sign in to comment.