Commit 559c106c2c3cbba97695b19ac84dc501d83ab2da

Authored by Eric Lee
1 parent 94d7cdc8ac

Add 2g industral temp and 4g LPDDR4 machine file

Showing 6 changed files with 228 additions and 54 deletions Side-by-side Diff

conf/machine/smarcimx8m2g.conf
... ... @@ -18,7 +18,7 @@
18 18  
19 19 # Embedian BSP default providers
20 20 PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m"
21   -PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.88"
  21 +PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.51_imx8m"
22 22  
23 23 KERNEL_DEVICETREE = " \
24 24 embedian/fsl-smarcimx8mq.dtb \
conf/machine/smarcimx8m2gind.conf
  1 +#@TYPE: Machine
  2 +#@NAME: EMBEDIAN SMARC-iMX8M COMPUTER ON MODULES with 2GB LPDDR4 MEMORY
  3 +#@SOC: i.MX8MQ
  4 +#@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8M
  5 +#@MAINTAINER: Eric Lee <eric.lee@embedian.com>
  6 +
  7 +MACHINEOVERRIDES =. "mx8:mx8mq:"
  8 +MACHINEOVERRIDES =. "imx:"
  9 +
  10 +require conf/machine/include/arm/arch-arm64.inc
  11 +require conf/machine/include/imx-base.inc
  12 +
  13 +MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee"
  14 +
  15 +IMAGE_FEATURES += "package-management"
  16 +
  17 +MACHINE_SOCARCH_FILTER_append_mx8mq = "virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d"
  18 +
  19 +# Embedian BSP default providers
  20 +PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m"
  21 +PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.51_imx8m"
  22 +
  23 +KERNEL_DEVICETREE = " \
  24 + embedian/fsl-smarcimx8mq.dtb \
  25 + embedian/fsl-smarcimx8mq-dcss-lvds.dtb \
  26 + embedian/fsl-smarcimx8mq-lcdif-lvds.dtb \
  27 + embedian/fsl-smarcimx8mq-hdmi.dtb \
  28 + embedian/fsl-smarcimx8mq-hdmi-4k.dtb \
  29 + embedian/fsl-smarcimx8mq-dual-display.dtb \
  30 +"
  31 +
  32 +IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy"
  33 +IMAGE_BOOTFILES += "imx8mq_m4_TCM_hello_world.bin imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin"
  34 +
  35 +PREFERRED_PROVIDER_u-boot_smarcimx8m2g = "u-boot-smarcimx8m"
  36 +PREFERRED_PROVIDER_virtual/bootloader_smarcimx8m2g = "u-boot-smarcimx8m"
  37 +
  38 +UBOOT_CONFIG ??= "sd"
  39 +UBOOT_CONFIG[sd] = "smarcimx8mq_2g_ser3_ind_defconfig,sdcard"
  40 +SPL_BINARY = "spl/u-boot-spl.bin"
  41 +
  42 +# Set DDR FIRMWARE
  43 +DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin"
  44 +
  45 +# Set u-boot DTB
  46 +UBOOT_DTB_NAME = "fsl-smarcimx8mq.dtb"
  47 +
  48 +# Set imx-mkimage boot target
  49 +IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi"
  50 +
  51 +SERIAL_CONSOLE = "115200 ttymxc0"
  52 +
  53 +IMAGE_BOOTLOADER = "imx-boot"
  54 +
  55 +BOOT_SPACE = "65536"
  56 +
  57 +LOADADDR = ""
  58 +UBOOT_SUFFIX = "bin"
  59 +UBOOT_MAKE_TARGET = ""
  60 +IMX_BOOT_SEEK = "33"
  61 +
  62 +OPTEE_BIN_EXT = "8mq"
  63 +
  64 +MACHINE_EXTRA_RDEPENDS += " \
  65 + pm-utils \
  66 + kmod \
  67 + hdparm \
  68 + gptfdisk \
  69 + lftp \
  70 + vim \
  71 + ntp \
  72 + boost \
  73 + nodejs \
  74 + networkmanager \
  75 + "
  76 +
  77 +# Packages added to all images (including core-image-minimal)
  78 +IMAGE_INSTALL_append = " \
  79 + fsl-rc-local \
  80 +"
  81 +
  82 +IMAGE_FSTYPES = "tar.bz2"
  83 +
  84 +# Ship all kernel modules by default
  85 +MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
  86 +
  87 +MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k"
