guowenxue
2024-09-26 339eff90ac6e178432f0fa203d259fcf27886fa9
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
#@TYPE       : Machine
#@NAME       : LingYun IoT Gatway Kits Boards based on i.MX6ULL
#@SOC        : i.MX6ULL
#@DESCRIPTION: Machine configuration for LingYun IGKBoard-IMX6ULL
#@MAINTAINER : Wenxue Guo <guowenxue@gmail.com>
#@REFERENCE  : meta-imx/meta-bsp/conf/machine/imx6ull9x9evk.conf
 
# Add new machine igkboard-imx6ull
MACHINEOVERRIDES =. "mx6:mx6ul:mx6ull:igkboardbase:igkboard-imx6ull"
 
include conf/machine/include/imx-base.inc
include conf/machine/include/arm/armv7a/tune-cortexa7.inc
 
# Device tree file generated during kernel compilation
KERNEL_DEVICETREE = "${MACHINE}.dtb"
 
# Device tree overlay files generated during kernel compilation
KERNEL_DTOVERLAY = " \
    ${MACHINE}/adc.dtbo \
    ${MACHINE}/cam.dtbo \
    ${MACHINE}/can1.dtbo \
    ${MACHINE}/can2.dtbo \
    ${MACHINE}/i2c1.dtbo \
    ${MACHINE}/lcd.dtbo \
    ${MACHINE}/nbiot-4g.dtbo \
    ${MACHINE}/pwm7.dtbo \
    ${MACHINE}/pwm8.dtbo \
    ${MACHINE}/spi1.dtbo \
    ${MACHINE}/uart2.dtbo \
    ${MACHINE}/uart3.dtbo \
    ${MACHINE}/uart4.dtbo \
    ${MACHINE}/uart7.dtbo \
    ${MACHINE}/w1.dtbo \
"
 
# Uboot configuration
UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "${MACHINE}_defconfig,sdcard"
 
# Add wic image in deploy folder
SOC_DEFAULT_IMAGE_FSTYPES:append = " wic"
 
# Define the kernel boot file
WKS_FILE_DEPENDS:append = " uenv"
IMAGE_BOOT_FILES = " \
    ${KERNEL_IMAGETYPE} \
    ${KERNEL_DEVICETREE} \
    overlays/*;overlays/ \
    config.txt \
"
# Remove unused optee bcm4339 bcm43455
MACHINE_FEATURES += "wifi bluetooth"
 
# Refer to linux-imx/drivers/tty/serial/imx.c
SERIAL_CONSOLES = "115200;ttymxc0"
 
# /etc/hostname (uname -a)
hostname:pn-base-files = "igkboard"