From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B9C1AE00C44; Mon, 14 Mar 2016 10:01:22 -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.analogue-micro.com (mail.analogue-micro.com [217.144.149.242]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 12D58E00C23 for ; Mon, 14 Mar 2016 10:01:20 -0700 (PDT) Received: by mail.analogue-micro.com (Postfix, from userid 999) id 8976768A01C; Mon, 14 Mar 2016 17:01:17 +0000 (GMT) Received: from zeus.mlbassoc.com (unknown [10.8.0.2]) by mail.analogue-micro.com (Postfix) with ESMTP id E2D4E68A019; Mon, 14 Mar 2016 17:01:16 +0000 (GMT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by zeus.mlbassoc.com (Postfix) with ESMTP id F1F61674005C; Mon, 14 Mar 2016 18:01:14 +0100 (CET) To: yocto@yoctoproject.org References: <56E64947.5020606@mlbassoc.com> From: Gary Thomas Message-ID: <56E6EE59.80907@mlbassoc.com> Date: Mon, 14 Mar 2016 18:01:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: Problems building live image X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 17:01:22 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 03/14/2016 05:34 PM, K Richard Pixley wrote: > On 3/13/16 22:16 , Gary Thomas wrote: >> I'd like to to some testing that qemu just doesn't seem up to >> so I attempted to build a live ISO per the documentation. I >> added these lines to local.conf: >> IMAGE_FSTYPES_genericx86 += "live" >> NOISO_genericx86 = "0" >> >> When I try to build core-image-base I get this error: >> ERROR: INITRD_IMAGE_LIVE core-image-minimal-initramfs cannot use image live, hddimg or iso. >> ERROR: Check IMAGE_FSTYPES and INITRAMFS_FSTYPES settings. >> ERROR: Failed to parse recipe: /local/poky-cutting-edge/meta/recipes-core/images/core-image-minimal-initramfs.bb >> >> I'm using a recent Poky checkout (d53413d3a8444c38a83ea37867c8af7754d8e702) >> >> Am I just doing something wrong here? I was following this section of the mega-manual: >> >> 26.56. image-live.bbclass¶ >> >> The image-live class supports building "live" images. >> >> Normally, you do not use this class directly. Instead, you add "live" to IMAGE_FSTYPES. >> For example, if you were building an ISO image, you would add "live" to IMAGE_FSTYPES, >> set the NOISO variable to "0" and the build system would use the image-live class to >> build the ISO image. >> >> I don't have any available hardware for this testing, so I thought >> I'd use VirtualBox. Is this a reasonable approach? I want to use >> a live ISO so I get a writable file system. I tried just using the >> .hddimage but that doesn't boot with VirtualBox :-( >> >> To be clear, along with the additions above in local.conf, I tried: >> $ MACHINE=genericx86 bitbake core-image-base >> >> Thanks for any ideas > You can boot the .hddimg on VirtualBox by first converting it to vdi, (or vmdk), using: > > qemu-img convert -O vdi foo.hddimg foo.vdi > > The vmdk doesn't seem to work for me on VMware, oddly. And adding vmdk to IMAGE_FSTYPES doesn't seem to work either as > it is apparently built from hdddirect, (no clue why that's distinct from hddimg but it doesn't boot for me). Thanks. I got the .vmdk to boot but I had to manually select the root device during boot to root=/dev/hda2. After that, it worked as expected. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------