Return-Path: Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.17]) by arago-project.org (Postfix) with ESMTPS id B3DC75298F for ; Mon, 3 Oct 2016 19:48:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id 7B9A320914; Mon, 3 Oct 2016 19:48:40 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo03-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uw8iq9aKXKo1; Mon, 3 Oct 2016 19:48:40 +0000 (UTC) Received: from gandalf.denix.org (pool-100-15-110-130.washdc.fios.verizon.net [100.15.110.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id 5803320058; Mon, 3 Oct 2016 19:48:39 +0000 (UTC) Received: from sam.denix (sam [192.168.0.5]) by gandalf.denix.org (Postfix) with ESMTP id E1CF516212C; Mon, 3 Oct 2016 15:48:38 -0400 (EDT) From: Denys Dmytriyenko To: meta-arago@arago-project.org Date: Mon, 3 Oct 2016 15:48:36 -0400 Message-Id: <1475524117-18960-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 1/2] Revert "kernel-fitimage: move ramdisk section right after kernel to fix u-boot loading" X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 19:48:41 -0000 From: Denys Dmytriyenko This reverts commit 030b6607ee4ef781f1150908e6d1f05fea29dc91. Signed-off-by: Denys Dmytriyenko --- meta-arago-distro/classes/kernel-fitimage.bbclass | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/meta-arago-distro/classes/kernel-fitimage.bbclass b/meta-arago-distro/classes/kernel-fitimage.bbclass index d9b9ff8..23b162b 100644 --- a/meta-arago-distro/classes/kernel-fitimage.bbclass +++ b/meta-arago-distro/classes/kernel-fitimage.bbclass @@ -473,18 +473,7 @@ fitimage_assemble() { fitimage_emit_section_kernel ${1} "${kernelcount}" linux.bin.sec "${linux_comp}" # - # Step 2: Prepare a ramdisk section. - # - if [ "x${ramdiskcount}" = "x1" ] ; then - copy_initramfs - RAMDISK_FILE="usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio" - xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} ${RAMDISK_FILE} > ${RAMDISK_FILE}.xz - fitimage_ti_secure ${RAMDISK_FILE}.xz ${RAMDISK_FILE}.xz.sec - fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" ${RAMDISK_FILE}.xz.sec - fi - - # - # Step 3: Prepare a DTB image section + # Step 2: Prepare a DTB image section # if test -n "${KERNEL_DEVICETREE}"; then dtbcount=1 @@ -511,7 +500,7 @@ fitimage_assemble() { fi # - # Step 4: Prepare OP/TEE image section + # Step 2a: Prepare OP/TEE image section # if test -n "${FITIMAGE_TEE}"; then mkdir -p ${B}/usr @@ -536,13 +525,24 @@ fitimage_assemble() { fi # - # Step 5: Prepare a setup section. (For x86) + # Step 3: Prepare a setup section. (For x86) # if test -e arch/${ARCH}/boot/setup.bin ; then setupcount=1 fitimage_emit_section_setup ${1} "${setupcount}" arch/${ARCH}/boot/setup.bin fi + # + # Step 4: Prepare a ramdisk section. + # + if [ "x${ramdiskcount}" = "x1" ] ; then + copy_initramfs + RAMDISK_FILE="usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio" + xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} ${RAMDISK_FILE} > ${RAMDISK_FILE}.xz + fitimage_ti_secure ${RAMDISK_FILE}.xz ${RAMDISK_FILE}.xz.sec + fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" ${RAMDISK_FILE}.xz.sec + fi + fitimage_emit_section_maint ${1} sectend # Force the first Kernel and DTB in the default config @@ -552,7 +552,7 @@ fitimage_assemble() { fi # - # Step 6: Prepare a configurations section + # Step 5: Prepare a configurations section # fitimage_emit_section_maint ${1} confstart @@ -567,7 +567,7 @@ fitimage_assemble() { fitimage_emit_section_maint ${1} fitend # - # Step 7: Assemble the image + # Step 6: Assemble the image # uboot-mkimage \ ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ -- 2.7.4