guowenxue
2024-07-15 bf3c1b67a4b493288310170cc22d3ea3b3e3e781
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#@TYPE       : Machine
#@NAME       : LingYun IoT Gatway Kits Boards based on i.MX8M Plus
#@SOC        : i.MX8M Plus
#@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
 
# Add new machine igkboard-imx8mp
MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:igkboardbase:igkboard-imx8mp:"
 
require conf/machine/include/imx-base.inc
require conf/machine/include/arm/armv8a/tune-cortexa53.inc
 
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 "
 
# linux kernel images
KERNEL_DEVICETREE = "freescale/${MACHINE}.dtb"
KERNEL_IMAGETYPE = "Image"
 
# Uboot configuration
UBOOT_DTB_NAME = "${MACHINE}.dtb"
LOADADDR = ""
UBOOT_SUFFIX = "bin"
UBOOT_MAKE_TARGET = ""
SPL_BINARY = "spl/u-boot-spl.bin"
UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "${MACHINE}_defconfig,sdcard"
SERIAL_CONSOLES = "115200;ttymxc1"
 
# 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 = " \
    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 ATF platform name
ATF_PLATFORM = "imx8mp"
 
# Set imx-mkimage boot target
IMXBOOT_TARGETS = "flash_evk"
IMX_BOOT_SOC_TARGET = "iMX8MP"
IMX_BOOT_SEEK = "32"
OPTEE_BIN_EXT = "8mp"
 
# Add wic image in deploy folder
SOC_DEFAULT_IMAGE_FSTYPES:append = " wic"
 
# 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 = "igkboard"