All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/29] qe-ucode: update SRC_URL
@ 2017-09-28  5:33 Chunrong Guo
  2017-09-28  5:33 ` [PATCH 02/29] rcw :update to 1a6236a Chunrong Guo
                   ` (27 more replies)
  0 siblings, 28 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-bsp/qe-ucode/qe-ucode_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/qe-ucode/qe-ucode_git.bb b/recipes-bsp/qe-ucode/qe-ucode_git.bb
index 7e0dd3c..27166d0 100644
--- a/recipes-bsp/qe-ucode/qe-ucode_git.bb
+++ b/recipes-bsp/qe-ucode/qe-ucode_git.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://Freescale-Binary-EULA;md5=f4719d59382b5ee2a2ebe4db784
 
 inherit deploy
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/qe-ucode.git;branch=sdk-v2.0.x"
+SRC_URI = "git://github.com/qoriq-open-source/qe-ucode.git;nobranch=1"
 SRCREV= "adb1560b76090a11f61a46b7a6b3b33b1436ed4d"
 
 S = "${WORKDIR}/git"
@@ -33,6 +33,6 @@ addtask deploy before do_build after do_install
 PACKAGES += "${PN}-image"
 FILES_${PN}-image += "/boot/*"
 
-COMPATIBLE_MACHINE = "(ls1021a|ls1043a|t1)"
+COMPATIBLE_MACHINE = "(ls1021a|ls1043a)"
 PACKAGE_ARCH = "${MACHINE_SOCARCH}"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 02/29] rcw :update to 1a6236a
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-30 12:53   ` Otavio Salvador
  2017-09-28  5:33 ` [PATCH 03/29] uboot: update to upgrade to 2017.09 Chunrong Guo
                   ` (26 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

This includes the following changes:
1a6236a - LS1012ARDB: Change rcw for secure boot
cdf4b72 - rcw: ls1088aqds: Add SCSI errata for detecttion of sata
16072f7 - armv8:LS1012A: RCW supporting 1GHz CPU frequency
90aef03 - LS1088ARDB:Reduce size in block copy command
53518dc - rcw: ls1088ardb: Add SCSI errata for detecttion of sata
0a869b3 - ls1021a: add workaround for pcie erratum A-007997 and A-007815
e7f18e5 - ls2088ardb: Add RCW for with platform frequency 700MHz

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-bsp/rcw/ls2-rcw_git.bb | 4 ++--
 recipes-bsp/rcw/rcw_git.bb     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes-bsp/rcw/ls2-rcw_git.bb b/recipes-bsp/rcw/ls2-rcw_git.bb
index ceb8bd6..f9574ed 100644
--- a/recipes-bsp/rcw/ls2-rcw_git.bb
+++ b/recipes-bsp/rcw/ls2-rcw_git.bb
@@ -1,7 +1,7 @@
 SUMMARY = "Reset Configuration Word"
 DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
 LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://BSD-LICENSE;md5=627727dce58484c4bd5f9b19665d81b3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=be7e0b2ce5a7a1f4f25a6d82cec1f47d"
 
 inherit deploy siteinfo
 
@@ -9,7 +9,7 @@ INHIBIT_DEFAULT_DEPS = "1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 SRC_URI = "git://github.com/qoriq-open-source/rcw.git;nobranch=1"
-SRCREV = "bfe8c5eb72cbae387af1c8662957caa801c2309f"
+SRCREV = "1a6236a34166219de324a105971eb9de05cde76e"
 
 S = "${WORKDIR}/git"
 
diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb
index 877822f..1681d94 100644
--- a/recipes-bsp/rcw/rcw_git.bb
+++ b/recipes-bsp/rcw/rcw_git.bb
@@ -1,14 +1,14 @@
 SUMMARY = "Reset Configuration Word"
 DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
 LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://BSD-LICENSE;md5=627727dce58484c4bd5f9b19665d81b3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=be7e0b2ce5a7a1f4f25a6d82cec1f47d"
 
 DEPENDS += "change-file-endianess-native tcl-native"
 
 inherit deploy
 
 SRC_URI = "git://github.com/qoriq-open-source/rcw.git;nobranch=1"
-SRCREV = "bfe8c5eb72cbae387af1c8662957caa801c2309f"
+SRCREV = "1a6236a34166219de324a105971eb9de05cde76e"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 03/29] uboot: update to upgrade to 2017.09
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
  2017-09-28  5:33 ` [PATCH 02/29] rcw :update to 1a6236a Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 04/29] cst :update to 1afb40c Chunrong Guo
                   ` (25 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb |  93 -------------------
 recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb | 142 +++++++++++++++++++++++++++++
 2 files changed, 142 insertions(+), 93 deletions(-)
 delete mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb
 create mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb

diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb b/recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb
deleted file mode 100644
index 5bde945..0000000
--- a/recipes-bsp/u-boot/u-boot-qoriq_2017.03.bb
+++ /dev/null
@@ -1,93 +0,0 @@
-require recipes-bsp/u-boot/u-boot.inc
-
-DESCRIPTION = "U-Boot provided by Freescale with focus on QorIQ boards"
-PROVIDES += "u-boot"
-LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1"
-LIC_FILES_CHKSUM = " \
-    file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
-    file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \
-    file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \
-    file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
-    file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \
-"
-
-PV_append = "+fslgit"
-INHIBIT_DEFAULT_DEPS = "1"
-DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc"
-DEPENDS_append_qoriq-arm64 = " change-file-endianess-native dtc-native tcl-native"
-DEPENDS_append_qoriq-arm = " change-file-endianess-native dtc-native tcl-native"
-DEPENDS_append_qoriq-ppc = " boot-format-native"
-
-SRC_URI = "git://github.com/qoriq-open-source/u-boot.git;nobranch=1 \
-    file://fix-build-error-under-gcc6.patch \
-"
-SRCREV = "6fc2946a7b1973a8221cdfeccd1666f2d8eec467"
-
-S = "${WORKDIR}/git"
-
-python () {
-    if d.getVar("TCMODE", True) == "external-fsl":
-        return
-
-    ml = d.getVar("MULTILIB_VARIANTS", True)
-    arch = d.getVar("OVERRIDES", True)
-
-    if "e5500-64b:" in arch or "e6500-64b:" in arch:
-        if not "lib32" in ml:
-            raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled")
-        sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux'
-        sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS')
-        workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib)
-        d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc')
-        d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib)
-        d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot')
-        d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-')
-    elif "fsl-lsch2-32b:" in arch:
-        if not "lib64" in ml:
-            raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled")
-        sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux'
-        sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS')
-        workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib)
-        d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc')
-        d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib)
-        d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot')
-        d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-')
-}
-
-WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
-EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
-EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
-
-inherit fsl-u-boot-localversion
-LOCALVERSION = "+fsl"
-
-do_compile_append_qoriq() {
-    unset i j k
-    for config in ${UBOOT_MACHINE}; do
-        i=`expr $i + 1`;
-        for type in ${UBOOT_CONFIG}; do
-            j=`expr $j + 1`;
-            for binary in ${UBOOT_BINARIES}; do
-                k=`expr $k + 1`
-                if [ $j -eq $i ] && [ $k -eq $i ]; then
-                    if [ -n "${BOOTFORMAT_CONFIG}" ] && echo "${type}" |grep -q spi;then
-                        # regenerate spi binary if BOOTFORMAT_CONFIG is set
-                        boot_format ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \
-                            ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi ${config}/u-boot.format.bin
-                        cp ${config}/u-boot.format.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX}
-                    elif [ "qspi" = "${type}" ];then
-                        cp ${config}/${binary} ${config}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX}
-                    fi
-                fi
-            done
-            unset k
-        done
-        unset j
-    done
-    unset i
-}
-
-
-PACKAGES += "${PN}-images"
-FILES_${PN}-images += "/boot"
-COMPATIBLE_MACHINE = "(qoriq)"
diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb b/recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb
new file mode 100644
index 0000000..3fe9fac
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-qoriq_2017.09.bb
@@ -0,0 +1,142 @@
+require recipes-bsp/u-boot/u-boot.inc
+
+DESCRIPTION = "U-Boot provided by Freescale with focus on QorIQ boards"
+PROVIDES += "u-boot"
+LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1"
+LIC_FILES_CHKSUM = " \
+    file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+    file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \
+    file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \
+    file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
+    file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \
+"
+
+PV_append = "+fslgit"
+INHIBIT_DEFAULT_DEPS = "1"
+DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc"
+DEPENDS_append_qoriq-arm64 = " change-file-endianess-native dtc-native tcl-native"
+DEPENDS_append_qoriq-arm = " change-file-endianess-native dtc-native tcl-native"
+DEPENDS_append_qoriq-ppc = " boot-format-native"
+
+SRC_URI = "git://github.com/qoriq-open-source/u-boot.git;nobranch=1 \
+    file://fix-build-error-under-gcc6.patch \
+"
+SRCREV = "503eff00a7119d2690a662ed64e83e4782b7d3d9"
+
+S = "${WORKDIR}/git"
+
+python () {
+    if d.getVar("TCMODE", True) == "external-fsl":
+        return
+
+    ml = d.getVar("MULTILIB_VARIANTS", True)
+    arch = d.getVar("OVERRIDES", True)
+
+    if "e5500-64b:" in arch or "e6500-64b:" in arch:
+        if not "lib32" in ml:
+            raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled")
+        sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux'
+        sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS')
+        workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib)
+        d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc')
+        d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib)
+        d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot')
+        d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-')
+    elif "fsl-lsch2-32b:" in arch:
+        if not "lib64" in ml:
+            raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled")
+        sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux'
+        sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS')
+        workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib)
+        d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc')
+        d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib)
+        d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot')
+        d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-')
+}
+
+WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
+EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
+
+inherit fsl-u-boot-localversion
+LOCALVERSION = "+fsl"
+
+do_compile_append_qoriq() {
+    unset i j k
+    for config in ${UBOOT_MACHINE}; do
+        i=`expr $i + 1`;
+        for type in ${UBOOT_CONFIG}; do
+            j=`expr $j + 1`;
+            for binary in ${UBOOT_BINARIES}; do
+                k=`expr $k + 1`
+                if [ $j -eq $i ] && [ $k -eq $i ]; then
+                    if [ -n "${BOOTFORMAT_CONFIG}" ] && echo "${type}" |grep -q spi;then
+                        # regenerate spi binary if BOOTFORMAT_CONFIG is set
+                        boot_format ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \
+                            ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi ${config}/u-boot.format.bin
+                        cp ${config}/u-boot.format.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX}
+                    elif [ "qspi" = "${type}" ];then
+                        cp ${config}/${binary} ${config}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX}
+                    elif [ "sdcard-secure-boot" = "${type}" ];then
+                        cp ${config}/spl/u-boot-spl.bin ${config}/u-boot-spl.bin 
+                    elif [ "nand-secure-boot" = "${type}" ];then
+                        cp ${config}/spl/u-boot-spl.bin ${config}/u-boot-spl.bin
+                    fi
+                fi
+            done
+            unset k
+        done
+        unset j
+    done
+    unset i
+}
+
+do_install_append_qoriq() {
+    if [ -n "${UBOOT_CONFIG}" ]
+    then
+        for config in ${UBOOT_MACHINE}; do
+            i=$(expr $i + 1);
+            for type in ${UBOOT_CONFIG}; do
+                j=$(expr $j + 1);
+                if [ $j -eq $i ]; then
+                    if [ "sdcard-secure-boot" = "${type}" ];then
+                        install -m 644 ${B}/${config}/u-boot-spl.bin ${D}/boot/uboot-${type}-spl.bin
+                        install -m 644 ${B}/${config}/u-boot-dtb.bin ${D}/boot/uboot-${type}-dtb.bin
+                    elif [ "nand-secure-boot" = "${type}" ];then
+                        install -m 644 ${B}/${config}/u-boot-spl.bin ${D}/boot/uboot-${type}-spl.bin
+                        install -m 644 ${B}/${config}/u-boot-dtb.bin ${D}/boot/uboot-${type}-dtb.bin
+                    fi
+                fi
+            done
+            unset j
+        done
+        unset  i
+    fi
+}
+
+do_deploy_append_qoriq() {
+    if [ -n "${UBOOT_CONFIG}" ]
+    then
+        for config in ${UBOOT_MACHINE}; do
+            i=$(expr $i + 1);
+            for type in ${UBOOT_CONFIG}; do
+                j=$(expr $j + 1);
+                if [ $j -eq $i ]; then
+                    if [ "sdcard-secure-boot" = "${type}" ] || [ "nand-secure-boot" = "${type}" ];then
+                        install -d {DEPLOYDIR}
+                        install -m 644 ${B}/${config}/u-boot-spl.bin ${DEPLOYDIR}/uboot-${type}-spl.bin
+                        install -m 644 ${B}/${config}/u-boot-dtb.bin ${DEPLOYDIR}/uboot-${type}-dtb.bin
+                    fi
+                fi
+            done
+            unset j
+        done
+        unset  i
+    fi
+}
+
+
+
+PACKAGES += "${PN}-images"
+FILES_${PN}-images += "/boot"
+COMPATIBLE_MACHINE = "(qoriq)"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 04/29] cst :update to 1afb40c
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
  2017-09-28  5:33 ` [PATCH 02/29] rcw :update to 1a6236a Chunrong Guo
  2017-09-28  5:33 ` [PATCH 03/29] uboot: update to upgrade to 2017.09 Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 05/29] eth-config: update SRC_URL Chunrong Guo
                   ` (24 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

This includes the following changes:
1afb40c - Make SRK table default option
1650003 - Make ls1088_ls2088.sh executable
4ae056a - Generate SRK hash value
c3e7c34 - LS1088 QSPI: Change in address in input file
fe4e0da - LS104x_1012: Add signing of bootscript_decap in case of NAND
8f42212 - LS1088 SD: Add input files for LS1088ardb SD
88b3f45 - Merge pull request #73 in SDK/cst from ~B57223/cst-create-pbi:master to master
63bfb68 - To enable blob, added input file
d124628 - LS1021ATWR: Change SPL hdr load address
12c489f - LS2088_1088: Add uni_sign input files for sd boot
04ac1a0 - LS2088_1088: Sample uni_pbi input file for sd boot
23bf3b7 - LS2088_1088: Modify tool to add pbi commands for sd secure
46f4045 - Enable cmd line flag "--u" urand option for gen_otpmk_drbg

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 ...rbg-fails-compilation-due-to-uninitialize.patch | 28 ++++++++++++++++++++++
 recipes-devtools/cst/cst_git.bb                    |  6 +++--
 2 files changed, 32 insertions(+), 2 deletions(-)
 create mode 100644 recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch

diff --git a/recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch b/recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch
new file mode 100644
index 0000000..0dc5c3a
--- /dev/null
+++ b/recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch
@@ -0,0 +1,28 @@
+From 6eb82ed1ba56c398e89f04fb848c5f3c4543e772 Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <chunrong.guo@nxp.com>
+Date: Wed, 20 Sep 2017 13:22:34 +0800
+Subject: [PATCH] gen_otpmk_drbg: fails compilation due to uninitialized
+ variables
+
+Upstream-Status: Submitted
+Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
+---
+ tools/key_generation/gen_otpmk_drbg.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/key_generation/gen_otpmk_drbg.c b/tools/key_generation/gen_otpmk_drbg.c
+index 6465367..33e5ea6 100644
+--- a/tools/key_generation/gen_otpmk_drbg.c
++++ b/tools/key_generation/gen_otpmk_drbg.c
+@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
+ {
+ 	char otpmk_in[2];
+ 	int c, i, l, ret;
+-	char *string;
++	char *string = NULL;
+ 	char urand_flag = 0;
+ 
+ 	printf("\n\t#----------------------------------------------------#");
+-- 
+2.7.4
+
diff --git a/recipes-devtools/cst/cst_git.bb b/recipes-devtools/cst/cst_git.bb
index fcae0c7..dc0ae5e 100644
--- a/recipes-devtools/cst/cst_git.bb
+++ b/recipes-devtools/cst/cst_git.bb
@@ -9,8 +9,10 @@ RDEPENDS_${PN} = "bash"
 
 inherit kernel-arch
 
-SRC_URI = "git://github.com/qoriq-open-source/cst.git;nobranch=1"
-SRCREV = "6424157985568df3f42a46e24222e38671455ddb"
+SRC_URI = "git://github.com/qoriq-open-source/cst.git;nobranch=1 \
+    file://0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch \
+"
+SRCREV = "1afb40c13097fc9e8a641aa5d0420498fea01c65"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 05/29] eth-config: update SRC_URL
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (2 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 04/29] cst :update to 1afb40c Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 06/29] flib: update to 14489ee Chunrong Guo
                   ` (23 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>>
---
 recipes-dpaa/eth-config/eth-config_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-dpaa/eth-config/eth-config_git.bb b/recipes-dpaa/eth-config/eth-config_git.bb
index 6507613..1d11474 100644
--- a/recipes-dpaa/eth-config/eth-config_git.bb
+++ b/recipes-dpaa/eth-config/eth-config_git.bb
@@ -5,8 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ed5eddbfbb84af5089ea94c382d423c"
 
 PR = "r2"
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/eth-config.git;branch=sdk-v2.0.x"
-SRCREV = "664ba136cfdb42116d9617176deda7c25ede9db9"
+SRC_URI = "git://github.com/qoriq-open-source/eth-config.git;nobranch=1"
+SRCREV = "e3dcd110638dab004bcc759f6f51a0994bdfd8d5"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 06/29] flib: update to 14489ee
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (3 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 05/29] eth-config: update SRC_URL Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-30 12:54   ` Otavio Salvador
  2017-09-28  5:33 ` [PATCH 07/29] fmlib: update SRC_URL Chunrong Guo
                   ` (22 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
14489ee - add AES-CTR support in cnstr_shdsc_blkcipher()
875b56d - authenc: add AES-CTR support
317f9d9 - add generic AES-GCM support

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa/flib/flib_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes-dpaa/flib/flib_git.bb b/recipes-dpaa/flib/flib_git.bb
index 6e12996..1712ab8 100644
--- a/recipes-dpaa/flib/flib_git.bb
+++ b/recipes-dpaa/flib/flib_git.bb
@@ -3,8 +3,9 @@ SECTION = "flib"
 LICENSE = "BSD & GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=75d2f6a74299640c05ae6c69ed7a4ad6"
 
-SRC_URI = "git://github.com/qoriq-open-source/flib.git;nobranch=1"
-SRCREV = "2c9b9dc22699f7c00f24a2134c42901932a6a0b9"
+SRC_URI = "git://github.com/qoriq-open-source/flib.git;nobranch=1 \
+"
+SRCREV = "14489ee2207650ddc89890df4b9f600da9ad665c"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 07/29] fmlib: update SRC_URL
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (4 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 06/29] flib: update to 14489ee Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 08/29] aiopsl: update to 2b7284f Chunrong Guo
                   ` (21 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa/fmlib/fmlib_git.bb | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb
index 8a7f9a7..11783c5 100644
--- a/recipes-dpaa/fmlib/fmlib_git.bb
+++ b/recipes-dpaa/fmlib/fmlib_git.bb
@@ -5,22 +5,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3f16fa8e677e45af3127c5c4bafc3c00"
 
 PR = "r1"
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/fmlib.git;branch=sdk-v2.0.x"
-SRCREV = "caec18a71ed702a176892efaf946281b9160e220"
+SRC_URI = "git://github.com/qoriq-open-source/fmlib.git;nobranch=1"
+SRCREV = "9f20cab379212e8fab907b17910e31a6a86380dd"
 
 S = "${WORKDIR}/git"
 
-TARGET_ARCH_FMLIB = "${DEFAULTTUNE}"
-TARGET_ARCH_FMLIB_e5500 = "ppc32e5500"
-TARGET_ARCH_FMLIB_e6500 = "ppc32e6500"
-TARGET_ARCH_FMLIB_ls1043a = "arm64a53"
-TARGET_ARCH_FMLIB_ls1046a = "arm64a72"
 
 EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \
         CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
-FMLIB_TARGET = "libfm-${TARGET_ARCH_FMLIB}"
-FMLIB_TARGET_t1 = "libfm-${TARGET_ARCH_FMLIB}-fmv3l"
+FMLIB_TARGET = "libfm-arm"
 do_compile () {
     oe_runmake ${FMLIB_TARGET}.a
 }
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 08/29] aiopsl: update to 2b7284f
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (5 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 07/29] fmlib: update SRC_URL Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 09/29] gpp-aioptool: update to 43b842b Chunrong Guo
                   ` (20 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
2b7284f - apps: update elfs before tag
2e44c43 - firmware no.: 8.1.1
ba731d9 - scripts: fix dpcon creation
9bc1ca5 - apps: update elfs before tag
a0531c5 - firmware no.: 8.1.0
f7e361b - dpni: fix compilation warnings
f87f389 - qos demo: perf targets
b795e2a - projects: fix all builds
6720145 - scripts: updates for QoS
60da9a9 - qos demo: sync with the new QoS API
5ef275c - dpl: updates for QoS
e685d99 - qos: API sync with MC 10.3.1
c3aebfe - IPR: Fixed IPv6 atomic fragment detection
eb3f4c0 - IPF_demo: initial presentation offset should be 0
253e989 - IPF: initial presentation offset should be 0
97dc5a1 - Apps: New GSO demo app
930fbc1 - ipc: change spinclocks/atomic counter type to uint64_t
7c0fab8 - roc_process_packet : TMAN query timer state command
f0c33a9 - TMAN: Fix TMI statistics
57efe24 - TMAN: Add API for getting TMI statistics
0281d8d - roc_process_packet : FDMA replicate frame command
de7b372 - roc_process_packet : Update TLS size
be6d737 - roc_process_packet : Set data segment presentation
666ee6d - roc_process_packet : Convert to Unix EOL
116c8fd - slob: fixed free list not updating properly
f8ee861 - FDMA : Concatenated frame handle not set in PRC
d53b626 - debugging: update dump functions for slob
5bb5157 - FDMA : Wrong segment length when ASA extend size is 0
e2ff23c - slob: Fix allocation issue when passing large alignment to slob_get()
207b05b - apps: update elfs before tag
b305330 - firmware no.: 8.0.3
7496304 - ipr: removed reference counter usage
833986f - aiop_apps: helper functions to fix the default FD
27cef58 - aiop_apps : Soft Parser readme
ee42501 - roc_process_packet : MC cache coherence issue
8a74d70 - CDMA : Cache attributes control API
70ab217 - cwapr: removed reference counter usage

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa2/aiopsl/aiopsl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-dpaa2/aiopsl/aiopsl_git.bb b/recipes-dpaa2/aiopsl/aiopsl_git.bb
index 5df26e6..f6f6fb2 100644
--- a/recipes-dpaa2/aiopsl/aiopsl_git.bb
+++ b/recipes-dpaa2/aiopsl/aiopsl_git.bb
@@ -8,7 +8,7 @@ BASEDEPENDS = ""
 S = "${WORKDIR}/git"
 
 SRC_URI = "git://github.com/qoriq-open-source/aiopsl.git;nobranch=1"
-SRCREV = "9d45f430b648d49a893be8a43ef1b64c09a5b41b"
+SRCREV = "2b7284f0020b7f42bf8eae1a4094df9f3140575e"
 
 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 09/29] gpp-aioptool: update to 43b842b
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (6 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 08/29] aiopsl: update to 2b7284f Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 10/29] restool: update to 87c3abe Chunrong Guo
                   ` (19 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
43b842b - Add support for 'Thread per Core' parameter
647f02e - Remove dependency on KERNEL_PATH for build
5103b0c - Fix misleading variable name

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa2/gpp-aioptool/gpp-aioptool_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-dpaa2/gpp-aioptool/gpp-aioptool_git.bb b/recipes-dpaa2/gpp-aioptool/gpp-aioptool_git.bb
index dfc649b..f75421d 100644
--- a/recipes-dpaa2/gpp-aioptool/gpp-aioptool_git.bb
+++ b/recipes-dpaa2/gpp-aioptool/gpp-aioptool_git.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=386a6287daa6504b7e7e5014ddfb3987"
 
 SRC_URI = "git://github.com/qoriq-open-source/gpp-aioptool.git;nobranch=1 \
 "
-SRCREV = "a350379796653a0e0f8c096c46d84b8469ef19a9"
+SRCREV = "43b842b493482385b93e34fa7cab09bd96802af2"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 10/29] restool: update to 87c3abe
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (7 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 09/29] gpp-aioptool: update to 43b842b Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 11/29] restool:add ls1043ardb and ls1046ardb support Chunrong Guo
                   ` (18 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

87c3abe - scripts: fix improper usage of bash arithmetic operations

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa2/restool/restool_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-dpaa2/restool/restool_git.bb b/recipes-dpaa2/restool/restool_git.bb
index aa6b8e4..c5e0231 100644
--- a/recipes-dpaa2/restool/restool_git.bb
+++ b/recipes-dpaa2/restool/restool_git.bb
@@ -7,7 +7,7 @@ RDEPENDS_${PN} += "bash"
 SRC_URI = "git://github.com/qoriq-open-source/restool.git;nobranch=1 \
     file://0001-restool-fix-build-error-with-gcc7.patch"
 
-SRCREV = "f01f2ea4ab2d5b2432c4497cc772d2fd8cca3eb3"
+SRCREV = "87c3abe305d02a866404237773d4f736ab5247b2"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 11/29] restool:add ls1043ardb and ls1046ardb support
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (8 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 10/29] restool: update to 87c3abe Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 12/29] cantest: update SRC_URL Chunrong Guo
                   ` (17 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa2/restool/restool_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-dpaa2/restool/restool_git.bb b/recipes-dpaa2/restool/restool_git.bb
index c5e0231..3b56102 100644
--- a/recipes-dpaa2/restool/restool_git.bb
+++ b/recipes-dpaa2/restool/restool_git.bb
@@ -17,6 +17,6 @@ do_install () {
     oe_runmake install DESTDIR=${D}
 }
 
-COMPATIBLE_MACHINE = "(ls2080ardb|ls2088ardb|ls1088ardb)"
+COMPATIBLE_MACHINE = "(ls2080ardb|ls2088ardb|ls1088ardb|ls1043ardb|ls1046ardb)"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 12/29] cantest: update SRC_URL
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (9 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 11/29] restool:add ls1043ardb and ls1046ardb support Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 13/29] dpdk: update to 64578fa Chunrong Guo
                   ` (16 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-extended/cantest/cantest_1.0.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/recipes-extended/cantest/cantest_1.0.bb b/recipes-extended/cantest/cantest_1.0.bb
index 72062f3..cf8f1f0 100644
--- a/recipes-extended/cantest/cantest_1.0.bb
+++ b/recipes-extended/cantest/cantest_1.0.bb
@@ -2,16 +2,19 @@ DESCRIPTION = "cantest"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d85064f0fa931974668d281ab83cc97e"
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/cantest.git;branch=sdk-v2.0.x"
-SRCREV = "0ad5fa86b1007aefef60a10ccb3a946497477995"
+SRC_URI = "git://github.com/qoriq-open-source/cantest.git;nobranch=1"
+SRCREV = "9a9735862dce192de782550d0ab1a50f163b537c"
 
 S = "${WORKDIR}/git"
 
+EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"'
+
+PARALLEL_MAKE = ""
+
 do_install() {
     install -d ${D}${bindir}
     install -m 755 cantest ${D}${bindir}
 }
 
-COMPATIBLE_MACHINE = "(e500v2)"
 PACKAGE_ARCH = "${MACHINE_SOCARCH}"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 13/29] dpdk: update to 64578fa
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (10 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 12/29] cantest: update SRC_URL Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-30 12:56   ` Otavio Salvador
  2017-09-28  5:33 ` [PATCH 14/29] odp: update to bef6398 Chunrong Guo
                   ` (15 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
64578fa - bus/dpaa: fix port order shuffling
f58c470 - Merge pull request #451 in GITAM/dpdk from feature/DPDK-837 to 17.05-qoriq
7132562 - dpaa: Patch to fix coverity issue
cdc268a - dpaa2: Patch to fix coverity issues.
10bc4d4 - dpaa: Patch to fix coverity issues
38d7299 - dpaa2: add devices in sorted order
780057c - examples/ipsec-secgw: increase max number of SA
c2982a1 - examples/ipsec-secgw: add cfg files for 64x64 tunnels
47150cb - Revert "net: dpaa2: enable rx checksum offload as per user input"
7ebbca7 - net/dpaa:Adding correct Mask layers while ptype calculation
727336c - Revert "net: dpaa2: enable fetching hash result from hardware"

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 .../dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch    | 119 ---------------------
 recipes-extended/dpdk/dpdk_16.07.bb                |   9 +-
 2 files changed, 4 insertions(+), 124 deletions(-)
 delete mode 100644 recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch

diff --git a/recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch b/recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch
deleted file mode 100644
index 399510a..0000000
--- a/recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch
+++ /dev/null
@@ -1,119 +0,0 @@
-From 03ee26cd708971a51f056e3f53482367aa38fcb1 Mon Sep 17 00:00:00 2001
-From: Chunrong Guo <chunrong.guo@nxp.com>
-Date: Wed, 12 Jul 2017 12:03:38 +0800
-Subject: [PATCH] fix build with gcc 7.1
-
-Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
----
- lib/librte_cmdline/cmdline_parse_num.c        |  4 ++--
- lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h |  2 +-
- lib/librte_hash/rte_crc_arm64.h               |  2 ++
- lib/librte_ring/rte_ring.h                    | 18 ++++++++++++------
- mk/toolchain/gcc/rte.vars.mk                  |  6 ++++++
- 5 files changed, 23 insertions(+), 9 deletions(-)
-
-diff --git a/lib/librte_cmdline/cmdline_parse_num.c b/lib/librte_cmdline/cmdline_parse_num.c
-index b0f9a35..e507ec4 100644
---- a/lib/librte_cmdline/cmdline_parse_num.c
-+++ b/lib/librte_cmdline/cmdline_parse_num.c
-@@ -250,7 +250,7 @@ cmdline_parse_num(cmdline_parse_token_hdr_t *tk, const char *srcbuf, void *res,
- 
- 		case HEX:
- 			st = HEX_OK;
--			/* no break */
-+			/* fall-through no break */
- 		case HEX_OK:
- 			if (c >= '0' && c <= '9') {
- 				if (add_to_res(c - '0', &res1, 16) < 0)
-@@ -282,7 +282,7 @@ cmdline_parse_num(cmdline_parse_token_hdr_t *tk, const char *srcbuf, void *res,
- 
- 		case BIN:
- 			st = BIN_OK;
--			/* no break */
-+			/* fall-through */
- 		case BIN_OK:
- 			if (c >= '0' && c <= '1') {
- 				if (add_to_res(c - '0', &res1, 2) < 0)
-diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h
-index e5554ca..8d76f32 100644
---- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h
-+++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h
-@@ -607,7 +607,7 @@ struct igb_adapter {
- 	int int_mode;
- 	u32 rss_queues;
- 	u32 vmdq_pools;
--	char fw_version[32];
-+	char fw_version[43];
- 	u32 wvbr;
- 	struct igb_mac_addr *mac_table;
- #ifdef CONFIG_IGB_VMDQ_NETDEV
-diff --git a/lib/librte_hash/rte_crc_arm64.h b/lib/librte_hash/rte_crc_arm64.h
-index 7dd6334..a17c0e4 100644
---- a/lib/librte_hash/rte_crc_arm64.h
-+++ b/lib/librte_hash/rte_crc_arm64.h
-@@ -110,8 +110,10 @@ rte_hash_crc_set_alg(uint8_t alg)
- 	case CRC32_ARM64:
- 		if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_CRC32))
- 			alg = CRC32_SW;
-+                /* fall-through */
- 	case CRC32_SW:
- 		crc32_alg = alg;
-+                /* fall-through */
- 	default:
- 		break;
- 	}
-diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h
-index 0e22e69..085f3fe 100644
---- a/lib/librte_ring/rte_ring.h
-+++ b/lib/librte_ring/rte_ring.h
-@@ -364,9 +364,12 @@ void rte_ring_dump(FILE *f, const struct rte_ring *r);
- 			r->ring[idx+3] = obj_table[i+3]; \
- 		} \
- 		switch (n & 0x3) { \
--			case 3: r->ring[idx++] = obj_table[i++]; \
--			case 2: r->ring[idx++] = obj_table[i++]; \
--			case 1: r->ring[idx++] = obj_table[i++]; \
-+		case 3: \
-+			r->ring[idx++] = obj_table[i++]; /* fallthrough */ \
-+		case 2: \
-+			r->ring[idx++] = obj_table[i++]; /* fallthrough */ \
-+		case 1: \
-+			r->ring[idx++] = obj_table[i++]; /* fallthrough */  \
- 		} \
- 	} else { \
- 		for (i = 0; idx < size; i++, idx++)\
-@@ -390,9 +393,12 @@ void rte_ring_dump(FILE *f, const struct rte_ring *r);
- 			obj_table[i+3] = r->ring[idx+3]; \
- 		} \
- 		switch (n & 0x3) { \
--			case 3: obj_table[i++] = r->ring[idx++]; \
--			case 2: obj_table[i++] = r->ring[idx++]; \
--			case 1: obj_table[i++] = r->ring[idx++]; \
-+		case 3: \
-+			obj_table[i++] = r->ring[idx++]; /* fallthrough */ \
-+		case 2: \
-+			obj_table[i++] = r->ring[idx++]; /* fallthrough */ \
-+		case 1: \
-+			obj_table[i++] = r->ring[idx++]; /* fallthrough */ \
- 		} \
- 	} else { \
- 		for (i = 0; idx < size; i++, idx++) \
-diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk
-index 94f6412..350c8bc 100644
---- a/mk/toolchain/gcc/rte.vars.mk
-+++ b/mk/toolchain/gcc/rte.vars.mk
-@@ -101,5 +101,11 @@ ifeq ($(shell test $(GCC_VERSION) -lt 47 && echo 1), 1)
- WERROR_FLAGS += -Wno-uninitialized
- endif
- 
-+ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1)
-+# Tell GCC only to error for switch fallthroughs without a suitable comment
-+# Ignore errors for snprintf truncation
-+WERROR_FLAGS += -Wno-format-truncation
-+endif
-+
- export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
- export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
--- 
-2.7.4
-
diff --git a/recipes-extended/dpdk/dpdk_16.07.bb b/recipes-extended/dpdk/dpdk_16.07.bb
index b47d041..b264a21 100644
--- a/recipes-extended/dpdk/dpdk_16.07.bb
+++ b/recipes-extended/dpdk/dpdk_16.07.bb
@@ -12,9 +12,8 @@ inherit module
 SRC_URI = "git://github.com/qoriq-open-source/dpdk.git;nobranch=1 \
     file://add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch \
     file://0001-include-sys-sysmacros.h-for-major-minor-defintions.patch \
-    file://0001-fix-build-with-gcc-7.1.patch \
 "
-SRCREV = "98f548c36b3c805a04d9963b8eb02e09340aa089"
+SRCREV = "64578fa146b459ef88f90e1cb1bf9c3fc3b36b97"
 
 S = "${WORKDIR}/git"
 
@@ -55,8 +54,8 @@ do_install() {
     install -d ${D}/lib/modules/${KERNEL_VERSION}/dpdk
     install -m 0755 ${S}/${RTE_TARGET}/kmod/rte_kni.ko ${D}/lib/modules/${KERNEL_VERSION}/dpdk/
 
-    sed -i 's#/bin/echo#/bin/bash#' ${D}/${datadir}/scripts/load-devel-config.sh
-   # rm ${S}/${RTE_TARGET}/app/dpdk-pmdinfogen
+    #sed -i 's#/bin/echo#/bin/bash#' ${D}/${datadir}/scripts/load-devel-config.sh
+    #rm ${S}/${RTE_TARGET}/app/dpdk-pmdinfogen
     rm ${D}/${datadir}/${RTE_TARGET}/app/dpdk-pmdinfogen
 
     chown root:root -R ${D}
@@ -66,7 +65,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 PACKAGES += "${PN}-examples"
 
-FILES_${PN} += "${datadir}/tools /usr/bin/* /usr/sbin/*"
+FILES_${PN} += "${datadir}/tools /usr/bin/* /usr/sbin/* /usr/share/*"
 FILES_${PN}-dbg += "${bindir}/dpdk-example/.debug \
     ${datadir}/examples/kni/build/.debug \
     ${datadir}/examples/kni/build/app/.debug \
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 14/29] odp: update to bef6398
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (11 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 13/29] dpdk: update to 64578fa Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-30 12:57   ` Otavio Salvador
  2017-09-28  5:33 ` [PATCH 15/29] ovs-dpdk: update SRC_URL Chunrong Guo
                   ` (14 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
bef6398 - TM: Invalid flow crash fix
8e7a136 - Removed device based jiffies
df492ef - Fixing legal issues
3e9c5da - Scripts: binaries path and odp_tm test cases updated
c91dac8 - Werror flag enabled for ODP library
ced3aaf - Updated MC flib to version 10.3.2
a68cd87 - odp_pktio_stats API updated
03e0e05 - LD_LIBRARY_PATH removed from loopback_script
7a64406 - CUNIT: Cunit installation enabled
048c6a6 - script: ODP library path fixed

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-extended/odp/odp.inc    | 10 ++++++----
 recipes-extended/odp/odp_git.bb |  7 +++----
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/recipes-extended/odp/odp.inc b/recipes-extended/odp/odp.inc
index 421deff..3a319f3 100644
--- a/recipes-extended/odp/odp.inc
+++ b/recipes-extended/odp/odp.inc
@@ -4,7 +4,7 @@ DESCRIPTION = "OpenDataPlane (ODP) provides a data plane application programming
 HOMEPAGE = "http://www.opendataplane.org"
 SECTION = "console/network"
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=472053b942339f200d9e1d2dcb947e9d"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ca6103dc75397fb6bec596187d6b7829"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/odp:"
 
@@ -14,11 +14,13 @@ git://github.com/qoriq-open-source/qbman_userspace.git;nobranch=1;name=qbman;des
 git://github.com/qoriq-open-source/flib.git;nobranch=1;name=rta;destsuffix=git/platform/linux-dpaa2/flib/rta \
 "
 
-SRC_URI += "file://0001-Fix-this-build-error.patch"
+SRC_URI += "file://0001-Fix-this-build-error.patch \
+"
+
+SRCREV = "bef6398a09db4a6b909aa0c6accc7c15621ce5ef"
 
-SRCREV = "fdb26cb5c751afadf2299da2a1376e6ca0e61cc7"
 SRCREV_qbman = "097595befc2bb60b733027e94ad2ed16a0e9cae0"
-SRCREV_rta = "2c9b9dc22699f7c00f24a2134c42901932a6a0b9"
+SRCREV_rta = "bbab28b03ae21c52ce913f8b052acf53bd24ff5d"
 
 S = "${WORKDIR}/git"
 
diff --git a/recipes-extended/odp/odp_git.bb b/recipes-extended/odp/odp_git.bb
index b7c7deb..9b926a8 100644
--- a/recipes-extended/odp/odp_git.bb
+++ b/recipes-extended/odp/odp_git.bb
@@ -12,8 +12,6 @@ ODP_SOC ?= ""
 ODP_SOC_ls1043ardb = "LS1043"
 ODP_SOC_ls1046ardb = "LS1046"
 ODP_PLATFORM ?= "linux-dpaa2"
-ODP_PLATFORM_ls1043ardb = "linux-dpaa1"
-ODP_PLATFORM_ls1046ardb = "linux-dpaa1"
 ODP_BUILD_TYPE ?= "ls2088"
 ODP_BUILD_TYPE_ls1043ardb = "ls1043"
 ODP_BUILD_TYPE_ls1046ardb = "ls1046"
@@ -21,17 +19,18 @@ ODP_BUILD_TYPE_ls2080ardb = "ls2080"
 ODP_BUILD_TYPE_ls1088ardb = "ls1088"
 
 EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \
-                --with-sdk-install-path=${STAGING_DIR_TARGET} \
-                --enable-build-type=${ODP_BUILD_TYPE} \
                 --enable-test-vald \
                 --enable-test-perf \
                 --enable-test-cpp \
 "
 
+
 EXTRA_OEMAKE = "CROSS_COMPILE="${TARGET_PREFIX}" \
                 SYSROOT="${STAGING_DIR_TARGET}" \
 "
 
+CFLAGS += "-Wno-format-truncation -Wno-maybe-uninitialized -Wno-implicit-fallthrough"
+
 PACKAGECONFIG[perf] = "--enable-test-perf,,,"
 
 do_configure_prepend () {
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 15/29] ovs-dpdk: update SRC_URL
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (12 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 14/29] odp: update to bef6398 Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:33 ` [PATCH 16/29] linux :update to 9c3f355 Chunrong Guo
                   ` (13 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-extended/ovs-dpdk/ovs-dpdk_0.1.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes-extended/ovs-dpdk/ovs-dpdk_0.1.bb b/recipes-extended/ovs-dpdk/ovs-dpdk_0.1.bb
index e8d89c7..78188cd 100644
--- a/recipes-extended/ovs-dpdk/ovs-dpdk_0.1.bb
+++ b/recipes-extended/ovs-dpdk/ovs-dpdk_0.1.bb
@@ -7,8 +7,8 @@ RDEPENDS_${PN} = "bash libcrypto libssl python"
 
 inherit pythonnative
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/ovs-dpdk.git;nobranch=1"
-SRCREV = "84599fad4a10597fb4377174abdeb84b871cb4b0"
+SRC_URI = "git://github.com/qoriq-open-source/ovs-dpdk.git;nobranch=1"
+SRCREV = "626a2600f093d84608a1bde29336f523ac74ae99"
 
 S = "${WORKDIR}/git"
 
@@ -46,4 +46,4 @@ do_install() {
 ALLOW_EMPTY_${PN} = "1"
 INHIBIT_PACKAGE_STRIP = "1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-COMPATIBLE_MACHINE = "(ls2080ardb|ls2084ardb|ls2088a|ls1043a|ls1046a)"
+COMPATIBLE_MACHINE = "(ls2080ardb|ls2084ardb|ls2088a|ls1043a|ls1046a|ls1088a)"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 16/29] linux :update to 9c3f355
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (13 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 15/29] ovs-dpdk: update SRC_URL Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-30 12:59   ` Otavio Salvador
  2017-09-28  5:33 ` [PATCH 17/29] linux-qoriq: update to v4.9 Chunrong Guo
                   ` (12 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

9c3f355 - mtd: spi-nor: fsl-qspi: Limit read to specified count provided by above layer
66d46f2 - sdk_dpaa: ls1043a errata: maintain timestamp info
f2576e9 - arm: configs: enable CONFIG_IP_MULTICAST in lsdk.config
a48b188 - dts: ls1043aqds: add #address-cells = <1> and #size-cells to fpga node
7fe4a5f - drm/fsl-dcu: fix the wrong calling sequence for clk_prepare and clk_enable
a645ba5 - mtd: spi-nor: fsl-quadspi: workaround for TKT253890
e2485a1 - drivers: firmware: psci: use psci v0.2 to implement sleep
86c8006 - i2c: imx: allow i2c devices share an interrupt
d9c2cd4 - dpaa_eth: avoid Tx timeout warnings
195de47 - dpaa_eth: avoid Tx timeout warnings
a07f339 - usb: dwc3: fix some occasional call trace
a43e0b7 - gianfar: Fix Tx flow control deactivation
70caa34 - sdk_dpaa: ls1043a errata: fix arm32 build
3ca12f1 - sdk_dpaa: ls1043a errata: do not recycle the realigned buffers
c665a20 - sdk_dpaa: ls1043a errata: verify and resize headroom alignment
b0375c7 - sdk_dpaa: ls1043a errata: realign skb in place if needed
e587be3 - sdk_dpaa: ls1043a errata: realign and linearize egress skbs
438cbca - sdk_dpaa: ls1043a errata: resplit the skb after copy
66d6eb5 - linux/core: export copy_skb_header() function
acbc1db - arm:configs: Add lttng.config to support LTTng modules
9621724 - arm64:configs: Add lttng.config to support LTTng modules
1405d32 - arm64: defconfig: enable CONFIG_RTC_DRV_PCF85263
3c94ee2 - config: rtc: pcf85263: add NXP PCF85263 support (i2c)
5e102e1 - config: enable support for lxd and lxd-bridge
e3fc409 - arm64: dts: ls1012a: add USB host controller nodes
dd6b18e - arm64: dts: ls1043a: add pcf85263 rtc nodes
b9183aa - rtc: pcf85263: add NXP PCF85263 support (i2c)
0f94fc9 - usb: dwc3: fix usb dwc3 compile issue
9ca14ec - usb: dwc3: core: re-factor init and exit paths
ee6056c - usb: dwc3: core: move fladj to dwc3 structure
7ef4ead - usb: dwc3: core: add fifo space helper
5f03a20 - usb: dwc3: add disable receiver detection in P3 quirk
74531b8 - usb: dwc3: core: fix PHY handling during suspend
eedbe26 - usb: dwc3: drop ev_buffs array
3b62719 - usb: dwc3: remove num_event_buffers
53891bf - usb: dwc3: drop FIFO resizing logic
9cbc0b72 - usb: dwc3: Validate the maximum_speed parameter
cec41d7 - usb: dwc3: Update maximum_speed for SuperSpeedPlus

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-kernel/linux/linux-qoriq_4.4.bb | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/recipes-kernel/linux/linux-qoriq_4.4.bb b/recipes-kernel/linux/linux-qoriq_4.4.bb
index a22a51c..e7fc13a 100644
--- a/recipes-kernel/linux/linux-qoriq_4.4.bb
+++ b/recipes-kernel/linux/linux-qoriq_4.4.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
 SRC_URI = "git://github.com/qoriq-open-source/linux.git;nobranch=1 \
 "
-SRCREV = "ec61f521be6a22b100aabc0e2726c670aec3c845"
+SRCREV = "9c3f3554c9e7b01aa583ba377de81cd95ab4ab65"
 
 S = "${WORKDIR}/git"
 
@@ -63,10 +63,15 @@ do_install_append_qoriq-arm() {
     ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage
 }
 
-do_deploy_append_qoriq-arm() {
-    install -m 0644 arch/${ARCH}/boot/zImage ${DEPLOYDIR}/${ZIMAGE_BASE_NAME}.bin
-    ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage-${MACHINE}.bin
-    ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage
+do_deploy_append_qoriq-arm64() {
+    if [ -f ${DEPLOYDIR}/fsl-ls1043a-rdb-sdk.dtb ]; then
+        mv fsl-ls1043a-rdb-sdk.dtb fsl-ls1043a-rdb.dtb
+        mv  Image-fsl-ls1043a-rdb-sdk.dtb Image-fsl-ls1043a-rdb.dtb
+    fi
+    if [ -f ${DEPLOYDIR}/fsl-ls1046a-rdb-sdk.dtb ]; then
+        mv fsl-ls1046a-rdb-sdk.dtb fsl-ls1046a-rdb.dtb
+        mv Image-fsl-ls1046a-rdb-sdk.dtb Image-fsl-ls1046a-rdb.dtb
+    fi
 }
 
 FILES_kernel-image += "/boot/zImage*"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 17/29] linux-qoriq: update to v4.9
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (14 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 16/29] linux :update to 9c3f355 Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-30 13:02   ` Otavio Salvador
  2017-09-28  5:33 ` [PATCH 18/29] qoriq-base: add UBINIZE_ARGS and MKUBIFS_ARGS Chunrong Guo
                   ` (11 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-kernel/linux/linux-qoriq_4.9.bb | 78 +++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-qoriq_4.9.bb

diff --git a/recipes-kernel/linux/linux-qoriq_4.9.bb b/recipes-kernel/linux/linux-qoriq_4.9.bb
new file mode 100644
index 0000000..c434c34
--- /dev/null
+++ b/recipes-kernel/linux/linux-qoriq_4.9.bb
@@ -0,0 +1,78 @@
+inherit kernel qoriq_build_64bit_kernel
+inherit fsl-kernel-localversion
+
+SUMMARY = "Linux Kernel for Freescale QorIQ platforms"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+SRC_URI = "git://github.com/qoriq-open-source/linux.git;nobranch=1 \
+"
+SRCREV = "f5edd990c1ed7844032db171e72a2d71cfc4712c"
+
+S = "${WORKDIR}/git"
+
+DEPENDS_append = " libgcc"
+# not put Images into /boot of rootfs, install kernel-image if needed
+RDEPENDS_kernel-base = ""
+
+KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
+KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+
+ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
+ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
+
+SCMVERSION ?= "y"
+LOCALVERSION = ""
+DELTA_KERNEL_DEFCONFIG ?= ""
+DELTA_KERNEL_DEFCONFIG_prepend_qoriq-arm64 = "lsdk.config "
+DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2-32b = "multi_v7_lpae.config lsdk.config multi_v8.config "
+DELTA_KERNEL_DEFCONFIG_prepend_ls102xa = "multi_v7_lpae.config lsdk.config "
+
+do_merge_delta_config() {
+    # copy desired defconfig so we pick it up for the real kernel_do_configure
+    cp ${KERNEL_DEFCONFIG} .config
+    
+    # add config fragments
+    for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
+        if [ -f "${deltacfg}" ]; then
+            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
+        elif [ -f "${WORKDIR}/${deltacfg}" ]; then
+            ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
+        elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then
+            ${S}/scripts/kconfig/merge_config.sh -m .config \
+                ${S}/arch/${ARCH}/configs/${deltacfg}
+        fi
+    done
+    cp .config ${WORKDIR}/defconfig
+}
+addtask merge_delta_config before do_preconfigure after do_patch
+
+# The link of dts folder is needed for 32b compile of aarch64 targets(e.g. ls1043ardb-32b)
+do_compile_prepend_fsl-lsch2-32b() {
+    ln -sfT ${STAGING_KERNEL_DIR}/arch/arm64/boot/dts/freescale ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale
+}
+
+do_install_prepend_fsl-lsch2-32b() {
+    rm -f ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale
+}
+
+do_install_append_qoriq-arm() {
+    install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION}
+    ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage
+}
+
+do_deploy_append_qoriq-arm64() {
+    if [ -f ${DEPLOYDIR}/fsl-ls1043a-rdb-sdk.dtb ]; then
+        mv fsl-ls1043a-rdb-sdk.dtb fsl-ls1043a-rdb.dtb
+        mv  Image-fsl-ls1043a-rdb-sdk.dtb Image-fsl-ls1043a-rdb.dtb
+    fi
+    if [ -f ${DEPLOYDIR}/fsl-ls1046a-rdb-sdk.dtb ]; then
+        mv fsl-ls1046a-rdb-sdk.dtb fsl-ls1046a-rdb.dtb
+        mv Image-fsl-ls1046a-rdb-sdk.dtb Image-fsl-ls1046a-rdb.dtb
+    fi
+}
+
+FILES_kernel-image += "/boot/zImage*"
+COMPATIBLE_MACHINE = "(qoriq)"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 18/29] qoriq-base: add UBINIZE_ARGS and MKUBIFS_ARGS
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (15 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 17/29] linux-qoriq: update to v4.9 Chunrong Guo
@ 2017-09-28  5:33 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 19/29] ppa :update to d455113 Chunrong Guo
                   ` (10 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:33 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/include/qoriq-base.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/conf/machine/include/qoriq-base.inc b/conf/machine/include/qoriq-base.inc
index 562f5d7..dcb6d4e 100644
--- a/conf/machine/include/qoriq-base.inc
+++ b/conf/machine/include/qoriq-base.inc
@@ -27,3 +27,6 @@ MACHINE_ARCH_FILTER = "virtual/kernel"
 MACHINE_SOCARCH_FILTER_append_qoriq = " cryptodev-qoriq-linux cryptodev-qoriq-module cryptodev-qoriq-test openssl-qoriq"
 
 INHERIT += "fsl-dynamic-packagearch"
+
+MKUBIFS_ARGS ??= "-m 512 -e 15360 -c 12000"
+UBINIZE_ARGS ??= "-m 512 -p 16KiB -s 512"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 19/29] ppa :update to d455113
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (16 preceding siblings ...)
  2017-09-28  5:33 ` [PATCH 18/29] qoriq-base: add UBINIZE_ARGS and MKUBIFS_ARGS Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 20/29] uefi :update to bd59c46 Chunrong Guo
                   ` (9 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

This includes the following changes:

d455113 - Fixing offset into bootcore data area.
87b117e - Moving Chassis defs out of soc.h and into lsch3/lsch2.h.
93f17b3 - Releasing cores from reset that are marked "to be disabled".
2872682 - Fixing ordering problem in makefile.inc which caused builds using earlier than GCC 6.2 to fail.
f52a4a9 - Adding separate folders for each driver; Adding rdb board for LA17xx.
b003ea1 - Adding initial ppa for soc LA17xx.
ce7f372 - Changing secondary core release method to reduce risk of race condition between ppa and bootrom.
78b8281 - Fixing psci data area initialization.
bed0d04 - Eliminating race condition between psci and bootrom on core release.
89ddb56 - Cleanup of prefetch disable function.
8781337 - Fix for QPPA-23: overwriting saved link register in _soc_init_start when bootcore used to initialize ocram.
4ee3738 - Adding header file left out of last commit.
cc33e5e - Adding smc function prefetch disable.
2de51a3 - Changing psci call to _soc_core_rls_wait into a call to _soc_core_release.
12be3c6 - Updating text in license file.
76a61f5 - Added release note deprecating build methods using "make"

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-bsp/ppa/ppa/0001-fix-path-error.patch | 77 +++++++++++++++++++++++++++
 recipes-bsp/ppa/ppa_git.bb                    |  6 ++-
 2 files changed, 81 insertions(+), 2 deletions(-)
 create mode 100644 recipes-bsp/ppa/ppa/0001-fix-path-error.patch

diff --git a/recipes-bsp/ppa/ppa/0001-fix-path-error.patch b/recipes-bsp/ppa/ppa/0001-fix-path-error.patch
new file mode 100644
index 0000000..28d7b31
--- /dev/null
+++ b/recipes-bsp/ppa/ppa/0001-fix-path-error.patch
@@ -0,0 +1,77 @@
+From aa3b419876af9c2a9265fba7c7264130e1bc4926 Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <chunrong.guo@nxp.com>
+Date: Wed, 27 Sep 2017 10:45:04 +0800
+Subject: [PATCH] fix path error
+
+fix the below error:
+|Makefile:58: ../armv8/gic.mk: No such file or directory
+
+Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
+---
+ ppa/soc-ls1046/Makefile | 4 ++--
+ ppa/soc-ls1088/Makefile | 4 ++--
+ ppa/soc-ls2088/Makefile | 5 +++--
+ 3 files changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/ppa/soc-ls1046/Makefile b/ppa/soc-ls1046/Makefile
+index 34ffe2d..6a06514 100644
+--- a/ppa/soc-ls1046/Makefile
++++ b/ppa/soc-ls1046/Makefile
+@@ -55,12 +55,12 @@ include $(PRE_PATH)soc.def
+ # -----------------------------------------------------------------------------
+ 
+  # include the gic architecture file
+-include ../armv8/gic.mk
++include $(PRE_PATH)../armv8/gic.mk
+ 
+ # -----------------------------------------------------------------------------
+ 
+  # include the interconnect architecture file
+-include ../armv8/inter.mk
++include $(PRE_PATH)../armv8/inter.mk
+ 
+ # -----------------------------------------------------------------------------
+ 
+diff --git a/ppa/soc-ls1088/Makefile b/ppa/soc-ls1088/Makefile
+index 7fc5db9..6472408 100644
+--- a/ppa/soc-ls1088/Makefile
++++ b/ppa/soc-ls1088/Makefile
+@@ -55,12 +55,12 @@ include $(PRE_PATH)soc.def
+ # -----------------------------------------------------------------------------
+ 
+  # include the gic architecture file
+-include ../armv8/gic.mk
++include $(PRE_PATH)../armv8/gic.mk
+ 
+ # -----------------------------------------------------------------------------
+ 
+  # include the interconnect architecture file
+-include ../armv8/inter.mk
++include $(PRE_PATH)../armv8/inter.mk
+ 
+ # -----------------------------------------------------------------------------
+ 
+diff --git a/ppa/soc-ls2088/Makefile b/ppa/soc-ls2088/Makefile
+index de3a06c..2fe23e2 100644
+--- a/ppa/soc-ls2088/Makefile
++++ b/ppa/soc-ls2088/Makefile
+@@ -54,13 +54,14 @@ include $(PRE_PATH)soc.def
+ 
+ # -----------------------------------------------------------------------------
+ 
++include $(PRE_PATH)../armv8/gic.mk
+  # include the gic architecture file
+-include ../armv8/gic.mk
++include $(PRE_PATH)../armv8/gic.mk
+ 
+ # -----------------------------------------------------------------------------
+ 
+  # include the interconnect architecture file
+-include ../armv8/inter.mk
++include $(PRE_PATH)../armv8/inter.mk
+ 
+ # -----------------------------------------------------------------------------
+ 
+-- 
+2.7.4
+
diff --git a/recipes-bsp/ppa/ppa_git.bb b/recipes-bsp/ppa/ppa_git.bb
index ede3b64..1bfaa65 100644
--- a/recipes-bsp/ppa/ppa_git.bb
+++ b/recipes-bsp/ppa/ppa_git.bb
@@ -6,8 +6,10 @@ DEPENDS += "u-boot-mkimage-native dtc-native"
 
 inherit deploy
 
-SRC_URI = "git://github.com/qoriq-open-source/ppa-generic.git;nobranch=1"
-SRCREV = "265d766de8c7f3161f2580af18558af35e114845"
+SRC_URI = "git://github.com/qoriq-open-source/ppa-generic.git;nobranch=1 \
+    file://0001-fix-path-error.patch \
+"
+SRCREV = "d455113088e157e3b544c376b5f1f6d044cbdf66"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 20/29] uefi :update to bd59c46
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (17 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 19/29] ppa :update to d455113 Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 21/29] dpl-examples: update to a6c8375 Chunrong Guo
                   ` (8 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
bd59c46 - update binaries for LSDK 1709

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-bsp/uefi/uefi_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/uefi/uefi_git.bb b/recipes-bsp/uefi/uefi_git.bb
index b42a85e..1493f0d 100644
--- a/recipes-bsp/uefi/uefi_git.bb
+++ b/recipes-bsp/uefi/uefi_git.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 inherit deploy
 
 SRC_URI = "git://github.com/qoriq-open-source/uefi-binary.git;nobranch=1"
-SRCREV= "d0974b734d0c50c99baebf54957ce32433905e40"
+SRCREV= "bd59c468be50737e0d12894c5e6debde433369bd"
 
 S = "${WORKDIR}/git"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 21/29] dpl-examples: update to a6c8375
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (18 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 20/29] uefi :update to bd59c46 Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-30 13:03   ` Otavio Salvador
  2017-09-28  5:34 ` [PATCH 22/29] mc:update to 10.3.2 Chunrong Guo
                   ` (7 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

*include the following changes
a6c8375 - Merge pull request #151 in DPAA2/dpl-examples from ls1088a to master
804d48a - ls1088a: add custom DPC with 4M bman buffers
b51acbb - Merge pull request #148 in DPAA2/dpl-examples from ls1088a to master
3fe5c1a - ls1088a: Added DPNI@1 connected to DPMAC@2
05e9c76 - Merge pull request #141 in DPAA2/dpl-examples from ls2088a to master
89dfc05 - Merge pull request #140 in DPAA2/dpl-examples from ls1088a to master
8086cca - ls1088a: Added DPC and DPL for backplane support
cf5aecb - ls2088a: Added DPC and DPL for backplane support
759cbc9 - add root LICENSE file
365f259 - add root LICENSE file

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-dpaa2/dpl-examples/dpl-examples_git.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-dpaa2/dpl-examples/dpl-examples_git.bb b/recipes-dpaa2/dpl-examples/dpl-examples_git.bb
index d6d668b..2e57d19 100644
--- a/recipes-dpaa2/dpl-examples/dpl-examples_git.bb
+++ b/recipes-dpaa2/dpl-examples/dpl-examples_git.bb
@@ -7,7 +7,7 @@ DEPENDS = "dtc-native"
 inherit deploy
 
 SRC_URI = "git://github.com/qoriq-open-source/dpl-examples.git;nobranch=1"
-SRCREV = "592fc2fd1f13107c8a4ae8070fed11a5f8d10471"
+SRCREV = "a6c83759c0d9c02822eec89e86357a0998ef51d4"
 
 S = "${WORKDIR}/git"
 
@@ -17,11 +17,14 @@ REGLEX_ls1088a = "ls1088a"
 do_install () {
     install -d ${D}/boot
     install -m 644 ${S}/${REGLEX}/RDB/*.dtb ${D}/boot
+    
 }
 
 do_deploy () {
     install -d ${DEPLOYDIR}/dpl-examples
+    install -d ${DEPLOYDIR}/dpl-examples/${REGLEX}/RDB/custom
     install -m 644 ${S}/${REGLEX}/RDB/*.dtb ${DEPLOYDIR}/dpl-examples
+    install -m 644 ${S}/${REGLEX}/RDB/custom/*.dtb ${DEPLOYDIR}/dpl-examples/${REGLEX}/RDB/custom
 }
 addtask deploy before do_build after do_install
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 22/29] mc:update to 10.3.2
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (19 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 21/29] dpl-examples: update to a6c8375 Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 23/29] secure-boot-qoriq : add recipes Chunrong Guo
                   ` (6 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 .../management-complex_10.2.2.bb                   | 39 ----------------------
 .../management-complex_10.3.2.bb                   | 39 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 39 deletions(-)
 delete mode 100644 recipes-dpaa2/management-complex/management-complex_10.2.2.bb
 create mode 100644 recipes-dpaa2/management-complex/management-complex_10.3.2.bb

diff --git a/recipes-dpaa2/management-complex/management-complex_10.2.2.bb b/recipes-dpaa2/management-complex/management-complex_10.2.2.bb
deleted file mode 100644
index a637754..0000000
--- a/recipes-dpaa2/management-complex/management-complex_10.2.2.bb
+++ /dev/null
@@ -1,39 +0,0 @@
-SUMMARY = "DPAA2 Management Complex Firmware"
-LICENSE = "Freescale-Binary-EULA"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=0ef9ba7621bd36f5fef5009fbeb56b00"
-
-inherit deploy
-
-INHIBIT_DEFAULT_DEPS = "1"
-
-SRC_URI = "git://github.com/qoriq-open-source/mc-binary.git;nobranch=1"
-SRCREV = "5798f9c2ec0f3b1f2a7a67dc666c87ae3ade837b"
-
-S = "${WORKDIR}/git"
-
-REGLEX_ls2088a = "ls2088a"
-REGLEX_ls1088a = "ls1088a"
-
-do_install () {
-    install -d ${D}/boot
-    install -m 755 ${S}/${REGLEX}/*.itb ${D}/boot
-}
-
-do_deploy () {
-    install -d ${DEPLOYDIR}/mc_app
-    install -m 755 ${S}/${REGLEX}/*.itb ${DEPLOYDIR}/mc_app
-    # make a symlink to the latest binary
-    for mc_binary in `ls ${DEPLOYDIR}/mc_app |sort`;do
-        ln -sfT ${mc_binary} ${DEPLOYDIR}/mc_app/mc.itb
-    done
-}
-addtask deploy before do_build after do_install
-
-PACKAGES += "${PN}-image"
-FILES_${PN}-image += "/boot"
-
-INHIBIT_PACKAGE_STRIP = "1"
-
-COMPATIBLE_MACHINE = "(ls2080ardb|ls2088a|ls1088a)"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
diff --git a/recipes-dpaa2/management-complex/management-complex_10.3.2.bb b/recipes-dpaa2/management-complex/management-complex_10.3.2.bb
new file mode 100644
index 0000000..84c952c
--- /dev/null
+++ b/recipes-dpaa2/management-complex/management-complex_10.3.2.bb
@@ -0,0 +1,39 @@
+SUMMARY = "DPAA2 Management Complex Firmware"
+LICENSE = "Freescale-Binary-EULA"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0ef9ba7621bd36f5fef5009fbeb56b00"
+
+inherit deploy
+
+INHIBIT_DEFAULT_DEPS = "1"
+
+SRC_URI = "git://github.com/qoriq-open-source/mc-binary.git;nobranch=1"
+SRCREV = "5e4a0d854def8cc4090cb86b26ac4ac18e7e4143"
+
+S = "${WORKDIR}/git"
+
+REGLEX_ls2088a = "ls2088a"
+REGLEX_ls1088a = "ls1088a"
+
+do_install () {
+    install -d ${D}/boot
+    install -m 755 ${S}/${REGLEX}/*.itb ${D}/boot
+}
+
+do_deploy () {
+    install -d ${DEPLOYDIR}/mc_app
+    install -m 755 ${S}/${REGLEX}/*.itb ${DEPLOYDIR}/mc_app
+    # make a symlink to the latest binary
+    for mc_binary in `ls ${DEPLOYDIR}/mc_app |sort`;do
+        ln -sfT ${mc_binary} ${DEPLOYDIR}/mc_app/mc.itb
+    done
+}
+addtask deploy before do_build after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+
+INHIBIT_PACKAGE_STRIP = "1"
+
+COMPATIBLE_MACHINE = "(ls2080ardb|ls2088a|ls1088a)"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 23/29] secure-boot-qoriq : add recipes
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (20 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 22/29] mc:update to 10.3.2 Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-30 13:06   ` Otavio Salvador
  2017-09-28  5:34 ` [PATCH 24/29] ls1088ardb: update UBOOT_CONFIG Chunrong Guo
                   ` (5 subsequent siblings)
  27 siblings, 1 reply; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>>
---
 recipes-bsp/u-boot/secure-boot-qoriq.bb | 177 ++++++++++++++++++++++++++++++++
 1 file changed, 177 insertions(+)
 create mode 100644 recipes-bsp/u-boot/secure-boot-qoriq.bb

diff --git a/recipes-bsp/u-boot/secure-boot-qoriq.bb b/recipes-bsp/u-boot/secure-boot-qoriq.bb
new file mode 100644
index 0000000..d4ba2dc
--- /dev/null
+++ b/recipes-bsp/u-boot/secure-boot-qoriq.bb
@@ -0,0 +1,177 @@
+DESCRIPTION = "NXP secure bootloader for qoriq devices"
+SECTION = "bootloaders"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+inherit deploy
+
+DEPENDS = "u-boot-mkimage-native cst-native"
+
+do_deploy[nostamp] = "1"
+do_deploy[depends] += "virtual/kernel:do_build u-boot:do_build"
+
+S = "${WORKDIR}"
+
+do_patch[noexec] = "1"
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_deploy () {
+    if [ -n "${UBOOT_SCR}" ] ; then
+        if [ -n "${SECUREVALIDATE}" ]; then
+            if [ "${ENCAP}" = "1" ] ; then
+                if [ "${BOOTSCRIPT_DEC}" != null ] ; then
+                    echo ${SECUREVALIDATE_DEC} > ${BOOTSCRIPT_DEC}.tmp
+                    echo ${DISTROBOOT} >> ${BOOTSCRIPT_DEC}.tmp
+                mkimage -A arm64 -O linux -T script -C none -a 0 -e 0  -n "boot.scr" -d ${BOOTSCRIPT_DEC}.tmp ${BOOTSCRIPT_DEC}
+                rm -f ${BOOTSCRIPT_DEC}.tmp
+                install ${B}/${BOOTSCRIPT_DEC} ${DEPLOY_DIR_IMAGE}/
+                fi
+                echo ${SECUREVALIDATE_ENC} > ${UBOOT_SCR}.tmp
+            else
+                echo ${SECUREVALIDATE} > ${UBOOT_SCR}.tmp
+            fi
+        fi
+        echo ${DISTROBOOT} >> ${UBOOT_SCR}.tmp
+        mkimage -A arm64 -O linux -T script -C none -a 0 -e 0  -n "boot.scr" -d ${UBOOT_SCR}.tmp ${UBOOT_SCR}
+        rm -f ${UBOOT_SCR}.tmp
+        install ${B}/${UBOOT_SCR} ${DEPLOY_DIR_IMAGE}/
+        install ${B}/${UBOOT_SCR} ${DEPLOY_DIR_IMAGE}/bootscript
+    fi
+
+    if [ "x${UBOOT_SECURE_ENABLE}" = "x1" ]; then
+        echo ${DISTROBOOT} >> bootscript
+        cp bootscript ${DEPLOY_DIR_IMAGE}/ 
+    fi
+
+    if [ -n "${KERNEL_IMG}" ]; then
+        cd ${DEPLOY_DIR_IMAGE}
+        rm -rf  ${KERNEL_IMG}.bin.gz ${KERNEL_IMG}.bin
+        cp ${KERNEL_IMG} ${KERNEL_IMG}.bin
+        gzip ${KERNEL_IMG}.bin
+        mkimage -A arm64 -O linux -T kernel -C gzip  -a 0x80080000 -e 0x80080000 -n Linux -d ${KERNEL_IMG}.bin.gz ${KERNEL_UIMG}
+    fi
+
+    cd ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst
+    ./gen_keys 1024
+    if [ "${ENCAP}" = "1" ]; then
+        cp ${DEPLOY_DIR_IMAGE}/${BOOTSCRIPT_DEC} ./
+    fi
+    cp ${DEPLOY_DIR_IMAGE}/bootscript  ./
+    if [ ${MACHINE} = ls1021atwr ]; then
+        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_UIMG}-${MACHINE}.bin   uImage.bin
+        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_UIMG}-${DEVICE_TREE}  uImage.dtb
+        cp ${DEPLOY_DIR_IMAGE}/itbImage-${MACHINE}.bin  kernel.itb
+    else
+        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMG}-${DEVICE_TREE}  uImage.dtb
+        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_UIMG}   uImage.bin
+        cp ${DEPLOY_DIR_IMAGE}/itbImage-${MACHINE}.bin  kernel.itb
+    fi
+
+
+    if [ -n "${UBOOT_CONFIG}" ]
+    then   
+        for type in ${UBOOT_CONFIG}; do
+            if  echo ${type} | grep -iE 'nor-secure-boot'; then
+                type_tmp=nor
+                if [ ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] ; then
+                    if [ -z "${RCW_NOR}" -o "${RCW_NOR}" = "null" ]; then
+                        echo boot nor on board not unsupported!
+                        exit
+                    fi
+                    cp ${DEPLOY_DIR_IMAGE}/${RCW_NOR} rcw.bin
+                fi
+                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NORBOOT_SEC}  u-boot-dtb.bin
+            elif echo ${type} | grep -iE 'qspi-secure-boot'; then
+                 type_tmp=qspi
+                 if [ ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] ; then
+                    if [ -z "${RCW_QSPI}" -o "${RCW_QSPI}" = "null" ]; then
+                        echo boot qspi on board not unsupported!
+                        exit
+                    fi
+                    cp ${DEPLOY_DIR_IMAGE}/${RCW_QSPI} rcw.bin
+                fi
+                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_QSPIBOOT_SEC}  u-boot-dtb.bin   
+            elif echo ${type} | grep -iE 'sdcard-secure-boot'; then
+                type_tmp=sd
+                if [ ${MACHINE} = ls1088ardb -o ${MACHINE} = ls2088ardb ] ; then
+                    if [ -z "${RCW_SD}" -o "${RCW_SD}" = "null" ]; then
+                        echo boot sd on board not unsupported!
+                        exit
+                    fi
+                    cp ${DEPLOY_DIR_IMAGE}/${RCW_SD} rcw.bin
+                fi
+                if [ "${UBOOT_SDBOOT_SEC}" = "null" -o -z "${UBOOT_SDBOOT_SEC}" ]; then
+                    echo sd sec boot on board for secureboot unsupported
+                    exit
+                fi
+                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_SDBOOT_SEC} u-boot-with-spl-pbl.bin
+                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_SPL} u-boot-spl.bin
+                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_DTB} u-boot-dtb.bin
+            else
+                type_tmp=nand
+            fi
+
+            if [ ${type_tmp} = nand ]; then
+                continue;
+            fi
+
+            if [ -f ${DEPLOY_DIR_IMAGE}/ppa.itb ] ; then
+                cp ${DEPLOY_DIR_IMAGE}/ppa.itb  ppa.itb
+            fi
+            
+            if [ -f ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_FW} ] ; then
+                cp ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_FW}   mc.itb
+            fi
+            
+            if [ -f ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPC} ] ; then
+                cp ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPC}  dpc.dtb
+            fi
+
+            if [ -f ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPL} ] ; then
+                cp ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPL} dpl.dtb
+            fi
+    
+            if echo ${type} | grep -iE 'nand'; then
+                . ${NAND_SCRIPT}
+            elif echo ${type} | grep -iE 'sd'; then
+                . ${SD_SCRIPT}
+            elif echo ${type} | grep -iE 'nor'; then
+                . ${NOR_SCRIPT}
+            elif echo ${type} | grep -iE 'qspi'; then
+               . ${QSPI_SCRIPT}
+            fi
+
+            if echo ${type} | grep -iE 'sd'; then
+                if [  ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] ; then
+                    cp rcw_sec.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_SDBOOT_SEC}
+                else
+                    cp u-boot-with-spl-pbl-sec.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_SDBOOT_SEC}
+                fi
+            elif echo ${type} | grep -iE 'nand'; then
+                cp u-boot-with-spl-pbl-sec.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_NANDBOOT_SEC}
+            else
+                if [ ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] && [ -f ${DEPLOY_DIR_IMAGE}/rcw_sec.bin ]; then
+                    cp rcw_sec.bin ${DEPLOY_DIR_IMAGE}/$rcwimg_sec
+                fi
+            fi
+
+            install -d ${DEPLOYDIR}/secboot_hdrs
+            install -m 755  hdr_dtb.out ${DEPLOYDIR}/secboot_hdrs/
+            install -m 755  hdr_linux.out  ${DEPLOYDIR}/secboot_hdrs/
+            install -m 755  hdr_bs.out ${DEPLOYDIR}/secboot_hdrs/hrd_${MACHINE}_bs.out
+            install -m 755  secboot_hdrs.bin  ${DEPLOYDIR}/secboot_hdrs
+            install -m 755  srk_hash.txt ${DEPLOYDIR}/secboot_hdrs
+            install -m 755  srk.pri ${DEPLOYDIR}/secboot_hdrs
+            install -m 755  srk.pub ${DEPLOYDIR}/secboot_hdrs
+            if [ "$ENCAP" = "1" ]; then
+                install -m 755 hdr_bs_dec.out ${DEPLOYDIR}/secboot_hdrs/hdr_${MACHINE}_bs_dec.out
+            fi
+        done
+    fi
+}
+
+addtask deploy before do_build after do_compile
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 24/29] ls1088ardb: update UBOOT_CONFIG
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (21 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 23/29] secure-boot-qoriq : add recipes Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 25/29] ls1088ardb: add default environment variable for build secureboot Chunrong Guo
                   ` (4 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>>
---
 conf/machine/ls1088ardb.conf | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/conf/machine/ls1088ardb.conf b/conf/machine/ls1088ardb.conf
index 9771ba2..2027cad 100644
--- a/conf/machine/ls1088ardb.conf
+++ b/conf/machine/ls1088ardb.conf
@@ -14,10 +14,11 @@ KERNEL_IMAGETYPES = "itbImage"
 
 UBOOT_ENTRYPOINT = "0x80080000"
 
-UBOOT_CONFIG ??= "secure-boot sdcard-qspi qspi"
-UBOOT_CONFIG[secure-boot] = "ls1088ardb_qspi_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
+UBOOT_CONFIG ??= "qspi-secure-boot sdcard-secure-boot sdcard qspi"
+UBOOT_CONFIG[qspi-secure-boot] = "ls1088ardb_qspi_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
 UBOOT_CONFIG[qspi] = "ls1088ardb_qspi_defconfig,,u-boot-dtb.bin"
-UBOOT_CONFIG[sdcard-qspi] = "ls1088ardb_sdcard_qspi_defconfig,,u-boot-with-spl.bin"
+UBOOT_CONFIG[sdcard] = "ls1088ardb_sdcard_qspi_defconfig,,u-boot-with-spl.bin"
+UBOOT_CONFIG[sdcard-secure-boot] = "ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig,,u-boot-with-spl.bin"
 
 KERNEL_DEVICETREE ?= "freescale/fsl-ls1088a-rdb.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/arm64/configs/defconfig"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 25/29] ls1088ardb: add default environment variable for build secureboot
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (22 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 24/29] ls1088ardb: update UBOOT_CONFIG Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 26/29] ls1043ardb: " Chunrong Guo
                   ` (3 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1088ardb.conf | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/conf/machine/ls1088ardb.conf b/conf/machine/ls1088ardb.conf
index 2027cad..f61facb 100644
--- a/conf/machine/ls1088ardb.conf
+++ b/conf/machine/ls1088ardb.conf
@@ -20,6 +20,41 @@ UBOOT_CONFIG[qspi] = "ls1088ardb_qspi_defconfig,,u-boot-dtb.bin"
 UBOOT_CONFIG[sdcard] = "ls1088ardb_sdcard_qspi_defconfig,,u-boot-with-spl.bin"
 UBOOT_CONFIG[sdcard-secure-boot] = "ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig,,u-boot-with-spl.bin"
 
+UBOOT_SECURE_ENABLE = "1"
+ENCAP = "1"
+
+RCW_QSPI = "rcw/ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/PBL_QSPI_1600_700_2100_0x1d_0x0d.bin"
+RCW_QSPI_SEC = "rcw/ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/PBL_QSPI_1600_700_2100_0x1d_0x0d_sec.bin"
+RCW_SD = "rcw/ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/PBL_SD_1600_700_2100_0x1d_0x0d.bin"
+
+DPAA2_MC_FW = "mc_app/mc.itb"
+DPAA2_MC_DPC= "dpl-examples/ls1088a/RDB/custom/dpc-bman-4M.0x1D-0x0D.dtb"
+DPAA2_MC_DPL= "dpl-examples/dpl-eth.0x1D_0x0D.dtb"
+
+UBOOT_QSPIBOOT_SEC = "u-boot.bin-sdcard-secure-boot"
+UBOOT_SDBOOT_SEC = "u-boot.bin-sdcard-secure-boot"
+UBOOT_SPL = "uboot-sdcard-secure-boot-spl.bin"
+UBOOT_DTB = "uboot-sdcard-secure-boot-dtb.bin"
+
+UBOOT_SCR = "ls1088ardb_boot.scr"
+BOOTSCRIPT_DEC = "ls1088ardb_dec_boot.scr"
+
+SECUREVALIDATE = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1088ardb/hdr_linux.out; load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1088ardb/hdr_dtb.out; esbc_validate \$kernelheader_addr_r; esbc_validate \$fdtheader_addr_r'"
+
+SECUREVALIDATE_ENC = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1088ardb/hdr_linux.out; esbc_validate \$kernelheader_addr_r;load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1088ardb/hdr_dtb.out; esbc_validate \$fdtheader_addr_r; size \$devtype \$devnum:2 /vmlinuz; echo Encapsulating linux image;setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4;blob enc \$kernel_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted linux ;save \$devtype \$devnum:2 \$load_addr /vmlinuz \$blobsize;size \$devtype \$devnum:2 /fsl-ls1088a-rdb.dtb;echo Encapsulating dtb image; blob enc \$fdt_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted dtb; save \$devtype \$devnum:2 \$load_addr /fsl-ls1088a-rdb.dtb \$blobsize; size \$devtype \$devnum:2 /ls1088ardb_dec_boot.scr; load \$devtype \$devnum:2 \$load_addr /ls1088ardb_dec_boot.scr; echo replacing Bootscript; save \$devtype \$devnum:2 \$load_addr /ls1088ardb_boot.scr \$filesize;size \$devtype \$devnum:2 /secboot_hdrs/ls1088ardb/hdr_ls1088ardb_bs_dec.out; load \$devtype \$devnum:2 \$load_addr /secboot_hdrs/ls1088ardb/hdr_ls1088ardb_bs_dec.out ;echo Replacing bootscript header; save \$devtype \$devnum:2 \$load_addr /hdr_ls1088ardb_bs.out \$filesize;reset;'"
+
+SECUREVALIDATE_DEC = "setenv secureboot_validate 'size \$devtype \$devnum:2 /vmlinuz;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating linux image; setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4; blob dec \$kernel_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$kernel_addr_r \$filesize ;size \$devtype \$devnum:2 /fsl-ls1088a-rdb.dtb;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating dtb image; blob dec \$fdt_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$fdt_addr_r \$filesize ; '"
+
+DISTROBOOT = "'part uuid $devtype $devnum:3 partuuid3; setenv bootargs console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=$partuuid3 rw rootwait default_hugepagesz=2m hugepagesz=2m hugepages=256; load $devtype $devnum:2 $kernel_addr_r /vmlinuz;load $devtype $devnum:2 $fdt_addr_r /fsl-ls1088a-rdb.dtb; env exists secureboot && echo validating secureboot && run secureboot_validate; bootm $kernel_addr_r - $fdt_addr_r'"
+
+NOR_SCRIPT = "platforms/ls2088_1088_nor.sh"
+QSPI_SCRIPT = "platforms/ls1088_qspi.sh"
+SD_SCRIPT = "platforms/ls1088_ls2088_sd.sh"
+
+KERNEL_IMG = "Image"
+KERNEL_UIMG  = "uImage"
+DEVICE_TREE = "fsl-ls1088a-rdb.dtb"
+
 KERNEL_DEVICETREE ?= "freescale/fsl-ls1088a-rdb.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/arm64/configs/defconfig"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 26/29] ls1043ardb: add default environment variable for build secureboot
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (23 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 25/29] ls1088ardb: add default environment variable for build secureboot Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 27/29] ls1046ardb: " Chunrong Guo
                   ` (2 subsequent siblings)
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1043ardb.conf | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/conf/machine/ls1043ardb.conf b/conf/machine/ls1043ardb.conf
index 05431db..3f50141 100644
--- a/conf/machine/ls1043ardb.conf
+++ b/conf/machine/ls1043ardb.conf
@@ -23,6 +23,38 @@ UBOOT_CONFIG[secure-boot] = "ls1043ardb_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
 UBOOT_CONFIG[nand-secure-boot] = "ls1043ardb_nand_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
 UBOOT_CONFIG[sdcard-secure-boot] = "ls1043ardb_sdcard_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
 
+UBOOT_SECURE_ENABLE = "1"
+ENCAP = "1"
+RCW_NOR= "rcw/ls1043ardb/RR_FQPP_1455/rcw_1600.bin"
+RCW_NOR_SEC= "rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_sben.bin"
+
+UBOOT_NORBOOT_SEC = "u-boot.bin-secure-boot"
+UBOOT_SDBOOT_SEC = "u-boot.bin-sdcard-secure-boot"
+UBOOT_NANDBOOT_SEC = "u-boot.bin-nand-secure-boot"
+
+UBOOT_SPL = "uboot-sdcard-secure-boot-spl.bin"
+UBOOT_DTB = "uboot-sdcard-secure-boot-dtb.bin"
+
+UBOOT_SCR = "ls1043ardb_boot.scr"
+BOOTSCRIPT_DEC = "ls1043ardb_dec_boot.scr"
+
+SECUREVALIDATE = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1043ardb/hdr_linux.out; load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1043ardb/hdr_dtb.out; esbc_validate \$kernelheader_addr_r; esbc_validate \$fdtheader_addr_r'"
+
+SECUREVALIDATE_ENV = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1043ardb/hdr_linux.out; esbc_validate \$kernelheader_addr_r;load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1043ardb/hdr_dtb.out; esbc_validate \$fdtheader_addr_r; size \$devtype \$devnum:2 /vmlinuz; echo Encapsulating linux image;setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4;blob enc \$kernel_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted linux ;save \$devtype \$devnum:2 \$load_addr /vmlinuz \$blobsize;size \$devtype \$devnum:2 /fsl-ls1043a-rdb.dtb;echo Encapsulating dtb image; blob enc \$fdt_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted dtb; save \$devtype \$devnum:2 \$load_addr /fsl-ls1043a-rdb.dtb \$blobsize; size \$devtype \$devnum:2 /ls1043ardb_dec_boot.scr; load \$devtype \$devnum:2 \$load_addr /ls1043ardb_dec_boot.scr; echo replacing Bootscript; save \$devtype \$devnum:2 \$load_addr /ls1043ardb_boot.scr \$filesize;size \$devtype \$devnum:2 /secboot_hdrs/ls1043ardb/hdr_ls1043ardb_bs_dec.out; load \$devtype \$devnum:2 \$load_addr /secboot_hdrs/ls1043ardb/hdr_ls1043ardb_bs_dec.out ;echo Replacing bootscript header; save \$devtype \$devnum:2 \$load_addr /hdr_ls1043ardb_bs.out \$filesize;reset;'"
+
+SECUREVALIDATE_DEC = "setenv secureboot_validate 'size \$devtype \$devnum:2 /vmlinuz;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating linux image; setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4; blob dec \$kernel_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$kernel_addr_r \$filesize ;size \$devtype \$devnum:2 /fsl-ls1043a-rdb.dtb;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating dtb image; blob dec \$fdt_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$fdt_addr_r \$filesize ; '"
+
+DISTROBOOT = "'part uuid $devtype $devnum:3 partuuid3;setenv bootargs console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=$partuuid3 rw rootwait;load $devtype $devnum:2 $kernel_addr_r /vmlinuz;load $devtype $devnum:2 $fdt_addr_r /fsl-ls1043a-rdb.dtb;env exists secureboot && echo validating secureboot && run secureboot_validate;bootm $kernel_addr_r - $fdt_addr_r'"
+
+NAND_SCRIPT = "platforms/ls104x_1012_nand.sh"
+SD_SCRIPT = "platforms/ls104x_1012_sd.sh"
+QSPI_SCRIPT = "platforms/ls104x_1012_qspi.sh"
+NOR_SCRIPT = "platforms/ls104x_1012_nor.sh"
+
+KERNEL_IMG = "Image"
+KERNEL_UIMG  = "uImage"
+DEVICE_TREE = "fsl-ls1043a-rdb.dtb"
+
 KERNEL_DEVICETREE ?= "freescale/fsl-ls1043a-rdb-sdk.dtb freescale/fsl-ls1043a-rdb-usdpaa.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/arm64/configs/defconfig"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 27/29] ls1046ardb: add default environment variable for build secureboot
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (24 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 26/29] ls1043ardb: " Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 28/29] ls2088ardb: " Chunrong Guo
  2017-09-28  5:34 ` [PATCH 29/29] ls1021atwr: " Chunrong Guo
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1046ardb.conf | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/conf/machine/ls1046ardb.conf b/conf/machine/ls1046ardb.conf
index b069f97..6856d46 100644
--- a/conf/machine/ls1046ardb.conf
+++ b/conf/machine/ls1046ardb.conf
@@ -21,6 +21,39 @@ UBOOT_CONFIG[qspi] = "ls1046ardb_qspi_config,,u-boot-dtb.bin"
 UBOOT_CONFIG[qspi-secure-boot] = "ls1046ardb_qspi_SECURE_BOOT_config,,u-boot-dtb.bin"
 UBOOT_CONFIG[sdcard-secure-boot] = "ls1046ardb_sdcard_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
 
+UBOOT_SECURE_ENABLE = "1"
+ENCAP = "1"
+RCW_QSPI_NOSWAP = "rcw/ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin"
+RCW_QSPI = "rcw/ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin.swap"
+RCW_QSPI_SEC_NOSWAP = "rcw/ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1600_qspiboot_sben.bin"
+RCW_QSPI_SEC = "rcw/ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1600_qspiboot_sben.bin.swap"
+
+UBOOT_QSPIBOOT_SEC = "u-boot.bin-qspi-secure-boot"
+UBOOT_SDBOOT_SEC = "u-boot.bin-sdcard-secure-boot"
+
+UBOOT_SPL = "uboot-sdcard-secure-boot-spl.bin"
+UBOOT_DTB = "uboot-sdcard-secure-boot-dtb.bin"
+
+UBOOT_SCR = "ls1046ardb_boot.scr"
+BOOTSCRIPT_DEC = "ls1046ardb_dec_boot.scr"
+
+SECUREVALIDATE = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1046ardb/hdr_linux.out; load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1046ardb/hdr_dtb.out; esbc_validate \$kernelheader_addr_r; esbc_validate \$fdtheader_addr_r'"
+
+SECUREVALIDATE_ENC = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1046ardb/hdr_linux.out; esbc_validate \$kernelheader_addr_r;load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1046ardb/hdr_dtb.out; esbc_validate \$fdtheader_addr_r; size \$devtype \$devnum:2 /vmlinuz; echo Encapsulating linux image;setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4;blob enc \$kernel_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted linux ;save \$devtype \$devnum:2 \$load_addr /vmlinuz \$blobsize;size \$devtype \$devnum:2 /fsl-ls1046a-rdb.dtb;echo Encapsulating dtb image; blob enc \$fdt_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted dtb; save \$devtype \$devnum:2 \$load_addr /fsl-ls1046a-rdb.dtb \$blobsize; size \$devtype \$devnum:2 /ls1046ardb_dec_boot.scr; load \$devtype \$devnum:2 \$load_addr /ls1046ardb_dec_boot.scr; echo replacing Bootscript; save \$devtype \$devnum:2 \$load_addr /ls1046ardb_boot.scr \$filesize;size \$devtype \$devnum:2 /secboot_hdrs/ls1046ardb/hdr_ls1046ardb_bs_dec.out; load \$devtype \$devnum:2 \$load_addr /secboot_hdrs/ls1046ardb/hdr_ls1046ardb_bs_dec.out ;echo Replacing bootscript header; save \$devtype \$devnum:2 \$load_addr /hdr_ls1046ardb_bs.out \$filesize;reset;'"
+
+SECUREVALIDATE_DEC = "setenv secureboot_validate 'size \$devtype \$devnum:2 /vmlinuz;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating linux image; setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4; blob dec \$kernel_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$kernel_addr_r \$filesize ;size \$devtype \$devnum:2 /fsl-ls1046a-rdb.dtb;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating dtb image; blob dec \$fdt_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$fdt_addr_r \$filesize ; '"
+
+DISTROBOOT = "'part uuid $devtype $devnum:3 partuuid3; setenv bootargs console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=$partuuid3 rw rootwait; load $devtype $devnum:2 $kernel_addr_r /vmlinuz;load $devtype $devnum:2 $fdt_addr_r /fsl-ls1046a-rdb.dtb; env exists secureboot && echo validating secureboot && run secureboot_validate; bootm $kernel_addr_r - $fdt_addr_r'"
+
+NAND_SCRIPT = "platforms/ls104x_1012_nand.sh"
+SD_SCRIPT = "platforms/ls104x_1012_sd.sh"
+QSPI_SCRIPT = "platforms/ls104x_1012_qspi.sh"
+NOR_SCRIPT = "platforms/ls104x_1012_nor.sh"
+
+KERNEL_IMG = "Image"
+KERNEL_UIMG  = "uImage"
+DEVICE_TREE = "fsl-ls1046a-rdb.dtb"
+
 KERNEL_DEVICETREE ?= "\
     freescale/fsl-ls1046a-rdb-sdk.dtb \
     freescale/fsl-ls1046a-rdb-usdpaa.dtb \
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 28/29] ls2088ardb: add default environment variable for build secureboot
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (25 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 27/29] ls1046ardb: " Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  2017-09-28  5:34 ` [PATCH 29/29] ls1021atwr: " Chunrong Guo
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls2088ardb.conf | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/conf/machine/ls2088ardb.conf b/conf/machine/ls2088ardb.conf
index 170d6a4..2e8f4f6 100644
--- a/conf/machine/ls2088ardb.conf
+++ b/conf/machine/ls2088ardb.conf
@@ -18,11 +18,43 @@ UBOOT_CONFIG ??= "qspi-secure-boot qspi"
 UBOOT_CONFIG[qspi] = "ls2088ardb_qspi_defconfig,,u-boot-dtb.bin"
 UBOOT_CONFIG[qspi-secure-boot] = "ls2088ardb_qspi_SECURE_BOOT_defconfig,,u-boot-dtb.bin"
 
+UBOOT_SECURE_ENABLE = "1"
+ENCAP = "1"
+RCW_NOR = "rcw/ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/PBL_0x2a_0x41_1800_700_1866_1600.bin"
+RCW_NOR_SEC = "rcw/ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/PBL_0x2a_0x41_1800_700_1866_1600_sec.bin"
+RCW_QSPI = "rcw/ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/PBL_0x2a_0x41_2000_800_2133_1600_QSPIboot.bin"
+RCW_QSPI_SEC = "rcw/ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/PBL_0x2a_0x41_2000_800_2133_1600_QSPIboot_sec.bin"
+
+DPAA2_MC_FW = "mc_app/mc.itb"
+DPAA2_MC_DPC= "dpl-examples/ls2088a/RDB/custom/dpc-bman-4M.0x2A_0x41.dtb"
+DPAA2_MC_DPL= "dpl-examples/dpl-eth.0x2A_0x41.dtb"
+
+UBOOT_QSPIBOOT_SEC = "u-boot.bin-qspi-secure-boot"
+UBOOT_SDBOOT_SEC = "null"
+
+UBOOT_SCR = "ls2088ardb_boot.scr"
+BOOTSCRIPT_DEC = "ls2088ardb_dec_boot.scr"
+
+SECUREVALIDATE = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls2088ardb/hdr_linux.out; load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls2088ardb/hdr_dtb.out; esbc_validate \$kernelheader_addr_r; esbc_validate \$fdtheader_addr_r'"
+
+SECUREVALIDATE_ENC = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls2088ardb/hdr_linux.out; esbc_validate \$kernelheader_addr_r;load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls2088ardb/hdr_dtb.out; esbc_validate \$fdtheader_addr_r; size \$devtype \$devnum:2 /vmlinuz; echo Encapsulating linux image;setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4;blob enc \$kernel_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted linux ;save \$devtype \$devnum:2 \$load_addr /vmlinuz \$blobsize;size \$devtype \$devnum:2 /fsl-ls2088a-rdb.dtb;echo Encapsulating dtb image; blob enc \$fdt_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted dtb; save \$devtype \$devnum:2 \$load_addr /fsl-ls2088a-rdb.dtb \$blobsize; size \$devtype \$devnum:2 /ls2088ardb_dec_boot.scr; load \$devtype \$devnum:2 \$load_addr /ls2088ardb_dec_boot.scr; echo replacing Bootscript; save \$devtype \$devnum:2 \$load_addr /ls2088ardb_boot.scr \$filesize;size \$devtype \$devnum:2 /secboot_hdrs/ls2088ardb/hdr_ls2088ardb_bs_dec.out; load \$devtype \$devnum:2 \$load_addr /secboot_hdrs/ls2088ardb/hdr_ls2088ardb_bs_dec.out ;echo Replacing bootscript header; save \$devtype \$devnum:2 \$load_addr /hdr_ls2088ardb_bs.out \$filesize;reset;'"
+
+SECUREVALIDATE_DEC = "setenv secureboot_validate 'size \$devtype \$devnum:2 /vmlinuz;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating linux image; setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4; blob dec \$kernel_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$kernel_addr_r \$filesize ;size \$devtype \$devnum:2 /fsl-ls2088a-rdb.dtb;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating dtb image; blob dec \$fdt_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$fdt_addr_r \$filesize ; '"
+
+DISTROBOOT = "'part uuid $devtype $devnum:3 partuuid3; setenv bootargs console=ttyS1,115200 earlycon=uart8250,mmio,0x21c0600 root=PARTUUID=$partuuid3 rw rootwait default_hugepagesz=2m hugepagesz=2m hugepages=256; load $devtype $devnum:2 $kernel_addr_r /vmlinuz;load $devtype $devnum:2 $fdt_addr_r /fsl-ls2088a-rdb.dtb; env exists secureboot && echo validating secureboot && run secureboot_validate; bootm $kernel_addr_r - $fdt_addr_r'"
+
+NOR_SCRIPT = "platforms/ls2088_1088_nor.sh"
+QSPI_SCRIPT = "platforms/ls2088_qspi.sh"
+
+KERNEL_IMG = "Image"
+KERNEL_UIMG  = "uImage"
+DEVICE_TREE = "fsl-ls2088a-rdb.dtb"
+
 KERNEL_DEVICETREE ?= "freescale/fsl-ls2088a-rdb.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/arm64/configs/defconfig"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyAMA0"
 SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
 
-EXTRA_IMAGEDEPENDS += "dpl-examples ls2-phy ls2-rcw management-complex ppa uefi"
+EXTRA_IMAGEDEPENDS += "dpl-examples ls2-rcw management-complex ppa uefi"
 USE_VT = "0"
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* [PATCH 29/29] ls1021atwr: add default environment variable for build secureboot
  2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
                   ` (26 preceding siblings ...)
  2017-09-28  5:34 ` [PATCH 28/29] ls2088ardb: " Chunrong Guo
@ 2017-09-28  5:34 ` Chunrong Guo
  27 siblings, 0 replies; 37+ messages in thread
From: Chunrong Guo @ 2017-09-28  5:34 UTC (permalink / raw)
  To: meta-freescale; +Cc: chunrong.guo

From: Chunrong Guo <chunrong.guo@nxp.com>

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 conf/machine/ls1021atwr.conf | 39 +++++++++++++++++++++++++++++++++++++--
 1 file changed, 37 insertions(+), 2 deletions(-)

diff --git a/conf/machine/ls1021atwr.conf b/conf/machine/ls1021atwr.conf
index 081592b..48f4f12 100644
--- a/conf/machine/ls1021atwr.conf
+++ b/conf/machine/ls1021atwr.conf
@@ -12,14 +12,49 @@ require conf/machine/include/tune-cortexa7.inc
 
 DEFAULTTUNE = "cortexa7hf-neon"
 
-UBOOT_CONFIG ??= "sdcard-ifc-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
+KERNEL_CLASSES  = " kernel-itbimage "
+KERNEL_IMAGETYPES = "itbImage"
+
+UBOOT_ENTRYPOINT = "0x80080000"
+
+UBOOT_CONFIG ??= "sdcard-secure-boot sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"
 UBOOT_CONFIG[nor] = "ls1021atwr_nor_config,,u-boot-dtb.bin"
 UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_config,,u-boot-with-spl-pbl.bin"
 UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_config,,u-boot-with-spl-pbl.bin"
 UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_config,,u-boot-dtb.bin"
 UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_config,,u-boot-dtb.bin"
 UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_config,,u-boot-dtb.bin"
-UBOOT_CONFIG[sdcard-ifc-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
+UBOOT_CONFIG[sdcard-secure-boot] = "ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig,,u-boot-with-spl-pbl.bin"
+
+UBOOT_SECURE_ENABLE = "1"
+ENCAP = "1"
+RCW_NOR = "rcw/ls1021atwr/SSR_PNS_30/rcw_1200.bin"
+RCW_NOR_SEC = "rcw/ls1021atwr/SSR_PNS_30/rcw_1200_sben.bin"
+RCW_QSPI = "rcw/ls1021atwr/SSR_PNS_30/rcw_1200_qspiboot.bin"
+RCW_SD = "rcw/ls1021atwr/SSR_PNS_30/rcw_1200_sdboot.bin"
+
+UBOOT_NORBOOT_SEC = "u-boot.bin-secure-boot"
+UBOOT_SDBOOT_SEC = "u-boot.bin-sdcard-secure-boot"
+
+UBOOT_SPL = "uboot-sdcard-secure-boot-spl.bin"
+UBOOT_DTB = "uboot-sdcard-secure-boot-dtb.bin"
+
+UBOOT_SCR = "ls1021atwr_boot.scr"
+BOOTSCRIPT_DEC = "ls1021atwr_dec_boot.scr"
+
+SECUREVALIDATE = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1021atwr/hdr_linux.out; load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1021atwr/hdr_dtb.out; esbc_validate \$kernelheader_addr_r; esbc_validate \$fdtheader_addr_r'"
+
+SECUREVALIDATE_ENV = "setenv secureboot_validate 'load \$devtype \$devnum:2 \$kernelheader_addr_r /secboot_hdrs/ls1021atwr/hdr_linux.out; esbc_validate \$kernelheader_addr_r;load \$devtype \$devnum:2 \$fdtheader_addr_r /secboot_hdrs/ls1021atwr/hdr_dtb.out; esbc_validate \$fdtheader_addr_r; size \$devtype \$devnum:2 /vmlinuz.v7; echo Encapsulating linux image;setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4;blob enc \$kernel_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted linux ;save \$devtype \$devnum:2 \$load_addr /vmlinuz.v7 \$blobsize;size \$devtype \$devnum:2 /ls1021a-twr.dtb;echo Encapsulating dtb image; blob enc \$fdt_addr_r \$load_addr \$filesize \$key_addr; setexpr blobsize \$filesize + 0x30;echo Saving encrypted dtb; save \$devtype \$devnum:2 \$load_addr /ls1021a-twr.dtb \$blobsize; size \$devtype \$devnum:2 /ls1021atwr_dec_boot.scr; load \$devtype \$devnum:2 \$load_addr /ls1021atwr_dec_boot.scr; echo replacing Bootscript; save \$devtype \$devnum:2 \$load_addr /ls1021atwr_boot.scr \$filesize;size \$devtype \$devnum:2 /secboot_hdrs/ls1021atwr/hdr_ls1021atwr_bs_dec.out; load \$devtype \$devnum:2 \$load_addr /secboot_hdrs/ls1021atwr/hdr_ls1021atwr_bs_dec.out ;echo Replacing bootscript header; save \$devtype \$devnum:2 \$load_addr /hdr_ls1021atwr_bs.out \$filesize;reset;'"
+
+SECUREVALIDATE_DEC = "setenv secureboot_validate 'size \$devtype \$devnum:2 /vmlinuz.v7;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating linux image; setenv key_addr 0x87000000; mw \$key_addr $key_id_1;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_2;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_3;setexpr \$key_addr \$key_addr + 0x4; mw \$key_addr $key_id_4; blob dec \$kernel_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$kernel_addr_r \$filesize ;size \$devtype \$devnum:2 /ls1021a-twr.dtb;setexpr imgsize \$filesize - 0x30 ;echo Decapsulating dtb image; blob dec \$fdt_addr_r \$load_addr \$imgsize \$key_addr; cp.b \$load_addr \$fdt_addr_r \$filesize ; '"
+
+DISTROBOOT = "'part uuid $devtype $devnum:3 partuuid3; setenv bootargs console=ttyS0,115200 root=PARTUUID=$partuuid3 rw rootwait; load $devtype $devnum:2 $kernel_addr_r /vmlinuz.v7;load $devtype $devnum:2 $fdt_addr_r /ls1021a-twr.dtb; env exists secureboot && echo validating secureboot && run secureboot_validate; bootm $kernel_addr_r - $fdt_addr_r'"
+
+SD_SCRIPT = "platforms/ls1_sd.sh"
+NOR_SCRIPT = "platforms/ls1_nor.sh"
+
+KERNEL_UIMG  = "uImage"
+DEVICE_TREE = "ls1021a-twr.dtb"
 
 QE_UCODE="iram_Type_A_LS1021a_r1.0.bin"
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 37+ messages in thread

* Re: [PATCH 02/29] rcw :update to 1a6236a
  2017-09-28  5:33 ` [PATCH 02/29] rcw :update to 1a6236a Chunrong Guo
@ 2017-09-30 12:53   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 12:53 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:33 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> This includes the following changes:
> 1a6236a - LS1012ARDB: Change rcw for secure boot
> cdf4b72 - rcw: ls1088aqds: Add SCSI errata for detecttion of sata
> 16072f7 - armv8:LS1012A: RCW supporting 1GHz CPU frequency
> 90aef03 - LS1088ARDB:Reduce size in block copy command
> 53518dc - rcw: ls1088ardb: Add SCSI errata for detecttion of sata
> 0a869b3 - ls1021a: add workaround for pcie erratum A-007997 and A-007815
> e7f18e5 - ls2088ardb: Add RCW for with platform frequency 700MHz
>
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  recipes-bsp/rcw/ls2-rcw_git.bb | 4 ++--
>  recipes-bsp/rcw/rcw_git.bb     | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/recipes-bsp/rcw/ls2-rcw_git.bb b/recipes-bsp/rcw/ls2-rcw_git.bb
> index ceb8bd6..f9574ed 100644
> --- a/recipes-bsp/rcw/ls2-rcw_git.bb
> +++ b/recipes-bsp/rcw/ls2-rcw_git.bb
> @@ -1,7 +1,7 @@
>  SUMMARY = "Reset Configuration Word"
>  DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
>  LICENSE = "BSD"
> -LIC_FILES_CHKSUM = "file://BSD-LICENSE;md5=627727dce58484c4bd5f9b19665d81b3"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=be7e0b2ce5a7a1f4f25a6d82cec1f47d"

Please add a note about what has change on the license.

>  inherit deploy siteinfo
>
> @@ -9,7 +9,7 @@ INHIBIT_DEFAULT_DEPS = "1"
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
>
>  SRC_URI = "git://github.com/qoriq-open-source/rcw.git;nobranch=1"
> -SRCREV = "bfe8c5eb72cbae387af1c8662957caa801c2309f"
> +SRCREV = "1a6236a34166219de324a105971eb9de05cde76e"
>
>  S = "${WORKDIR}/git"
>
> diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb
> index 877822f..1681d94 100644
> --- a/recipes-bsp/rcw/rcw_git.bb
> +++ b/recipes-bsp/rcw/rcw_git.bb
> @@ -1,14 +1,14 @@
>  SUMMARY = "Reset Configuration Word"
>  DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the QorIQ targets"
>  LICENSE = "BSD"
> -LIC_FILES_CHKSUM = "file://BSD-LICENSE;md5=627727dce58484c4bd5f9b19665d81b3"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=be7e0b2ce5a7a1f4f25a6d82cec1f47d"

Same here.

Also those two recipes are duplicated so please remove one.

>  DEPENDS += "change-file-endianess-native tcl-native"
>
>  inherit deploy
>
>  SRC_URI = "git://github.com/qoriq-open-source/rcw.git;nobranch=1"
> -SRCREV = "bfe8c5eb72cbae387af1c8662957caa801c2309f"
> +SRCREV = "1a6236a34166219de324a105971eb9de05cde76e"
>
>  S = "${WORKDIR}/git"
>
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 06/29] flib: update to 14489ee
  2017-09-28  5:33 ` [PATCH 06/29] flib: update to 14489ee Chunrong Guo
@ 2017-09-30 12:54   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 12:54 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:33 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> *include the following changes
> 14489ee - add AES-CTR support in cnstr_shdsc_blkcipher()
> 875b56d - authenc: add AES-CTR support
> 317f9d9 - add generic AES-GCM support
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  recipes-dpaa/flib/flib_git.bb | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-dpaa/flib/flib_git.bb b/recipes-dpaa/flib/flib_git.bb
> index 6e12996..1712ab8 100644
> --- a/recipes-dpaa/flib/flib_git.bb
> +++ b/recipes-dpaa/flib/flib_git.bb
> @@ -3,8 +3,9 @@ SECTION = "flib"
>  LICENSE = "BSD & GPLv2"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=75d2f6a74299640c05ae6c69ed7a4ad6"
>
> -SRC_URI = "git://github.com/qoriq-open-source/flib.git;nobranch=1"
> -SRCREV = "2c9b9dc22699f7c00f24a2134c42901932a6a0b9"
> +SRC_URI = "git://github.com/qoriq-open-source/flib.git;nobranch=1 \
> +"

useless change.

> +SRCREV = "14489ee2207650ddc89890df4b9f600da9ad665c"
>
>  S = "${WORKDIR}/git"
>
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 13/29] dpdk: update to 64578fa
  2017-09-28  5:33 ` [PATCH 13/29] dpdk: update to 64578fa Chunrong Guo
@ 2017-09-30 12:56   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 12:56 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:33 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> *include the following changes
> 64578fa - bus/dpaa: fix port order shuffling
> f58c470 - Merge pull request #451 in GITAM/dpdk from feature/DPDK-837 to 17.05-qoriq
> 7132562 - dpaa: Patch to fix coverity issue
> cdc268a - dpaa2: Patch to fix coverity issues.
> 10bc4d4 - dpaa: Patch to fix coverity issues
> 38d7299 - dpaa2: add devices in sorted order
> 780057c - examples/ipsec-secgw: increase max number of SA
> c2982a1 - examples/ipsec-secgw: add cfg files for 64x64 tunnels
> 47150cb - Revert "net: dpaa2: enable rx checksum offload as per user input"
> 7ebbca7 - net/dpaa:Adding correct Mask layers while ptype calculation
> 727336c - Revert "net: dpaa2: enable fetching hash result from hardware"
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  .../dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch    | 119 ---------------------
>  recipes-extended/dpdk/dpdk_16.07.bb                |   9 +-
>  2 files changed, 4 insertions(+), 124 deletions(-)
>  delete mode 100644 recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch
>
> diff --git a/recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch b/recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch
> deleted file mode 100644
> index 399510a..0000000
> --- a/recipes-extended/dpdk/dpdk/0001-fix-build-with-gcc-7.1.patch
> +++ /dev/null
> @@ -1,119 +0,0 @@
> -From 03ee26cd708971a51f056e3f53482367aa38fcb1 Mon Sep 17 00:00:00 2001
> -From: Chunrong Guo <chunrong.guo@nxp.com>
> -Date: Wed, 12 Jul 2017 12:03:38 +0800
> -Subject: [PATCH] fix build with gcc 7.1
> -
> -Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ----
> - lib/librte_cmdline/cmdline_parse_num.c        |  4 ++--
> - lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h |  2 +-
> - lib/librte_hash/rte_crc_arm64.h               |  2 ++
> - lib/librte_ring/rte_ring.h                    | 18 ++++++++++++------
> - mk/toolchain/gcc/rte.vars.mk                  |  6 ++++++
> - 5 files changed, 23 insertions(+), 9 deletions(-)
> -
> -diff --git a/lib/librte_cmdline/cmdline_parse_num.c b/lib/librte_cmdline/cmdline_parse_num.c
> -index b0f9a35..e507ec4 100644
> ---- a/lib/librte_cmdline/cmdline_parse_num.c
> -+++ b/lib/librte_cmdline/cmdline_parse_num.c
> -@@ -250,7 +250,7 @@ cmdline_parse_num(cmdline_parse_token_hdr_t *tk, const char *srcbuf, void *res,
> -
> -               case HEX:
> -                       st = HEX_OK;
> --                      /* no break */
> -+                      /* fall-through no break */
> -               case HEX_OK:
> -                       if (c >= '0' && c <= '9') {
> -                               if (add_to_res(c - '0', &res1, 16) < 0)
> -@@ -282,7 +282,7 @@ cmdline_parse_num(cmdline_parse_token_hdr_t *tk, const char *srcbuf, void *res,
> -
> -               case BIN:
> -                       st = BIN_OK;
> --                      /* no break */
> -+                      /* fall-through */
> -               case BIN_OK:
> -                       if (c >= '0' && c <= '1') {
> -                               if (add_to_res(c - '0', &res1, 2) < 0)
> -diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h
> -index e5554ca..8d76f32 100644
> ---- a/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h
> -+++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/igb.h
> -@@ -607,7 +607,7 @@ struct igb_adapter {
> -       int int_mode;
> -       u32 rss_queues;
> -       u32 vmdq_pools;
> --      char fw_version[32];
> -+      char fw_version[43];
> -       u32 wvbr;
> -       struct igb_mac_addr *mac_table;
> - #ifdef CONFIG_IGB_VMDQ_NETDEV
> -diff --git a/lib/librte_hash/rte_crc_arm64.h b/lib/librte_hash/rte_crc_arm64.h
> -index 7dd6334..a17c0e4 100644
> ---- a/lib/librte_hash/rte_crc_arm64.h
> -+++ b/lib/librte_hash/rte_crc_arm64.h
> -@@ -110,8 +110,10 @@ rte_hash_crc_set_alg(uint8_t alg)
> -       case CRC32_ARM64:
> -               if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_CRC32))
> -                       alg = CRC32_SW;
> -+                /* fall-through */
> -       case CRC32_SW:
> -               crc32_alg = alg;
> -+                /* fall-through */
> -       default:
> -               break;
> -       }
> -diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h
> -index 0e22e69..085f3fe 100644
> ---- a/lib/librte_ring/rte_ring.h
> -+++ b/lib/librte_ring/rte_ring.h
> -@@ -364,9 +364,12 @@ void rte_ring_dump(FILE *f, const struct rte_ring *r);
> -                       r->ring[idx+3] = obj_table[i+3]; \
> -               } \
> -               switch (n & 0x3) { \
> --                      case 3: r->ring[idx++] = obj_table[i++]; \
> --                      case 2: r->ring[idx++] = obj_table[i++]; \
> --                      case 1: r->ring[idx++] = obj_table[i++]; \
> -+              case 3: \
> -+                      r->ring[idx++] = obj_table[i++]; /* fallthrough */ \
> -+              case 2: \
> -+                      r->ring[idx++] = obj_table[i++]; /* fallthrough */ \
> -+              case 1: \
> -+                      r->ring[idx++] = obj_table[i++]; /* fallthrough */  \
> -               } \
> -       } else { \
> -               for (i = 0; idx < size; i++, idx++)\
> -@@ -390,9 +393,12 @@ void rte_ring_dump(FILE *f, const struct rte_ring *r);
> -                       obj_table[i+3] = r->ring[idx+3]; \
> -               } \
> -               switch (n & 0x3) { \
> --                      case 3: obj_table[i++] = r->ring[idx++]; \
> --                      case 2: obj_table[i++] = r->ring[idx++]; \
> --                      case 1: obj_table[i++] = r->ring[idx++]; \
> -+              case 3: \
> -+                      obj_table[i++] = r->ring[idx++]; /* fallthrough */ \
> -+              case 2: \
> -+                      obj_table[i++] = r->ring[idx++]; /* fallthrough */ \
> -+              case 1: \
> -+                      obj_table[i++] = r->ring[idx++]; /* fallthrough */ \
> -               } \
> -       } else { \
> -               for (i = 0; idx < size; i++, idx++) \
> -diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk
> -index 94f6412..350c8bc 100644
> ---- a/mk/toolchain/gcc/rte.vars.mk
> -+++ b/mk/toolchain/gcc/rte.vars.mk
> -@@ -101,5 +101,11 @@ ifeq ($(shell test $(GCC_VERSION) -lt 47 && echo 1), 1)
> - WERROR_FLAGS += -Wno-uninitialized
> - endif
> -
> -+ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1)
> -+# Tell GCC only to error for switch fallthroughs without a suitable comment
> -+# Ignore errors for snprintf truncation
> -+WERROR_FLAGS += -Wno-format-truncation
> -+endif
> -+
> - export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF
> - export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS
> ---
> -2.7.4
> -
> diff --git a/recipes-extended/dpdk/dpdk_16.07.bb b/recipes-extended/dpdk/dpdk_16.07.bb
> index b47d041..b264a21 100644
> --- a/recipes-extended/dpdk/dpdk_16.07.bb
> +++ b/recipes-extended/dpdk/dpdk_16.07.bb
> @@ -12,9 +12,8 @@ inherit module
>  SRC_URI = "git://github.com/qoriq-open-source/dpdk.git;nobranch=1 \
>      file://add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch \
>      file://0001-include-sys-sysmacros.h-for-major-minor-defintions.patch \
> -    file://0001-fix-build-with-gcc-7.1.patch \
>  "
> -SRCREV = "98f548c36b3c805a04d9963b8eb02e09340aa089"
> +SRCREV = "64578fa146b459ef88f90e1cb1bf9c3fc3b36b97"
>
>  S = "${WORKDIR}/git"
>
> @@ -55,8 +54,8 @@ do_install() {
>      install -d ${D}/lib/modules/${KERNEL_VERSION}/dpdk
>      install -m 0755 ${S}/${RTE_TARGET}/kmod/rte_kni.ko ${D}/lib/modules/${KERNEL_VERSION}/dpdk/
>
> -    sed -i 's#/bin/echo#/bin/bash#' ${D}/${datadir}/scripts/load-devel-config.sh
> -   # rm ${S}/${RTE_TARGET}/app/dpdk-pmdinfogen
> +    #sed -i 's#/bin/echo#/bin/bash#' ${D}/${datadir}/scripts/load-devel-config.sh
> +    #rm ${S}/${RTE_TARGET}/app/dpdk-pmdinfogen

Remove the commented code.

>      rm ${D}/${datadir}/${RTE_TARGET}/app/dpdk-pmdinfogen
>
>      chown root:root -R ${D}
> @@ -66,7 +65,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
>
>  PACKAGES += "${PN}-examples"
>
> -FILES_${PN} += "${datadir}/tools /usr/bin/* /usr/sbin/*"
> +FILES_${PN} += "${datadir}/tools /usr/bin/* /usr/sbin/* /usr/share/*"

${bindir} and ${datadir}

>  FILES_${PN}-dbg += "${bindir}/dpdk-example/.debug \
>      ${datadir}/examples/kni/build/.debug \
>      ${datadir}/examples/kni/build/app/.debug \
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 14/29] odp: update to bef6398
  2017-09-28  5:33 ` [PATCH 14/29] odp: update to bef6398 Chunrong Guo
@ 2017-09-30 12:57   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 12:57 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:33 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> *include the following changes
> bef6398 - TM: Invalid flow crash fix
> 8e7a136 - Removed device based jiffies
> df492ef - Fixing legal issues
> 3e9c5da - Scripts: binaries path and odp_tm test cases updated
> c91dac8 - Werror flag enabled for ODP library
> ced3aaf - Updated MC flib to version 10.3.2
> a68cd87 - odp_pktio_stats API updated
> 03e0e05 - LD_LIBRARY_PATH removed from loopback_script
> 7a64406 - CUNIT: Cunit installation enabled
> 048c6a6 - script: ODP library path fixed
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  recipes-extended/odp/odp.inc    | 10 ++++++----
>  recipes-extended/odp/odp_git.bb |  7 +++----
>  2 files changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/recipes-extended/odp/odp.inc b/recipes-extended/odp/odp.inc
> index 421deff..3a319f3 100644
> --- a/recipes-extended/odp/odp.inc
> +++ b/recipes-extended/odp/odp.inc
> @@ -4,7 +4,7 @@ DESCRIPTION = "OpenDataPlane (ODP) provides a data plane application programming
>  HOMEPAGE = "http://www.opendataplane.org"
>  SECTION = "console/network"
>  LICENSE = "BSD-3-Clause"
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=472053b942339f200d9e1d2dcb947e9d"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=ca6103dc75397fb6bec596187d6b7829"

What changed?

>  FILESEXTRAPATHS_prepend := "${THISDIR}/odp:"
>
> @@ -14,11 +14,13 @@ git://github.com/qoriq-open-source/qbman_userspace.git;nobranch=1;name=qbman;des
>  git://github.com/qoriq-open-source/flib.git;nobranch=1;name=rta;destsuffix=git/platform/linux-dpaa2/flib/rta \
>  "
>
> -SRC_URI += "file://0001-Fix-this-build-error.patch"
> +SRC_URI += "file://0001-Fix-this-build-error.patch \
> +"

Useless change.

> +SRCREV = "bef6398a09db4a6b909aa0c6accc7c15621ce5ef"
>
> -SRCREV = "fdb26cb5c751afadf2299da2a1376e6ca0e61cc7"
>  SRCREV_qbman = "097595befc2bb60b733027e94ad2ed16a0e9cae0"
> -SRCREV_rta = "2c9b9dc22699f7c00f24a2134c42901932a6a0b9"
> +SRCREV_rta = "bbab28b03ae21c52ce913f8b052acf53bd24ff5d"
>
>  S = "${WORKDIR}/git"
>
> diff --git a/recipes-extended/odp/odp_git.bb b/recipes-extended/odp/odp_git.bb
> index b7c7deb..9b926a8 100644
> --- a/recipes-extended/odp/odp_git.bb
> +++ b/recipes-extended/odp/odp_git.bb
> @@ -12,8 +12,6 @@ ODP_SOC ?= ""
>  ODP_SOC_ls1043ardb = "LS1043"
>  ODP_SOC_ls1046ardb = "LS1046"
>  ODP_PLATFORM ?= "linux-dpaa2"
> -ODP_PLATFORM_ls1043ardb = "linux-dpaa1"
> -ODP_PLATFORM_ls1046ardb = "linux-dpaa1"
>  ODP_BUILD_TYPE ?= "ls2088"
>  ODP_BUILD_TYPE_ls1043ardb = "ls1043"
>  ODP_BUILD_TYPE_ls1046ardb = "ls1046"
> @@ -21,17 +19,18 @@ ODP_BUILD_TYPE_ls2080ardb = "ls2080"
>  ODP_BUILD_TYPE_ls1088ardb = "ls1088"
>
>  EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \
> -                --with-sdk-install-path=${STAGING_DIR_TARGET} \
> -                --enable-build-type=${ODP_BUILD_TYPE} \
>                  --enable-test-vald \
>                  --enable-test-perf \
>                  --enable-test-cpp \
>  "
>
> +
>  EXTRA_OEMAKE = "CROSS_COMPILE="${TARGET_PREFIX}" \
>                  SYSROOT="${STAGING_DIR_TARGET}" \
>  "
>
> +CFLAGS += "-Wno-format-truncation -Wno-maybe-uninitialized -Wno-implicit-fallthrough"
> +
>  PACKAGECONFIG[perf] = "--enable-test-perf,,,"
>
>  do_configure_prepend () {
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 16/29] linux :update to 9c3f355
  2017-09-28  5:33 ` [PATCH 16/29] linux :update to 9c3f355 Chunrong Guo
@ 2017-09-30 12:59   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 12:59 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:33 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> 9c3f355 - mtd: spi-nor: fsl-qspi: Limit read to specified count provided by above layer
> 66d46f2 - sdk_dpaa: ls1043a errata: maintain timestamp info
> f2576e9 - arm: configs: enable CONFIG_IP_MULTICAST in lsdk.config
> a48b188 - dts: ls1043aqds: add #address-cells = <1> and #size-cells to fpga node
> 7fe4a5f - drm/fsl-dcu: fix the wrong calling sequence for clk_prepare and clk_enable
> a645ba5 - mtd: spi-nor: fsl-quadspi: workaround for TKT253890
> e2485a1 - drivers: firmware: psci: use psci v0.2 to implement sleep
> 86c8006 - i2c: imx: allow i2c devices share an interrupt
> d9c2cd4 - dpaa_eth: avoid Tx timeout warnings
> 195de47 - dpaa_eth: avoid Tx timeout warnings
> a07f339 - usb: dwc3: fix some occasional call trace
> a43e0b7 - gianfar: Fix Tx flow control deactivation
> 70caa34 - sdk_dpaa: ls1043a errata: fix arm32 build
> 3ca12f1 - sdk_dpaa: ls1043a errata: do not recycle the realigned buffers
> c665a20 - sdk_dpaa: ls1043a errata: verify and resize headroom alignment
> b0375c7 - sdk_dpaa: ls1043a errata: realign skb in place if needed
> e587be3 - sdk_dpaa: ls1043a errata: realign and linearize egress skbs
> 438cbca - sdk_dpaa: ls1043a errata: resplit the skb after copy
> 66d6eb5 - linux/core: export copy_skb_header() function
> acbc1db - arm:configs: Add lttng.config to support LTTng modules
> 9621724 - arm64:configs: Add lttng.config to support LTTng modules
> 1405d32 - arm64: defconfig: enable CONFIG_RTC_DRV_PCF85263
> 3c94ee2 - config: rtc: pcf85263: add NXP PCF85263 support (i2c)
> 5e102e1 - config: enable support for lxd and lxd-bridge
> e3fc409 - arm64: dts: ls1012a: add USB host controller nodes
> dd6b18e - arm64: dts: ls1043a: add pcf85263 rtc nodes
> b9183aa - rtc: pcf85263: add NXP PCF85263 support (i2c)
> 0f94fc9 - usb: dwc3: fix usb dwc3 compile issue
> 9ca14ec - usb: dwc3: core: re-factor init and exit paths
> ee6056c - usb: dwc3: core: move fladj to dwc3 structure
> 7ef4ead - usb: dwc3: core: add fifo space helper
> 5f03a20 - usb: dwc3: add disable receiver detection in P3 quirk
> 74531b8 - usb: dwc3: core: fix PHY handling during suspend
> eedbe26 - usb: dwc3: drop ev_buffs array
> 3b62719 - usb: dwc3: remove num_event_buffers
> 53891bf - usb: dwc3: drop FIFO resizing logic
> 9cbc0b72 - usb: dwc3: Validate the maximum_speed parameter
> cec41d7 - usb: dwc3: Update maximum_speed for SuperSpeedPlus
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  recipes-kernel/linux/linux-qoriq_4.4.bb | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/recipes-kernel/linux/linux-qoriq_4.4.bb b/recipes-kernel/linux/linux-qoriq_4.4.bb
> index a22a51c..e7fc13a 100644
> --- a/recipes-kernel/linux/linux-qoriq_4.4.bb
> +++ b/recipes-kernel/linux/linux-qoriq_4.4.bb
> @@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
>
>  SRC_URI = "git://github.com/qoriq-open-source/linux.git;nobranch=1 \
>  "
> -SRCREV = "ec61f521be6a22b100aabc0e2726c670aec3c845"
> +SRCREV = "9c3f3554c9e7b01aa583ba377de81cd95ab4ab65"
>
>  S = "${WORKDIR}/git"
>
> @@ -63,10 +63,15 @@ do_install_append_qoriq-arm() {
>      ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage
>  }
>
> -do_deploy_append_qoriq-arm() {
> -    install -m 0644 arch/${ARCH}/boot/zImage ${DEPLOYDIR}/${ZIMAGE_BASE_NAME}.bin
> -    ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage-${MACHINE}.bin
> -    ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage
> +do_deploy_append_qoriq-arm64() {
> +    if [ -f ${DEPLOYDIR}/fsl-ls1043a-rdb-sdk.dtb ]; then
> +        mv fsl-ls1043a-rdb-sdk.dtb fsl-ls1043a-rdb.dtb
> +        mv  Image-fsl-ls1043a-rdb-sdk.dtb Image-fsl-ls1043a-rdb.dtb
> +    fi
> +    if [ -f ${DEPLOYDIR}/fsl-ls1046a-rdb-sdk.dtb ]; then
> +        mv fsl-ls1046a-rdb-sdk.dtb fsl-ls1046a-rdb.dtb
> +        mv Image-fsl-ls1046a-rdb-sdk.dtb Image-fsl-ls1046a-rdb.dtb
> +    fi

The DeviceTree files should use the right name on the kernel and not
be renamed externally; it causes a difference between build and
runtime which confuses user.

>  }
>
>  FILES_kernel-image += "/boot/zImage*"
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 17/29] linux-qoriq: update to v4.9
  2017-09-28  5:33 ` [PATCH 17/29] linux-qoriq: update to v4.9 Chunrong Guo
@ 2017-09-30 13:02   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 13:02 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:33 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  recipes-kernel/linux/linux-qoriq_4.9.bb | 78 +++++++++++++++++++++++++++++++++
>  1 file changed, 78 insertions(+)
>  create mode 100644 recipes-kernel/linux/linux-qoriq_4.9.bb
>
> diff --git a/recipes-kernel/linux/linux-qoriq_4.9.bb b/recipes-kernel/linux/linux-qoriq_4.9.bb
> new file mode 100644
> index 0000000..c434c34
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-qoriq_4.9.bb
> @@ -0,0 +1,78 @@
> +inherit kernel qoriq_build_64bit_kernel
> +inherit fsl-kernel-localversion
> +
> +SUMMARY = "Linux Kernel for Freescale QorIQ platforms"
> +SECTION = "kernel"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> +
> +SRC_URI = "git://github.com/qoriq-open-source/linux.git;nobranch=1 \
> +"
> +SRCREV = "f5edd990c1ed7844032db171e72a2d71cfc4712c"
> +
> +S = "${WORKDIR}/git"
> +
> +DEPENDS_append = " libgcc"
> +# not put Images into /boot of rootfs, install kernel-image if needed
> +RDEPENDS_kernel-base = ""
> +
> +KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
> +KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
> +KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
> +
> +ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
> +ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
> +
> +SCMVERSION ?= "y"
> +LOCALVERSION = ""
> +DELTA_KERNEL_DEFCONFIG ?= ""
> +DELTA_KERNEL_DEFCONFIG_prepend_qoriq-arm64 = "lsdk.config "
> +DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2-32b = "multi_v7_lpae.config lsdk.config multi_v8.config "
> +DELTA_KERNEL_DEFCONFIG_prepend_ls102xa = "multi_v7_lpae.config lsdk.config "
> +
> +do_merge_delta_config() {
> +    # copy desired defconfig so we pick it up for the real kernel_do_configure
> +    cp ${KERNEL_DEFCONFIG} .config
> +
> +    # add config fragments
> +    for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
> +        if [ -f "${deltacfg}" ]; then
> +            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
> +        elif [ -f "${WORKDIR}/${deltacfg}" ]; then
> +            ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
> +        elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then
> +            ${S}/scripts/kconfig/merge_config.sh -m .config \
> +                ${S}/arch/${ARCH}/configs/${deltacfg}
> +        fi
> +    done
> +    cp .config ${WORKDIR}/defconfig
> +}
> +addtask merge_delta_config before do_preconfigure after do_patch
> +
> +# The link of dts folder is needed for 32b compile of aarch64 targets(e.g. ls1043ardb-32b)
> +do_compile_prepend_fsl-lsch2-32b() {
> +    ln -sfT ${STAGING_KERNEL_DIR}/arch/arm64/boot/dts/freescale ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale
> +}
> +
> +do_install_prepend_fsl-lsch2-32b() {
> +    rm -f ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale
> +}

Couldn't this be handled on the kernel build system itself?

> +do_install_append_qoriq-arm() {
> +    install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION}
> +    ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage
> +}
> +
> +do_deploy_append_qoriq-arm64() {
> +    if [ -f ${DEPLOYDIR}/fsl-ls1043a-rdb-sdk.dtb ]; then
> +        mv fsl-ls1043a-rdb-sdk.dtb fsl-ls1043a-rdb.dtb
> +        mv  Image-fsl-ls1043a-rdb-sdk.dtb Image-fsl-ls1043a-rdb.dtb
> +    fi
> +    if [ -f ${DEPLOYDIR}/fsl-ls1046a-rdb-sdk.dtb ]; then
> +        mv fsl-ls1046a-rdb-sdk.dtb fsl-ls1046a-rdb.dtb
> +        mv Image-fsl-ls1046a-rdb-sdk.dtb Image-fsl-ls1046a-rdb.dtb
> +    fi
> +}

Device tree should use right name on kernel.

> +FILES_kernel-image += "/boot/zImage*"
> +COMPATIBLE_MACHINE = "(qoriq)"
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 21/29] dpl-examples: update to a6c8375
  2017-09-28  5:34 ` [PATCH 21/29] dpl-examples: update to a6c8375 Chunrong Guo
@ 2017-09-30 13:03   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 13:03 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:34 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> *include the following changes
> a6c8375 - Merge pull request #151 in DPAA2/dpl-examples from ls1088a to master
> 804d48a - ls1088a: add custom DPC with 4M bman buffers
> b51acbb - Merge pull request #148 in DPAA2/dpl-examples from ls1088a to master
> 3fe5c1a - ls1088a: Added DPNI@1 connected to DPMAC@2
> 05e9c76 - Merge pull request #141 in DPAA2/dpl-examples from ls2088a to master
> 89dfc05 - Merge pull request #140 in DPAA2/dpl-examples from ls1088a to master
> 8086cca - ls1088a: Added DPC and DPL for backplane support
> cf5aecb - ls2088a: Added DPC and DPL for backplane support
> 759cbc9 - add root LICENSE file
> 365f259 - add root LICENSE file
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  recipes-dpaa2/dpl-examples/dpl-examples_git.bb | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-dpaa2/dpl-examples/dpl-examples_git.bb b/recipes-dpaa2/dpl-examples/dpl-examples_git.bb
> index d6d668b..2e57d19 100644
> --- a/recipes-dpaa2/dpl-examples/dpl-examples_git.bb
> +++ b/recipes-dpaa2/dpl-examples/dpl-examples_git.bb
> @@ -7,7 +7,7 @@ DEPENDS = "dtc-native"
>  inherit deploy
>
>  SRC_URI = "git://github.com/qoriq-open-source/dpl-examples.git;nobranch=1"
> -SRCREV = "592fc2fd1f13107c8a4ae8070fed11a5f8d10471"
> +SRCREV = "a6c83759c0d9c02822eec89e86357a0998ef51d4"
>
>  S = "${WORKDIR}/git"
>
> @@ -17,11 +17,14 @@ REGLEX_ls1088a = "ls1088a"
>  do_install () {
>      install -d ${D}/boot
>      install -m 644 ${S}/${REGLEX}/RDB/*.dtb ${D}/boot
> +

Useless change.

>  }
>
>  do_deploy () {
>      install -d ${DEPLOYDIR}/dpl-examples
> +    install -d ${DEPLOYDIR}/dpl-examples/${REGLEX}/RDB/custom
>      install -m 644 ${S}/${REGLEX}/RDB/*.dtb ${DEPLOYDIR}/dpl-examples
> +    install -m 644 ${S}/${REGLEX}/RDB/custom/*.dtb ${DEPLOYDIR}/dpl-examples/${REGLEX}/RDB/custom
>  }
>  addtask deploy before do_build after do_install
>
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: [PATCH 23/29] secure-boot-qoriq : add recipes
  2017-09-28  5:34 ` [PATCH 23/29] secure-boot-qoriq : add recipes Chunrong Guo
@ 2017-09-30 13:06   ` Otavio Salvador
  0 siblings, 0 replies; 37+ messages in thread
From: Otavio Salvador @ 2017-09-30 13:06 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: meta-freescale, Chunrong Guo

On Thu, Sep 28, 2017 at 2:34 AM, Chunrong Guo <B40290@freescale.com> wrote:
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>>

This seems complex and has a lot of indirection that can be
simplified. Why instead of using the script in variables you don't use
text files which has indenting and allow for easier reading?

> ---
>  recipes-bsp/u-boot/secure-boot-qoriq.bb | 177 ++++++++++++++++++++++++++++++++
>  1 file changed, 177 insertions(+)
>  create mode 100644 recipes-bsp/u-boot/secure-boot-qoriq.bb
>
> diff --git a/recipes-bsp/u-boot/secure-boot-qoriq.bb b/recipes-bsp/u-boot/secure-boot-qoriq.bb
> new file mode 100644
> index 0000000..d4ba2dc
> --- /dev/null
> +++ b/recipes-bsp/u-boot/secure-boot-qoriq.bb
> @@ -0,0 +1,177 @@
> +DESCRIPTION = "NXP secure bootloader for qoriq devices"
> +SECTION = "bootloaders"
> +LICENSE = "GPLv2"
> +
> +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
> +
> +inherit deploy
> +
> +DEPENDS = "u-boot-mkimage-native cst-native"
> +
> +do_deploy[nostamp] = "1"
> +do_deploy[depends] += "virtual/kernel:do_build u-boot:do_build"
> +
> +S = "${WORKDIR}"
> +
> +do_patch[noexec] = "1"
> +do_configure[noexec] = "1"
> +do_compile[noexec] = "1"
> +
> +do_deploy () {
> +    if [ -n "${UBOOT_SCR}" ] ; then
> +        if [ -n "${SECUREVALIDATE}" ]; then
> +            if [ "${ENCAP}" = "1" ] ; then
> +                if [ "${BOOTSCRIPT_DEC}" != null ] ; then
> +                    echo ${SECUREVALIDATE_DEC} > ${BOOTSCRIPT_DEC}.tmp
> +                    echo ${DISTROBOOT} >> ${BOOTSCRIPT_DEC}.tmp
> +                mkimage -A arm64 -O linux -T script -C none -a 0 -e 0  -n "boot.scr" -d ${BOOTSCRIPT_DEC}.tmp ${BOOTSCRIPT_DEC}
> +                rm -f ${BOOTSCRIPT_DEC}.tmp
> +                install ${B}/${BOOTSCRIPT_DEC} ${DEPLOY_DIR_IMAGE}/
> +                fi
> +                echo ${SECUREVALIDATE_ENC} > ${UBOOT_SCR}.tmp
> +            else
> +                echo ${SECUREVALIDATE} > ${UBOOT_SCR}.tmp
> +            fi
> +        fi
> +        echo ${DISTROBOOT} >> ${UBOOT_SCR}.tmp
> +        mkimage -A arm64 -O linux -T script -C none -a 0 -e 0  -n "boot.scr" -d ${UBOOT_SCR}.tmp ${UBOOT_SCR}
> +        rm -f ${UBOOT_SCR}.tmp
> +        install ${B}/${UBOOT_SCR} ${DEPLOY_DIR_IMAGE}/
> +        install ${B}/${UBOOT_SCR} ${DEPLOY_DIR_IMAGE}/bootscript
> +    fi
> +
> +    if [ "x${UBOOT_SECURE_ENABLE}" = "x1" ]; then
> +        echo ${DISTROBOOT} >> bootscript
> +        cp bootscript ${DEPLOY_DIR_IMAGE}/
> +    fi
> +
> +    if [ -n "${KERNEL_IMG}" ]; then
> +        cd ${DEPLOY_DIR_IMAGE}
> +        rm -rf  ${KERNEL_IMG}.bin.gz ${KERNEL_IMG}.bin
> +        cp ${KERNEL_IMG} ${KERNEL_IMG}.bin
> +        gzip ${KERNEL_IMG}.bin
> +        mkimage -A arm64 -O linux -T kernel -C gzip  -a 0x80080000 -e 0x80080000 -n Linux -d ${KERNEL_IMG}.bin.gz ${KERNEL_UIMG}
> +    fi
> +
> +    cd ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst
> +    ./gen_keys 1024
> +    if [ "${ENCAP}" = "1" ]; then
> +        cp ${DEPLOY_DIR_IMAGE}/${BOOTSCRIPT_DEC} ./
> +    fi
> +    cp ${DEPLOY_DIR_IMAGE}/bootscript  ./
> +    if [ ${MACHINE} = ls1021atwr ]; then
> +        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_UIMG}-${MACHINE}.bin   uImage.bin
> +        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_UIMG}-${DEVICE_TREE}  uImage.dtb
> +        cp ${DEPLOY_DIR_IMAGE}/itbImage-${MACHINE}.bin  kernel.itb
> +    else
> +        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMG}-${DEVICE_TREE}  uImage.dtb
> +        cp ${DEPLOY_DIR_IMAGE}/${KERNEL_UIMG}   uImage.bin
> +        cp ${DEPLOY_DIR_IMAGE}/itbImage-${MACHINE}.bin  kernel.itb
> +    fi
> +
> +
> +    if [ -n "${UBOOT_CONFIG}" ]
> +    then
> +        for type in ${UBOOT_CONFIG}; do
> +            if  echo ${type} | grep -iE 'nor-secure-boot'; then
> +                type_tmp=nor
> +                if [ ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] ; then
> +                    if [ -z "${RCW_NOR}" -o "${RCW_NOR}" = "null" ]; then
> +                        echo boot nor on board not unsupported!
> +                        exit
> +                    fi
> +                    cp ${DEPLOY_DIR_IMAGE}/${RCW_NOR} rcw.bin
> +                fi
> +                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NORBOOT_SEC}  u-boot-dtb.bin
> +            elif echo ${type} | grep -iE 'qspi-secure-boot'; then
> +                 type_tmp=qspi
> +                 if [ ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] ; then
> +                    if [ -z "${RCW_QSPI}" -o "${RCW_QSPI}" = "null" ]; then
> +                        echo boot qspi on board not unsupported!
> +                        exit
> +                    fi
> +                    cp ${DEPLOY_DIR_IMAGE}/${RCW_QSPI} rcw.bin
> +                fi
> +                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_QSPIBOOT_SEC}  u-boot-dtb.bin
> +            elif echo ${type} | grep -iE 'sdcard-secure-boot'; then
> +                type_tmp=sd
> +                if [ ${MACHINE} = ls1088ardb -o ${MACHINE} = ls2088ardb ] ; then
> +                    if [ -z "${RCW_SD}" -o "${RCW_SD}" = "null" ]; then
> +                        echo boot sd on board not unsupported!
> +                        exit
> +                    fi
> +                    cp ${DEPLOY_DIR_IMAGE}/${RCW_SD} rcw.bin
> +                fi
> +                if [ "${UBOOT_SDBOOT_SEC}" = "null" -o -z "${UBOOT_SDBOOT_SEC}" ]; then
> +                    echo sd sec boot on board for secureboot unsupported
> +                    exit
> +                fi
> +                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_SDBOOT_SEC} u-boot-with-spl-pbl.bin
> +                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_SPL} u-boot-spl.bin
> +                cp ${DEPLOY_DIR_IMAGE}/${UBOOT_DTB} u-boot-dtb.bin
> +            else
> +                type_tmp=nand
> +            fi
> +
> +            if [ ${type_tmp} = nand ]; then
> +                continue;
> +            fi
> +
> +            if [ -f ${DEPLOY_DIR_IMAGE}/ppa.itb ] ; then
> +                cp ${DEPLOY_DIR_IMAGE}/ppa.itb  ppa.itb
> +            fi
> +
> +            if [ -f ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_FW} ] ; then
> +                cp ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_FW}   mc.itb
> +            fi
> +
> +            if [ -f ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPC} ] ; then
> +                cp ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPC}  dpc.dtb
> +            fi
> +
> +            if [ -f ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPL} ] ; then
> +                cp ${DEPLOY_DIR_IMAGE}/${DPAA2_MC_DPL} dpl.dtb
> +            fi
> +
> +            if echo ${type} | grep -iE 'nand'; then
> +                . ${NAND_SCRIPT}
> +            elif echo ${type} | grep -iE 'sd'; then
> +                . ${SD_SCRIPT}
> +            elif echo ${type} | grep -iE 'nor'; then
> +                . ${NOR_SCRIPT}
> +            elif echo ${type} | grep -iE 'qspi'; then
> +               . ${QSPI_SCRIPT}
> +            fi
> +
> +            if echo ${type} | grep -iE 'sd'; then
> +                if [  ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] ; then
> +                    cp rcw_sec.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_SDBOOT_SEC}
> +                else
> +                    cp u-boot-with-spl-pbl-sec.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_SDBOOT_SEC}
> +                fi
> +            elif echo ${type} | grep -iE 'nand'; then
> +                cp u-boot-with-spl-pbl-sec.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_NANDBOOT_SEC}
> +            else
> +                if [ ${MACHINE} = ls2088ardb -o ${MACHINE} = ls1088ardb ] && [ -f ${DEPLOY_DIR_IMAGE}/rcw_sec.bin ]; then
> +                    cp rcw_sec.bin ${DEPLOY_DIR_IMAGE}/$rcwimg_sec
> +                fi
> +            fi
> +
> +            install -d ${DEPLOYDIR}/secboot_hdrs
> +            install -m 755  hdr_dtb.out ${DEPLOYDIR}/secboot_hdrs/
> +            install -m 755  hdr_linux.out  ${DEPLOYDIR}/secboot_hdrs/
> +            install -m 755  hdr_bs.out ${DEPLOYDIR}/secboot_hdrs/hrd_${MACHINE}_bs.out
> +            install -m 755  secboot_hdrs.bin  ${DEPLOYDIR}/secboot_hdrs
> +            install -m 755  srk_hash.txt ${DEPLOYDIR}/secboot_hdrs
> +            install -m 755  srk.pri ${DEPLOYDIR}/secboot_hdrs
> +            install -m 755  srk.pub ${DEPLOYDIR}/secboot_hdrs
> +            if [ "$ENCAP" = "1" ]; then
> +                install -m 755 hdr_bs_dec.out ${DEPLOYDIR}/secboot_hdrs/hdr_${MACHINE}_bs_dec.out
> +            fi
> +        done
> +    fi
> +}
> +
> +addtask deploy before do_build after do_compile
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> --
> 1.9.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2017-09-30 13:06 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28  5:33 [PATCH 01/29] qe-ucode: update SRC_URL Chunrong Guo
2017-09-28  5:33 ` [PATCH 02/29] rcw :update to 1a6236a Chunrong Guo
2017-09-30 12:53   ` Otavio Salvador
2017-09-28  5:33 ` [PATCH 03/29] uboot: update to upgrade to 2017.09 Chunrong Guo
2017-09-28  5:33 ` [PATCH 04/29] cst :update to 1afb40c Chunrong Guo
2017-09-28  5:33 ` [PATCH 05/29] eth-config: update SRC_URL Chunrong Guo
2017-09-28  5:33 ` [PATCH 06/29] flib: update to 14489ee Chunrong Guo
2017-09-30 12:54   ` Otavio Salvador
2017-09-28  5:33 ` [PATCH 07/29] fmlib: update SRC_URL Chunrong Guo
2017-09-28  5:33 ` [PATCH 08/29] aiopsl: update to 2b7284f Chunrong Guo
2017-09-28  5:33 ` [PATCH 09/29] gpp-aioptool: update to 43b842b Chunrong Guo
2017-09-28  5:33 ` [PATCH 10/29] restool: update to 87c3abe Chunrong Guo
2017-09-28  5:33 ` [PATCH 11/29] restool:add ls1043ardb and ls1046ardb support Chunrong Guo
2017-09-28  5:33 ` [PATCH 12/29] cantest: update SRC_URL Chunrong Guo
2017-09-28  5:33 ` [PATCH 13/29] dpdk: update to 64578fa Chunrong Guo
2017-09-30 12:56   ` Otavio Salvador
2017-09-28  5:33 ` [PATCH 14/29] odp: update to bef6398 Chunrong Guo
2017-09-30 12:57   ` Otavio Salvador
2017-09-28  5:33 ` [PATCH 15/29] ovs-dpdk: update SRC_URL Chunrong Guo
2017-09-28  5:33 ` [PATCH 16/29] linux :update to 9c3f355 Chunrong Guo
2017-09-30 12:59   ` Otavio Salvador
2017-09-28  5:33 ` [PATCH 17/29] linux-qoriq: update to v4.9 Chunrong Guo
2017-09-30 13:02   ` Otavio Salvador
2017-09-28  5:33 ` [PATCH 18/29] qoriq-base: add UBINIZE_ARGS and MKUBIFS_ARGS Chunrong Guo
2017-09-28  5:34 ` [PATCH 19/29] ppa :update to d455113 Chunrong Guo
2017-09-28  5:34 ` [PATCH 20/29] uefi :update to bd59c46 Chunrong Guo
2017-09-28  5:34 ` [PATCH 21/29] dpl-examples: update to a6c8375 Chunrong Guo
2017-09-30 13:03   ` Otavio Salvador
2017-09-28  5:34 ` [PATCH 22/29] mc:update to 10.3.2 Chunrong Guo
2017-09-28  5:34 ` [PATCH 23/29] secure-boot-qoriq : add recipes Chunrong Guo
2017-09-30 13:06   ` Otavio Salvador
2017-09-28  5:34 ` [PATCH 24/29] ls1088ardb: update UBOOT_CONFIG Chunrong Guo
2017-09-28  5:34 ` [PATCH 25/29] ls1088ardb: add default environment variable for build secureboot Chunrong Guo
2017-09-28  5:34 ` [PATCH 26/29] ls1043ardb: " Chunrong Guo
2017-09-28  5:34 ` [PATCH 27/29] ls1046ardb: " Chunrong Guo
2017-09-28  5:34 ` [PATCH 28/29] ls2088ardb: " Chunrong Guo
2017-09-28  5:34 ` [PATCH 29/29] ls1021atwr: " Chunrong Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.