Skip to contentSkip to conversation

support for more kernel image types than just only uImage

PATCH In review Silvio 3 participants 7 messages Apr 23, 2013

lore
Share & tools
lore

Silvio

author
#0 lore raw

PATCH 1/1 support for more kernel image types than just only uImage

---
 classes/image_types_fsl.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/image_types_fsl.bbclass +2 -2
index b803aef..b894495 100644
@@ -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}'`

--
1.8.2.1

#1 lore raw
Quoted 3 lines · Silvio
---
  classes/image_types_fsl.bbclass | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Beautiful!

I believe it will work for linux-fslc as well, but, did you tested it?

Which board did you used to test it?

Signature · 1 line
Daiane
author
#2 lore raw
Quoted 6 lines

Beautiful!

I believe it will work for linux-fslc as well, but, did you tested it?

Which board did you used to test it?

I have test it on a 3rd party board, based on a own machine.conf. But on a sabrelite it works.

Bye,
Silvio

Signature · 4 lines
-- S. Fricke ---------------------------------------- [email protected] --
   Diplom-Informatiker (FH)         TEL:                 0049-177-4675014
   Linux-Entwicklung             JABBER: [email protected]   
-- Ina-Seidel-Bogen 45, D-81929 Muenchen -----------------------------------
#3 lore raw
Quoted 9 lines · Silvio F.
Quoted 6 lines

Beautiful!

I believe it will work for linux-fslc as well, but, did you tested it?

Which board did you used to test it?

I have test it on a 3rd party board, based on a own machine.conf. But on a sabrelite it works.

OK.

I can test it for imx28evk

Signature · 1 line
Daiane
#4 lore raw
In reply to Silvio F.
Quoted 10 lines · Silvio F.
Quoted 6 lines

Beautiful!

I believe it will work for linux-fslc as well, but, did you tested it?

Which board did you used to test it?

I have test it on a 3rd party board, based on a own machine.conf. But on a sabrelite it works.

Could you, please, resend your patch using git send email?

https://github.com/Freescale/fsl-community-bsp-platform

Please, base your changes on master. And make sure your patch is applicable.

When you send v2 I test it for imx28evk.

Signature · 1 line
Daiane
#5 lore raw
Quoted 14 lines · Daiane Angolini
Quoted 4 lines · Silvio F.
Quoted 4 lines

Beautiful!

Quoted 8 lines
Quoted 3 lines

I believe it will work for linux-fslc as well, but, did you tested it?

Which board did you used to test it?

I have test it on a 3rd party board, based on a own machine.conf. But on a sabrelite it works.

Quoted 7 lines

Could you, please, resend your patch using git send email?

https://github.com/Freescale/fsl-community-bsp-platform

Please, base your changes on master. And make sure your patch is applicable.

When you send v2 I test it for imx28evk.

And please follow the Yocto commit message style:

https://wiki.yoctoproject.org/wiki/Contribution_Guidelines#Patch_Headers_and_Commit_Messages

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

author
#6 lore raw
In reply to Silvio

Hi,

sorry for no text in the last mail. Please review and/or apply

Cheers,
Silvio

Quoted 33 lines
---
 classes/image_types_fsl.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/image_types_fsl.bbclass +2 -3
index b803aef..b894495 100644
@@ -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}'`
--

1.8.2.1

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Signature · 4 lines
-- S. Fricke ---------------------------------------- [email protected] --
   Diplom-Informatiker (FH)         TEL:                 0049-177-4675014
   Linux-Entwicklung             JABBER: [email protected]   
-- Ina-Seidel-Bogen 45, D-81929 Muenchen -----------------------------------