<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 4:30 PM, Saul Wold <span dir="ltr">&lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 10/29/2013 01:20 PM, Chris Patterson wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Tue, Oct 29, 2013 at 3:27 AM, Laurentiu Palcu<br></div><div><div class="h5">
&lt;<a href="mailto:laurentiu.palcu@intel.com" target="_blank">laurentiu.palcu@intel.com</a> &lt;mailto:<a href="mailto:laurentiu.palcu@intel.com" target="_blank">laurentiu.palcu@intel.<u></u>com</a>&gt;&gt; wrote:<br>
<br>
    Hi Chris,<br>
<br>
    On Mon, Oct 28, 2013 at 07:54:51PM -0400, Chris Patterson wrote:<br>
     &gt;<br>
     &gt; I&#39;m not terribly familiar with the nativesdk, and (foolishly)<br>
    neglected to test<br>
     &gt; that.  However, I looked into it, and it looks like the<br>
    relocatable_sdk.patch<br>
     &gt; affects a linker script that is no longer available.  I dropped<br>
    the patch and<br>
     &gt; tested installing an oe-core sdk sysroot (via bitbake -c populate_sdk<br>
     &gt; core-image-minimal) and qemu appears to work fine from within the sdk<br>
     &gt; environment.<br>
     &gt;<br>
     &gt; I&#39;m open to suggestions for further testing this upgrade<br>
    (particularly a case<br>
     &gt; to cover what relocatable_sdk.patch was originally intended to<br>
    resolve). I&#39;m<br>
     &gt; certainly not the expert here, but am willing to help out.<br>
     &gt;<br>
    To test this particular case, build meta-toolchain and install it in a<br>
    different location than the default one. Then, just do a &#39;readelf -s&quot;<br>
    on any qemu binary and make sure the .interp section has a size of<br>
    0x1000 bytes.<br>
<br>
    If it does, then it&#39;s ok to drop the patch. That patch was needed<br>
    because qemu happened to use their own linker scripts and, in order to<br>
    have the SDK relocatable, we needed to reseve space in the .interp<br>
    section to squeeze the new path.<br>
<br>
<br>
Thanks Laurentiu - I did validate that the interp section looks to be<br>
0x1000 bytes for the qemu-* binaries:<br>
<br>
$<br>
/usr/local/oecore-x86_64/<u></u>sysroots/x86_64-oesdk-linux/<u></u>usr/bin/qemu-system-arm<br>
--version<br>
QEMU emulator version 1.6.1, Copyright (c) 2003-2008 Fabrice Bellard<br>
<br>
$ readelf -S<br>
/usr/local/oecore-x86_64/<u></u>sysroots/x86_64-oesdk-linux/<u></u>usr/bin/qemu-system-arm<br>
<br>
There are 29 section headers, starting at offset 0x5a14b8:<br>
<br>
Section Headers:<br>
   [Nr] Name              Type             Address           Offset<br>
        Size              EntSize          Flags  Link  Info  Align<br>
   [ 0]                   NULL             0000000000000000  00000000<br>
        0000000000000000  0000000000000000           0     0     0<br>
   [ 1] .interp           PROGBITS         0000000000000270  00000270<br>
        0000000000001000  0000000000000000   A       0     0     1<br>
   [ 2] .note.ABI-tag     NOTE             0000000000001270  00001270<br>
        0000000000000020  0000000000000000   A       0     0     4<br>
   [ 3] .note.gnu.build-i NOTE             0000000000001290  00001290<br>
...<br>
<br>
If anyone has any other suggestions to test, I will gladly attempt them<br>
before posting a v2.<br>
<br>
</div></div></blockquote>
<br>
Your last message said you tested core-image-minimal, did you do any testing with a graphical image like core-image sato?  We really apperciate the work you put in here.<br>
<br></blockquote><div><br>I built core-image-sato for qemuarm and it appears to work fine.  Are there any other typical methods/scripts which invoke nativesdk-qemu or qemu-native besides runqemu?  runqemu works fine for qemu-native, but runqemu doesn&#39;t work for me within the sdk (missing python fnctl module dependency).  Instead I have tested nativesdk-qemu by directly invoking qemu-*.<br>
<br></div><div>Thanks<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks<br>
        Sau!<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Cheers!<br>
-Chris<br>
</blockquote>
</blockquote></div><br></div></div>