Commit 3f345553ab93ecbe3c41605eb0b3c43b318519e8

Authored by Eric Lee
1 parent ffae353cd1

Make changes for hardware rev. 00E0

Showing 2 changed files with 2 additions and 2 deletions Inline Diff

recipes-bsp/u-boot/u-boot-smarcimx8m_2018.03.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017-2018 NXP 2 # Copyright 2017-2018 NXP
3 3
4 DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." 4 DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards."
5 require recipes-bsp/u-boot/u-boot.inc 5 require recipes-bsp/u-boot/u-boot.inc
6 inherit pythonnative 6 inherit pythonnative
7 7
8 PROVIDES += "u-boot" 8 PROVIDES += "u-boot"
9 DEPENDS_append = " python dtc-native" 9 DEPENDS_append = " python dtc-native"
10 10
11 LICENSE = "GPLv2+" 11 LICENSE = "GPLv2+"
12 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" 12 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
13 13
14 UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" 14 UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh"
15 SRCBRANCH = "smarc-imx_v2018.03_4.14.78_1.0.0_ga" 15 SRCBRANCH = "smarc-imx_v2018.03_4.14.78_1.0.0_ga"
16 SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" 16 SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
17 SRCREV = "2a0a07c75344130b0c43ae5cecc657afc2672a30" 17 SRCREV = "44d379cf3d846b046b2edf2df5c302159a5b1ac5"
18 18
19 S = "${WORKDIR}/git" 19 S = "${WORKDIR}/git"
20 20
21 inherit fsl-u-boot-localversion 21 inherit fsl-u-boot-localversion
22 22
23 LOCALVERSION ?= "-${SRCBRANCH}" 23 LOCALVERSION ?= "-${SRCBRANCH}"
24 24
25 BOOT_TOOLS = "imx-boot-tools" 25 BOOT_TOOLS = "imx-boot-tools"
26 26
27 do_deploy_append_mx8m () { 27 do_deploy_append_mx8m () {
28 # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mq-XX.dtb for mkimage to generate boot binary 28 # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mq-XX.dtb for mkimage to generate boot binary
29 if [ -n "${UBOOT_CONFIG}" ] 29 if [ -n "${UBOOT_CONFIG}" ]
30 then 30 then
31 for config in ${UBOOT_MACHINE}; do 31 for config in ${UBOOT_MACHINE}; do
32 i=$(expr $i + 1); 32 i=$(expr $i + 1);
33 for type in ${UBOOT_CONFIG}; do 33 for type in ${UBOOT_CONFIG}; do
34 j=$(expr $j + 1); 34 j=$(expr $j + 1);
35 if [ $j -eq $i ] 35 if [ $j -eq $i ]
36 then 36 then
37 install -d ${DEPLOYDIR}/${BOOT_TOOLS} 37 install -d ${DEPLOYDIR}/${BOOT_TOOLS}
38 install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} 38 install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
39 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot 39 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
40 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} 40 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG}
41 fi 41 fi
42 done 42 done
43 unset j 43 unset j
44 done 44 done
45 unset i 45 unset i
46 fi 46 fi
47 47
48 } 48 }
49 49
50 PACKAGE_ARCH = "${MACHINE_ARCH}" 50 PACKAGE_ARCH = "${MACHINE_ARCH}"
51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
52 52
53 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 53 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
54 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 54 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
55 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 55 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
56 56
recipes-kernel/linux/linux-smarcimx8m_4.14.78.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017 NXP 2 # Copyright 2017 NXP
3 # Copyright 2018-2019 Embedian, Inc. 3 # Copyright 2018-2019 Embedian, Inc.
4 # Released under the MIT license (see COPYING.MIT for the terms) 4 # Released under the MIT license (see COPYING.MIT for the terms)
5 5
6 SUMMARY = "Linux kernel provided and supported by Embedian" 6 SUMMARY = "Linux kernel provided and supported by Embedian"
7 DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_4.14.78_1.0.0_ga provided by NXP) \ 7 DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_4.14.78_1.0.0_ga provided by NXP) \
8 with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU." 8 with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU."
9 9
10 require recipes-kernel/linux/linux-imx.inc 10 require recipes-kernel/linux/linux-imx.inc
11 11
12 DEPENDS += "lzop-native bc-native" 12 DEPENDS += "lzop-native bc-native"
13 13
14 DEFAULT_PREFERENCE = "1" 14 DEFAULT_PREFERENCE = "1"
15 15
16 SRCBRANCH = "smarc_8m_imx_4.14.78_1.0.0_ga" 16 SRCBRANCH = "smarc_8m_imx_4.14.78_1.0.0_ga"
17 17
18 LOCALVERSION = "-${SRCBRANCH}" 18 LOCALVERSION = "-${SRCBRANCH}"
19 KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8m_defconfig" 19 KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8m_defconfig"
20 DEFAULT_DTB = "fsl-smarcimx8mq" 20 DEFAULT_DTB = "fsl-smarcimx8mq"
21 21
22 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" 22 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
23 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 23 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
24 SRCREV = "edbedc0fab5340f84384e1bd870669a9e0b9d824" 24 SRCREV = "44d379cf3d846b046b2edf2df5c302159a5b1ac5"
25 25
26 S = "${WORKDIR}/git" 26 S = "${WORKDIR}/git"
27 27
28 addtask copy_defconfig after do_unpack before do_preconfigure 28 addtask copy_defconfig after do_unpack before do_preconfigure
29 do_copy_defconfig () { 29 do_copy_defconfig () {
30 install -d ${B} 30 install -d ${B}
31 mkdir -p ${B} 31 mkdir -p ${B}
32 cp ${KERNEL_DEFCONFIG} ${B}/.config 32 cp ${KERNEL_DEFCONFIG} ${B}/.config
33 cp ${KERNEL_DEFCONFIG} ${B}/../defconfig 33 cp ${KERNEL_DEFCONFIG} ${B}/../defconfig
34 } 34 }
35 35
36 pkg_postinst_kernel-devicetree_append_mx8 () { 36 pkg_postinst_kernel-devicetree_append_mx8 () {
37 cd $D/boot 37 cd $D/boot
38 ln -s ${DEFAULT_DTB}.dtb ${UBOOT_DTB_NAME} 38 ln -s ${DEFAULT_DTB}.dtb ${UBOOT_DTB_NAME}
39 } 39 }
40 40
41 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 41 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
42 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64" 42 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
43 43