From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B6606E00A1C; Mon, 15 Jun 2015 05:11:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B8739E009E5 for ; Mon, 15 Jun 2015 05:11:35 -0700 (PDT) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id 06D5FF811DD; Mon, 15 Jun 2015 06:11:34 -0600 (MDT) Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 4249FF811D9; Mon, 15 Jun 2015 06:11:34 -0600 (MDT) Message-ID: <557EC106.1070502@mlbassoc.com> Date: Mon, 15 Jun 2015 06:11:50 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Daiane Angolini References: <1434305309-3749-1-git-send-email-gary@mlbassoc.com> In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: [PATCH] image_types_fsl: Fix sdcard build error X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2015 12:11:40 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2015-06-15 04:59, Daiane Angolini wrote: > On Sun, Jun 14, 2015 at 3:08 PM, Gary Thomas wrote: >> Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made >> it an error to overwrite an image using mkfs.vfat. This patch fixes >> that problem by removing any old/stale images, thus starting from scratch. > > Hi Gary, > > Would you mind to share the symptom which made you think about this patch? > > I faced some crazy errors last week I though was caused by my sdcard > adaptor (which is not exactly reliable) and I want to double check. > > No problem with your patch... only asking Without the patch, generating the .sdcard image failed (i.e. big red error!) in the do_rootfs step. >> >> Signed-off-by: Gary Thomas >> --- >> classes/image_types_fsl.bbclass | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass >> index 1ebcb06..b542549 100644 >> --- a/classes/image_types_fsl.bbclass >> +++ b/classes/image_types_fsl.bbclass >> @@ -152,6 +152,7 @@ generate_imx_sdcard () { >> # Create boot partition image >> BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ >> | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') >> + rm -f ${WORKDIR}/boot.img >> mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS >> mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} >> >> @@ -255,6 +256,7 @@ generate_mxs_sdcard () { >> BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ >> | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') >> >> + rm -f ${WORKDIR}/boot.img >> mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS >> mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} >> if test -n "${KERNEL_DEVICETREE}"; then >> -- >> 1.9.1 >> >> -- >> _______________________________________________ >> meta-freescale mailing list >> meta-freescale@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/meta-freescale -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------