diff --git a/config/boards/mba8mpxl-ras314.wip b/config/boards/mba8mpxl-ras314.wip index 1add26998778..71d28f4420d3 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 (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