guowenxue
2023-12-22 1cf11837deb7459de5c0df84075c250c5d7fe25a
commit | author | age
849fbd 1 #@TYPE: Machine
G 2 #@NAME: LingYun IoT System Studio, IGKBord-8MP
3 #@SOC: i.MX8M Plus
4 #@DESCRIPTION: Machine configuration for igkboard-8mp LPDDR4 2GB, eMMC 8GB.
5 #@MAINTAINER: Wenxue Guo <guowenxue@gmail.com>
6 #@REFERENCE: meta-freescale/conf/machine/imx8mp-lpddr4-evk.conf
7
8 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:"
9 MACHINEOVERRIDES =. "igkboardbase:igkboard-imx8mp:"
10
11 BOARD_NAME = "igkboard-imx8mp"
12
13 require conf/machine/include/imx-base.inc
14 require conf/machine/include/arm/armv8a/tune-cortexa53.inc
15
16 MACHINE_FEATURES += " wifi bluetooth "
17
18 # Set DDR FIRMWARE, Refer to: 
19 # meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
20 # meta-imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx-8_8.18.bb
21 DDR_FIRMWARE_VERSION = "202006"
22 DDR_FIRMWARE_NAME = " \ 
23     lpddr4_pmu_train_1d_dmem_${DDR_FIRMWARE_VERSION}.bin \
24     lpddr4_pmu_train_1d_imem_${DDR_FIRMWARE_VERSION}.bin \
25     lpddr4_pmu_train_2d_dmem_${DDR_FIRMWARE_VERSION}.bin \
26     lpddr4_pmu_train_2d_imem_${DDR_FIRMWARE_VERSION}.bin \
27 "
28 # Set linux DTB
29 KERNEL_DEVICETREE = "freescale/${BOARD_NAME}.dtb"
30 KERNEL_IMAGETYPE = "Image"
31
32 # Set u-boot DTB 
33 UBOOT_DTB_NAME = "${BOARD_NAME}.dtb"
34 LOADADDR = ""
35 UBOOT_SUFFIX = "bin"
36 UBOOT_MAKE_TARGET = ""
37 SPL_BINARY = "spl/u-boot-spl.bin"
38 UBOOT_CONFIG ??= "sd"
39 UBOOT_CONFIG[sd] = "${BOARD_NAME}_defconfig,sdcard"
40 SERIAL_CONSOLES = "115200;ttymxc1"
41
42 # Set ATF platform name
43 ATF_PLATFORM = "imx8mp"
44
45 # Set imx-mkimage boot target
46 IMXBOOT_TARGETS = "flash_evk"
47 IMX_BOOT_SOC_TARGET = "iMX8MP"
48 IMX_BOOT_SEEK = "32"
49 OPTEE_BIN_EXT = "8mp"
50
51 SOC_DEFAULT_IMAGE_FSTYPES:append = " wic"
52
53 # Remove unused QT example program
54 #CORE_IMAGE_EXTRA_INSTALL:remove += " qtbase-ptest qtbase-examples"
55
56 # Boot partition size [in KiB] for kernel and other data
57 # More refer to: meta-freescale/classes/image_types_fsl.bbclass
58 BOOT_SPACE = "65536"
59
60 # /etc/hostname
61 hostname:pn-base-files = "igkboard8mp"