conf/machine/smarcimx8m4g.conf
  1 +#@TYPE: Machine
  2 +#@NAME: EMBEDIAN SMARC-iMX8M COMPUTER ON MODULES with 2GB LPDDR4 MEMORY
  3 +#@SOC: i.MX8MQ
  4 +#@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8M
  5 +#@MAINTAINER: Eric Lee <eric.lee@embedian.com>
  6 +
  7 +MACHINEOVERRIDES =. "mx8:mx8mq:"
  8 +MACHINEOVERRIDES =. "imx:"
  9 +
  10 +require conf/machine/include/arm/arch-arm64.inc
  11 +require conf/machine/include/imx-base.inc
  12 +
  13 +MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee"
  14 +
  15 +IMAGE_FEATURES += "package-management"
  16 +
  17 +MACHINE_SOCARCH_FILTER_append_mx8mq = "virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d"
  18 +
  19 +# Embedian BSP default providers
  20 +PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m"
  21 +PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.51_imx8m"
  22 +
  23 +KERNEL_DEVICETREE = " \
  24 + embedian/fsl-smarcimx8mq.dtb \
  25 + embedian/fsl-smarcimx8mq-dcss-lvds.dtb \
  26 + embedian/fsl-smarcimx8mq-lcdif-lvds.dtb \
  27 + embedian/fsl-smarcimx8mq-hdmi.dtb \
  28 + embedian/fsl-smarcimx8mq-hdmi-4k.dtb \
  29 + embedian/fsl-smarcimx8mq-dual-display.dtb \
  30 +"
  31 +
  32 +IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy"
  33 +IMAGE_BOOTFILES += "imx8mq_m4_TCM_hello_world.bin imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin"
  34 +
  35 +PREFERRED_PROVIDER_u-boot_smarcimx8m2g = "u-boot-smarcimx8m"
  36 +PREFERRED_PROVIDER_virtual/bootloader_smarcimx8m2g = "u-boot-smarcimx8m"
  37 +
  38 +UBOOT_CONFIG ??= "sd"
  39 +UBOOT_CONFIG[sd] = "smarcimx8mq_4g_ser3_defconfig,sdcard"
  40 +SPL_BINARY = "spl/u-boot-spl.bin"
  41 +
  42 +# Set DDR FIRMWARE
  43 +DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin"
  44 +
  45 +# Set u-boot DTB
  46 +UBOOT_DTB_NAME = "fsl-smarcimx8mq.dtb"
  47 +
  48 +# Set imx-mkimage boot target
  49 +IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi"
  50 +
  51 +SERIAL_CONSOLE = "115200 ttymxc0"
  52 +
  53 +IMAGE_BOOTLOADER = "imx-boot"
  54 +
  55 +BOOT_SPACE = "65536"
  56 +
  57 +LOADADDR = ""
  58 +UBOOT_SUFFIX = "bin"
  59 +UBOOT_MAKE_TARGET = ""
  60 +IMX_BOOT_SEEK = "33"
  61 +
  62 +OPTEE_BIN_EXT = "8mq"
  63 +
  64 +MACHINE_EXTRA_RDEPENDS += " \
  65 + pm-utils \
  66 + kmod \
  67 + hdparm \
  68 + gptfdisk \
  69 + lftp \
  70 + vim \
  71 + ntp \
  72 + boost \
  73 + nodejs \
  74 + networkmanager \
  75 + "
  76 +
  77 +# Packages added to all images (including core-image-minimal)
  78 +IMAGE_INSTALL_append = " \
  79 + fsl-rc-local \
  80 +"
  81 +
  82 +IMAGE_FSTYPES = "tar.bz2"
  83 +
  84 +# Ship all kernel modules by default
  85 +MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
  86 +
  87 +MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k"
recipes-bsp/u-boot/u-boot-smarcimx8m_2017.03.bb
... ... @@ -14,7 +14,7 @@
14 14 UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=https"
15 15 SRCBRANCH = "smarc-imx_v2017.03_4.9.88_2.0.0_ga"
16 16 SRC_URI = "${EMB_UBOOT_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
17   -SRCREV = "6282b048e3c32fefa7a5dd19b5fa9bcfb85f9265"
  17 +SRCREV = "27ce391e80f24a67fbe55e41e58fc5c70478e1ef"
