Patchwork [meta-fsl-arm] support for more kernel image types than just only uImage

login
register
mail settings
Submitter S. Fricke
Date April 24, 2013, 9:51 a.m.
Message ID <1366797095-16823-1-git-send-email-sfricke@data-modul.com>
Download mbox | patch
Permalink /patch/48725/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

S. Fricke - April 24, 2013, 9:51 a.m.
From: "S. Fricke" <sfricke@data-modul.com>

Currently image_types_fsl.bbclass supports only uImage kernelimage type. With
this patch we support other image types like zImage.

This patch is tested with a 3rd-party board and a sabrelite board.


Signed-off-by: S. Fricke <sfricke@data-modul.com>
---
 classes/image_types_fsl.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Otavio Salvador - April 24, 2013, 11:35 a.m.
On Wed, Apr 24, 2013 at 6:51 AM, S. Fricke <sfricke@data-modul.com> wrote:
> From: "S. Fricke" <sfricke@data-modul.com>
>
> Currently image_types_fsl.bbclass supports only uImage kernelimage type. With
> this patch we support other image types like zImage.
>
> This patch is tested with a 3rd-party board and a sabrelite board.
>
>
> Signed-off-by: S. Fricke <sfricke@data-modul.com>

The patch is good but please change the commit log, based on:

---
image_types_fsl.bbclass: Add support for kernel image types

Use the KERNEL_IMAGETYPE variable, making the class configurable
for all supported kernel image types.

This patch is tested with a 3rd-party board and a sabrelite board.
---

Or something like that. The change affects only the class and it
should be clear about it.

Regards,

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

Patch

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index b803aef..b894495 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -118,7 +118,7 @@  generate_imx_sdcard () {
 	BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
 	                  | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }')
 	mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
-	mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
+	mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
 
 	# Copy boot scripts
 	for item in ${BOOT_SCRIPTS}; do
@@ -221,7 +221,7 @@  generate_mxs_sdcard () {
 	        | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }')
 
 		mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
-		mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
+		mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
 		if test -n "${KERNEL_DEVICETREE}"; then
 			for DTS_FILE in ${KERNEL_DEVICETREE}; do
 				DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`