From 283b13dbcd56f0ac2f9dcc1c0634bf7af0993a29 Mon Sep 17 00:00:00 2001 From: Justin Schneck Date: Mon, 21 Nov 2022 14:54:02 -0500 Subject: [PATCH] Include linux-firmware for AX210 --- nerves_defconfig | 3 +++ post-build.sh | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/nerves_defconfig b/nerves_defconfig index 940fd19..a31d658 100644 --- a/nerves_defconfig +++ b/nerves_defconfig @@ -38,6 +38,9 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="compulab/iot-gate-imx8plus" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_PACKAGE_BUSYBOX_CONFIG="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/busybox.config" BR2_PACKAGE_F2FS_TOOLS=y +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_22000=y +BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_22260=y BR2_PACKAGE_FREESCALE_IMX=y BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP=y BR2_PACKAGE_IMX_UUC=y diff --git a/post-build.sh b/post-build.sh index d5c2435..a86ce30 100755 --- a/post-build.sh +++ b/post-build.sh @@ -9,3 +9,11 @@ $HOST_DIR/usr/bin/fwup -c -f $NERVES_DEFCONFIG_DIR/fwup-revert.conf -o $TARGET_D # Copy the fwup includes to the images dir cp -rf $NERVES_DEFCONFIG_DIR/fwup_include $BINARIES_DIR + +# Copy over AX210 Firmware +rm -rf $TARGET_DIR/lib/firmware/iwlwifi* +cp -f $BUILD_DIR/linux-firmware-*/iwlwifi-ty-a0-gf-a0-66.ucode $TARGET_DIR/lib/firmware +cp -f $BUILD_DIR/linux-firmware-*/iwlwifi-ty-a0-gf-a0.pnvm $TARGET_DIR/lib/firmware +mkdir -p $TARGET_DIR/lib/firmware/intel >/dev/null 2>&1 +cp -f $BUILD_DIR/linux-firmware-*/intel/ibt-0041-0041.sfi $TARGET_DIR/lib/firmware/intel +cp -f $BUILD_DIR/linux-firmware-*/intel/ibt-0041-0041.ddc $TARGET_DIR/lib/firmware/intel