From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (hermes.mlbassoc.com [64.234.241.98]) by mx1.pokylinux.org (Postfix) with ESMTP id 332334C800B8 for ; Mon, 11 Jul 2011 09:20:41 -0500 (CDT) Received: by mail.chez-thomas.org (Postfix, from userid 999) id BF24C16601E3; Mon, 11 Jul 2011 08:20:40 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by mail.chez-thomas.org (Postfix) with ESMTP id 6D00116601E1; Mon, 11 Jul 2011 08:20:39 -0600 (MDT) Message-ID: <4E1B06B7.3010102@mlbassoc.com> Date: Mon, 11 Jul 2011 08:20:39 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: Poky Project References: <4E1B0525.4030107@mlbassoc.com> In-Reply-To: <4E1B0525.4030107@mlbassoc.com> Subject: Re: UBIFS images X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 14:20:41 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/11/2011 08:13 AM, Gary Thomas wrote: > I'm trying to use UBIFS on my target and I found that the images > are not quite right. The soft-link points to the wrong file. > > $ ls -l tmp/deploy/images/*ubi* > -rw-r--r-- 1 gthomas gthomas 7483392 Jul 11 07:56 tmp/deploy/images/my_distro-console-image-my_target-20110711135454.ubifs.img > lrwxrwxrwx 1 gthomas gthomas 62 Jul 11 07:56 tmp/deploy/images/my_distro-console-image-my_target.ubifs -> my_distro-console-image-my_target-20110711135454.rootfs.ubifs > > I've looked through meta/classes/image_types.bbclass but it's not > clear to me [yet] where that soft-link gets built and why it gets > it wrong. > > Any pointers? Following up on my own question, this patch seems to fix it. diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 8c86227..629d5ec 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -67,7 +67,7 @@ IMAGE_CMD_ubi () { echo vol_flags=autoresize >> ubinize.cfg mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS} && ubinize -o ${D } -IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS}" +IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS}" EXTRA_IMAGECMD = "" EXTRA_IMAGECMD_jffs2 ?= "--pad --little-endian --eraseblock=0x40000" If this looks reasonable, I'll send it on to oe-core -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------