18 18  
19 19 S = "${WORKDIR}/git"
20 20  
recipes-kernel/linux/linux-smarcimx8m_4.9.51_imx8m.bb
  1 +# Copyright (C) 2013-2016 Freescale Semiconductor
  2 +# Copyright 2017 NXP
  3 +# Copyright 2018 Embedian, Inc..
  4 +# Released under the MIT license (see COPYING.MIT for the terms)
  5 +
  6 +SUMMARY = "Linux Kernel provided and supported by NXP"
  7 +DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
  8 +i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
  9 +
  10 +require recipes-kernel/linux/linux-imx.inc
  11 +require recipes-kernel/linux/linux-imx-src.inc
  12 +
  13 +DEPENDS += "lzop-native bc-native"
  14 +
  15 +DEFAULT_PREFERENCE = "1"
  16 +
  17 +DO_CONFIG_V7_COPY = "no"
  18 +DO_CONFIG_V7_COPY_mx6 = "yes"
  19 +DO_CONFIG_V7_COPY_mx7 = "yes"
  20 +DO_CONFIG_V7_COPY_mx8 = "no"
  21 +
  22 +SRCBRANCH = "smarc-imx_4.9.51_imx8m_ga"
  23 +
  24 +LOCALVERSION = "-${SRCBRANCH}"
  25 +DEFCONFIG_mx8 = "smarcimx8m_defconfig"
  26 +
  27 +KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
  28 +SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
  29 +SRCREV = "044022d8da98d6636945dc33ef969f5e096fce1f"
  30 +
  31 +S = "${WORKDIR}/git"
  32 +
  33 +addtask copy_defconfig after do_unpack before do_preconfigure
  34 +do_copy_defconfig () {
  35 + install -d ${B}
  36 + if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
  37 + # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
  38 + mkdir -p ${B}
  39 + cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/.config
  40 + cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/../defconfig
  41 + else
  42 + # copy latest defconfig to use for mx8
  43 + mkdir -p ${B}
  44 + cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
  45 + cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
  46 + fi
  47 +}
  48 +
  49 +COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
  50 +EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
  51 +EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
  52 +EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
recipes-kernel/linux/linux-smarcimx8m_4.9.88.bb
1   -# Copyright (C) 2013-2016 Freescale Semiconductor
2   -# Copyright 2017 NXP
3   -# Copyright 2018 Embedian, Inc..
4   -# Released under the MIT license (see COPYING.MIT for the terms)
5   -
6   -SUMMARY = "Linux Kernel provided and supported by NXP"
7   -DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
8   -i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
9   -
10   -require recipes-kernel/linux/linux-imx.inc
11   -require recipes-kernel/linux/linux-imx-src.inc
12   -
13   -DEPENDS += "lzop-native bc-native"
14   -
15   -DEFAULT_PREFERENCE = "1"
16   -
17   -DO_CONFIG_V7_COPY = "no"
18   -DO_CONFIG_V7_COPY_mx6 = "yes"
19   -DO_CONFIG_V7_COPY_mx7 = "yes"
20   -DO_CONFIG_V7_COPY_mx8 = "no"
21   -
22   -SRCBRANCH = "smarc-imx_4.9.88_2.0.0_ga"
23   -
24   -LOCALVERSION = "-${SRCBRANCH}"
25   -DEFCONFIG_mx8 = "smarcimx8m_defconfig"
26   -
27   -KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
28   -SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
29   -SRCREV = "a0f48761d7bb4f790f996f0765cced72c1ff3ee2"
30   -
31   -S = "${WORKDIR}/git"
32   -
33   -addtask copy_defconfig after do_unpack before do_preconfigure
34   -do_copy_defconfig () {
35   - install -d ${B}
36   - if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
37   - # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
38   - mkdir -p ${B}
39   - cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/.config
40   - cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/../defconfig
41   - else
42   - # copy latest defconfig to use for mx8
43   - mkdir -p ${B}
44   - cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
45   - cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
46   - fi
47   -}
48   -
49   -COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
50   -EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
51   -EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
52   -EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"