From 281a7fcd5924e749a96967393828421caea68e93 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 22 Dec 2023 18:59:19 +0800
Subject: [PATCH] Add meta-igkboard for igkboard-imx8mp in yocto

---
 yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf |   31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf b/yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf
index c885267..fec84b0 100644
--- a/yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf
+++ b/yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf
@@ -1,42 +1,42 @@
 #@TYPE: Machine
-#@NAME: LingYun IoT System Studio, IGKBord-8MP
+#@NAME: IoT Gatway Kits Boards based on i.MX8M Plus
 #@SOC: i.MX8M Plus
-#@DESCRIPTION: Machine configuration for igkboard-8mp LPDDR4 2GB, eMMC 8GB.
+#@DESCRIPTION: Machine configuration for LingYun IGKBoard-IMX8MP 2GB LPDDR4, 8GB eMMC
 #@MAINTAINER: Wenxue Guo <guowenxue@gmail.com>
 #@REFERENCE: meta-freescale/conf/machine/imx8mp-lpddr4-evk.conf
 
 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:"
 MACHINEOVERRIDES =. "igkboardbase:igkboard-imx8mp:"
 
-BOARD_NAME = "igkboard-imx8mp"
-
 require conf/machine/include/imx-base.inc
 require conf/machine/include/arm/armv8a/tune-cortexa53.inc
 
-MACHINE_FEATURES += " wifi bluetooth "
+MACHINE_FEATURES:append = " wifi bluetooth ppp "
+MACHINE_FEATURES:remove = " nxp8801-sdio nxp8987-sdio nxp8997-pcie nxp8997-sdio nxp9098-pcie nxp9098-sdio nxpiw416-sdio nxpiw612-sdio qemu-usermode "
 
-# Set DDR FIRMWARE, Refer to: 
-# meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
-# meta-imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx-8_8.18.bb
+# Set DDR FIRMWARE, Refer to:
+# meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_*.bb
+# meta-imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_*.bb
 DDR_FIRMWARE_VERSION = "202006"
-DDR_FIRMWARE_NAME = " \ 
+DDR_FIRMWARE_NAME = " \
     lpddr4_pmu_train_1d_dmem_${DDR_FIRMWARE_VERSION}.bin \
     lpddr4_pmu_train_1d_imem_${DDR_FIRMWARE_VERSION}.bin \
     lpddr4_pmu_train_2d_dmem_${DDR_FIRMWARE_VERSION}.bin \
     lpddr4_pmu_train_2d_imem_${DDR_FIRMWARE_VERSION}.bin \
 "
+
 # Set linux DTB
-KERNEL_DEVICETREE = "freescale/${BOARD_NAME}.dtb"
+KERNEL_DEVICETREE = "freescale/igkboard-imx8mp.dtb"
 KERNEL_IMAGETYPE = "Image"
 
-# Set u-boot DTB 
-UBOOT_DTB_NAME = "${BOARD_NAME}.dtb"
+# Set u-boot DTB
+UBOOT_DTB_NAME = "igkboard-imx8mp.dtb"
 LOADADDR = ""
 UBOOT_SUFFIX = "bin"
 UBOOT_MAKE_TARGET = ""
 SPL_BINARY = "spl/u-boot-spl.bin"
 UBOOT_CONFIG ??= "sd"
-UBOOT_CONFIG[sd] = "${BOARD_NAME}_defconfig,sdcard"
+UBOOT_CONFIG[sd] = "igkboard-imx8mp_defconfig,sdcard"
 SERIAL_CONSOLES = "115200;ttymxc1"
 
 # Set ATF platform name
@@ -50,12 +50,9 @@
 
 SOC_DEFAULT_IMAGE_FSTYPES:append = " wic"
 
-# Remove unused QT example program
-#CORE_IMAGE_EXTRA_INSTALL:remove += " qtbase-ptest qtbase-examples"
-
 # Boot partition size [in KiB] for kernel and other data
 # More refer to: meta-freescale/classes/image_types_fsl.bbclass
 BOOT_SPACE = "65536"
 
 # /etc/hostname
-hostname:pn-base-files = "igkboard8mp"
+hostname:pn-base-files = "igkboard"

--
Gitblit v1.9.1