<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div>Hello.</div>
<div><br>
</div>
<div>Though the build successfully completes, but the image does not boot and I believe parameters are not set properly for my image.</div>
<div><br>
</div>
<div>What I am trying to do is to build xxx.hdddirect image instead of xxx.hddimg for genericx86(, on fido).</div>
<div><br>
</div>
<div>As I inspect with '-e' option, I believe, at least the following is wrong.</div>
<div><br>
</div>
<div>> # $SYSLINUX_ROOT [3 operations]</div>
<div>> #   set /mnt/ssd2/yocto/dev/wk/x86/wk3/build-root/sources/poky/meta/classes/image-live.bbclass:5</div>
<div>> #     "root=/dev/ram0"</div>
<div>> #   set? /mnt/ssd2/yocto/dev/wk/x86/wk3/build-root/sources/poky/meta/classes/image-vmdk.bbclass:4</div>
<div>> #     "root=/dev/sda2"</div>
<div>> #   set? /mnt/ssd2/yocto/dev/wk/x86/wk3/build-root/sources/> poky/meta/classes/boot-directdisk.bbclass:63</div>
<div>> #     "root=/dev/sda2"</div>
<div>> # pre-expansion value:</div>
<div>> #   "root=/dev/ram0"</div>
<div>> SYSLINUX_ROOT="root=/dev/ram0"</div>
<div><br>
</div>
<div>I think SYSLINUX_ROOT here is set by image-live.bbclass's value, not by boot-directdisk.bbclass's.</div>
<div><br>
</div>
<div>I feel this is strange that in my local.conf, I have explicitly removed 'live' from IMAGE_FSTYPES and added 'vmdk'.</div>
<div><br>
</div>
<div>But, in the above, image-live.bbclass seems to be interpreted and affecting the variable expansion.</div>
<div><br>
</div>
<div>I think, the following line in image.bbclass is deciding if it reads image-live.bbclass or not.</div>
<div><br>
</div>
<div>>IMAGE_TYPE_live = "${@build_live(d)}"</div>
<div>></div>
<div>>inherit ${IMAGE_TYPE_live}</div>
<div><br>
</div>
<div>Since IMAGE_TYPE_live is set to '' as follows, I believe image-live.bbclass should never interpreted?</div>
<div><br>
</div>
<div>> # $IMAGE_TYPE_live</div>
<div>> #   set /mnt/ssd2/yocto/dev/wk/x86/wk3/build-root/sources/poky/meta/classes/image.bbclass:129</div>
<div>> #     "${@build_live(d)}"</div>
<div>> IMAGE_TYPE_live=""</div>
<div><br>
</div>
<div>I tried BBMASK'ing image-live.bbclass, but it still seems to be read.</div>
<div><br>
</div>
<div>So, I am a bit of stuck here.</div>
<div><br>
</div>
<p></p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Takashi Matsuzawa<br>
<b>Sent:</b> Thursday, July 14, 2016 10:06 PM<br>
<b>To:</b> Maxin B. John<br>
<b>Cc:</b> yocto@yoctoproject.org<br>
<b>Subject:</b> Re: [yocto] image-vmdk with genericx86</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello</p>
<p><br style="color:rgb(33,33,33); font-size:13.3333px">
<span style="color:rgb(33,33,33); font-size:13.3333px">>IMAGE_FSTYPES += "vmdk"</span><br>
</p>
<div><br>
</div>
Thank you it worked.
<div>(I should remember  '_append'  applied after all '=' assignments are done.)</div>
<div><br>
</div>
<div>After .hdddirect image is successfully created, I am still working on the following.</div>
<div><br>
</div>
<div>i) image does not boot, maybe its boot device path thing...<br>
<div>ii) hddimage, iso images are also generated.  I may want to disable generation of these (and leave images types that I need only), so that bitbake completes much earlier.</div>
<div>iii) same can be sade to do_populatesdk it seems to run default. <br>
<div>
<div><br>
<div style="color:rgb(0,0,0)">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Maxin B. John <maxin.john@intel.com><br>
<b>Sent:</b> Thursday, July 14, 2016 12:16 AM<br>
<b>To:</b> Takashi Matsuzawa<br>
<b>Cc:</b> yocto@yoctoproject.org<br>
<b>Subject:</b> Re: [yocto] image-vmdk with genericx86</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">Hi Takashi-san,<br>
<br>
On Wed, Jul 13, 2016 at 10:51:34AM +0000, Takashi Matsuzawa wrote:<br>
>Hello, Yocto.<br>
><br>
>Should it be possible to simply change image class of genericx86 from xxxx.hddimg to xxxx.hdddirect?<br>
><br>
>I have been successfully building genericx86 image (that is image-live.bbclass based), and now trying to build it with directdisk (xxxx.hdddirect).<br>
><br>
>I thought it would be simpler to use pre-existing imageclass, so I tried following after finding image-vmdk.bbclass inherits boot-directdisk.<br>
><br>
>Currently my build is based on Yocto 1.8 (fido).<br>
><br>
><br>
>(in my local.conf)<br>
><br>
>IMAGE_FSTYPES_remove = " live"<br>
>IMAGE_FSTYPES_append = " vmdk"<br>
<br>
Instead of the above two, could you use the following line in local.conf and build again ?<br>
<br>
IMAGE_FSTYPES += "vmdk"<br>
<br>
>But this caused following error.<br>
><br>
>I am currently looking into the class files to find the cause of error, but anyway, this should work?<br>
><br>
><br>
>>ERROR: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'vmdk' - possibly invalid type name or missing support class<br>
>> ERROR: Function failed: do_rootfs<br>
>> ERROR: Logfile of failure stored in:<br>
>>/mnt/ssd2/yocto/dev/tmp/x86-wk3/work/genericx86-poky-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_rootfs.20432<br>
>> ERROR: Task 229<br>
>>(/mnt/ssd2/yocto/dev/wk/x86/wk3/build-root/sources/poky/meta/recipes-core/images/core-image-minimal-initramfs.bb, do_rootfs) failed with exit code '1'<br>
<br>
<br>
Best Regards,<br>
Maxin<br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>