Blame view

conf/machine/pitximx8mp2g.conf 2.87 KB
242265b2a   Eric Lee   Yocto Gatesgarth ...
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
  #@TYPE: Machine
  #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4
  #@SOC: i.MX8MP
  #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP
  #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
  
  MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:"
  
  require conf/machine/include/imx-base.inc
  require conf/machine/include/tune-cortexa53.inc
  require conf/machine/include/smarc-common.inc
  
  MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997"
  
  IMAGE_FEATURES += "package-management"
  
  # Embedian BSP default providers
  PREFERRED_PROVIDER_virtual/kernel_pitximx8mp2g ?= "linux-pitximx8mp"
  PREFERRED_VERSION_linux-pitximx8mp2g_pitximx8mp2g = "5.10"
  
  KERNEL_DEVICETREE = " \
                       embedian/imx8mp-pitx.dtb \
                       embedian/imx8mp-pitx-lvds.dtb  \
  "
  
  WKS_FILE_DEPENDS_append = " imx-m7-demos"
  IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \
                      imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \
                      imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \
  "
  
  PREFERRED_PROVIDER_u-boot_pitximx8mp2g = "u-boot-pitximx8mp"
  PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp2g = "u-boot-pitximx8mp"
  
  UBOOT_CONFIG ??= "sd"
  UBOOT_CONFIG[sd] = "pitximx8mp_2g_defconfig,sdcard"
  SPL_BINARY = "spl/u-boot-spl.bin"
  
  # Set DDR FIRMWARE
  DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin"
  
  # Set u-boot DTB
  UBOOT_DTB_NAME = "imx8mp-pitx.dtb"
  
  # Set imx-mkimage boot target
  IMXBOOT_TARGETS = "flash_evk"
  
  # Set Serial console
  SERIAL_CONSOLES = "115200;ttymxc3"
  
  IMAGE_BOOTLOADER = "imx-boot"
  
  LOADADDR = ""
  UBOOT_SUFFIX = "bin"
  UBOOT_MAKE_TARGET = ""
  IMX_BOOT_SEEK = "32"
  
  OPTEE_BIN_EXT = "8mp"
  
  MACHINE_EXTRA_RDEPENDS += " \
  			   imx-boot \
                             packagegroup-tools-bluetooth \
                             pm-utils \
                             kmod \
                             hdparm \
                             gptfdisk \
                             lftp \
                             vim \
                             ntp \
                             boost \
                             nodejs \
                             networkmanager \
  			   android-tools \
                             "
  
  # eIQ Machine Learning. Note that many of the features require Qt 5. Disable
  # this when you build image without QT 5.
  IMAGE_INSTALL_append = " \
  	packagegroup-imx-ml \
  	firmware-imx-sdma \
  	firmware-imx-regulatory \
  	linux-firmware-nxp89xx \
  	nxp-wlan-sdk \
  	kernel-module-nxp89xx \
  	fsl-rc-local \
441812e18   Eric Lee   Add ppp and RS485...
86
87
88
  	ppp \
  	usb-modeswitch-data \
  	usb-modeswitch \
242265b2a   Eric Lee   Yocto Gatesgarth ...
89
90
91
92
93
94
95
96
97
98
99
          "
  
  #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev"
  
  IMAGE_FSTYPES = "tar.bz2"
  
  # Ship all kernel modules by default
  MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
  
  # Add additional firmware
  MACHINE_FIRMWARE_append = " linux-firmware-ath10k"