<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic compiled kernel image: cannot execute binary file in T-Series</title>
    <link>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625988#M1676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;I'm working with T10 series, specifically the T1023RDB.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Here's my problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;OL&gt;&lt;LI style="margin-left: 15px;"&gt;I compile a linux image, a root file system, and device tree for the target board&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bitbake fsl-image-core&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I boot from these binaries following the directions in the SDK manual.&amp;nbsp;&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;tftp 1000000 uImage&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;tftp 4000000 fsl-image-core-t1023rdb.ext2.gz.u-boot&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;tftp 9000000 uImage-t1023rdb.dtb&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bootm 1000000 4000000 9000000&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I build the toolchain and source the environment file (same board support package as the kernel image)&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bitbake fsl-toolchain&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bash tmp/deploy/sdk/(install-file-name).sh&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;source /opt/fsl-qoriq/2.0/(environment-setup-name).sh&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I compile a simple C program with this environment &amp;nbsp;&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;$CC hello.c -o hello.x&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I try to run it on the board and I get this message : "cannot execute binary file"&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;(configure the ethernet ports, acquire hello.x)&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;. ./hello.x&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;-sh: .: ./hello.x: cannot execute binary file&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frankly, I'm stumped. The interpreter is&amp;nbsp;&lt;EM&gt;/lib/ld.so.1&lt;/EM&gt; which seems to be present on the board. Oddly enough, if I just let the board boot without using my images, the executable can run just fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 18:22:53 GMT</pubDate>
    <dc:creator>maxruttenberg</dc:creator>
    <dc:date>2016-09-16T18:22:53Z</dc:date>
    <item>
      <title>compiled kernel image: cannot execute binary file</title>
      <link>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625988#M1676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;I'm working with T10 series, specifically the T1023RDB.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Here's my problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;OL&gt;&lt;LI style="margin-left: 15px;"&gt;I compile a linux image, a root file system, and device tree for the target board&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bitbake fsl-image-core&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I boot from these binaries following the directions in the SDK manual.&amp;nbsp;&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;tftp 1000000 uImage&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;tftp 4000000 fsl-image-core-t1023rdb.ext2.gz.u-boot&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;tftp 9000000 uImage-t1023rdb.dtb&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bootm 1000000 4000000 9000000&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I build the toolchain and source the environment file (same board support package as the kernel image)&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bitbake fsl-toolchain&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;bash tmp/deploy/sdk/(install-file-name).sh&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;source /opt/fsl-qoriq/2.0/(environment-setup-name).sh&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I compile a simple C program with this environment &amp;nbsp;&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;$CC hello.c -o hello.x&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;I try to run it on the board and I get this message : "cannot execute binary file"&lt;UL&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;(configure the ethernet ports, acquire hello.x)&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;. ./hello.x&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 15px;"&gt;&lt;EM&gt;-sh: .: ./hello.x: cannot execute binary file&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frankly, I'm stumped. The interpreter is&amp;nbsp;&lt;EM&gt;/lib/ld.so.1&lt;/EM&gt; which seems to be present on the board. Oddly enough, if I just let the board boot without using my images, the executable can run just fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625988#M1676</guid>
      <dc:creator>maxruttenberg</dc:creator>
      <dc:date>2016-09-16T18:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: compiled kernel image: cannot execute binary file</title>
      <link>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625989#M1677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="287784" data-username="maxruttenberg" href="https://community.nxp.com/people/maxruttenberg"&gt;Max Ruttenberg,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you mentioned, there is no problem with the default pre-built image.&lt;/P&gt;&lt;P&gt;What have you modified for building &lt;EM&gt;fsl-image-core? &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Would you please provide the recipe file which you modified?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 06:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625989#M1677</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2016-09-18T06:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: compiled kernel image: cannot execute binary file</title>
      <link>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625990#M1678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylvia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;What have you modified for building &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM&gt;fsl-image-core?&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've added a tiny kernel module. It's pretty much just a pci device driver that does nothing except&amp;nbsp;enable a device. The module initializes&amp;nbsp;and runs fine.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Would you please provide the recipe file which you modified?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To the best of my knowledge I haven't modified any recipe file, at least not deliberately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 16:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625990#M1678</guid>
      <dc:creator>maxruttenberg</dc:creator>
      <dc:date>2016-09-19T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: compiled kernel image: cannot execute binary file</title>
      <link>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625991#M1679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have new information. If I do:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;file hello.x&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;hello.x: ERROR: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, interpreter&amp;nbsp;&lt;STRONG&gt;ib/ld.so.1 error reading (Invalid argument)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performing a readelf on my machine, I can see that the interpreter is supposed to be &lt;STRONG&gt;/lib/ld.so.1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, if I take a working binary from the board (/bin/cat) and do a readelf on my personal machine I get a litany errors suggesting that the format of these executables is not what's expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There appears be a mismatch of some sort between the compiler for the operating system images and the compiler for the toolchain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:48:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625991#M1679</guid>
      <dc:creator>maxruttenberg</dc:creator>
      <dc:date>2016-09-19T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: compiled kernel image: cannot execute binary file</title>
      <link>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625992#M1680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well... I figured it out. I've been using TFTP to get executables onto my development board. It turns that the &lt;EM&gt;tftp&lt;/EM&gt; executable provided in&amp;nbsp;&lt;EM&gt;fsl-image-core&lt;/EM&gt; has been corrupting the binary files. That's why&amp;nbsp;&lt;EM&gt;readelf&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;file&lt;/EM&gt; have both been failing to read the binary files that have been moved using TFTP. I wasn't using the "binary" command in the tftp prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:55:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/compiled-kernel-image-cannot-execute-binary-file/m-p/625992#M1680</guid>
      <dc:creator>maxruttenberg</dc:creator>
      <dc:date>2016-09-20T21:55:50Z</dc:date>
    </item>
  </channel>
</rss>

