<?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 Re: How to compile busybox in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508061#M82738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Weidong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It’s very kind of you to give me this advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My busybox source code ( located at ~/myandroid/external/busybox ) and the binary file busybox ( located at ~/myandroid/device/fsl-proprietary/test/bin/busybox ) came from android_kk4.4.2_1.0.0-ga_core_source.tar.gz which download from freescale .So , when I patch code for i.MX, I got busybox source code and binary file,but I don't kown how to make the binary file from the source code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm stuck here for a long time,please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Qiulong Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 08:58:42 GMT</pubDate>
    <dc:creator>lqll</dc:creator>
    <dc:date>2016-01-05T08:58:42Z</dc:date>
    <item>
      <title>How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508058#M82735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community&lt;/P&gt;&lt;P&gt;My environment is i.MX6Q and android 4.4.2.&lt;/P&gt;&lt;P&gt;I modified some commands in busybox then I want to compile it,I follow &lt;A href="https://community.nxp.com/docs/DOC-95046"&gt;busybox on the i.MX6 sabre sd platform in a few commands&lt;/A&gt; ,and these are my steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #909090;"&gt;&lt;STRONG&gt;$ cd myandroid/external/busybox&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;SPAN style="color: #909090;"&gt;&lt;STRONG style="font-style: inherit;"&gt;$ export ARCH=arm&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;SPAN style="color: #909090;"&gt;&lt;STRONG style="font-style: inherit;"&gt;$ export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;SPAN style="color: #909090;"&gt;&lt;STRONG style="font-style: inherit;"&gt;$ make defconfig&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;SPAN style="color: #909090;"&gt;&lt;STRONG style="font-style: inherit;"&gt;$ sed -i.orig 's/^#.*CONFIG_STATIC.*/CONFIG_STATIC=y/' .config&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;SPAN style="color: #909090;"&gt;&lt;STRONG style="font-style: inherit;"&gt;$ make&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;SPAN style="color: #909090;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f;"&gt;When I make,I got fail,like below:&lt;/P&gt;&lt;P style="color: #51626f;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #909090;"&gt;CC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applets/applets.o&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #909090;"&gt;applets/applets.c:10:20: fatal error: assert.h: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #909090;"&gt;compilation terminated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #909090;"&gt;make[1]: *** [applets/applets.o] Error 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #909090;"&gt;make: *** [applets_dir] Error 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,please tell me how to compile busybox?&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Qiulong Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 09:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508058#M82735</guid>
      <dc:creator>lqll</dc:creator>
      <dc:date>2015-12-28T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508059#M82736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be due to incompatibility between the busybox version and the toolchain version used for compiling busybox.&lt;/P&gt;&lt;P&gt;You can try a different version of toolchain and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 09:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508059#M82736</guid>
      <dc:creator>poonguzhalip</dc:creator>
      <dc:date>2015-12-28T09:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508060#M82737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Qiulong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, the question is not in our support range, but I can give you some advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;(1) Downloading new version if busybox from it's source code website.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;(2)Adjusting it's Makefile according to the path of cross-compiler in your linux system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;(3)Compiling it by static mode(this mode will compile libs into those commands you want)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;(4)After compiling, copy those .bin files in output directory to /system/bin/ of android.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;(or, make a subdirectory, such as 'bin' in root directroy)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;(5) Adding your commmand path to init.rc ( for example add /bin/ in path prameter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; Hope above items can help you !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Weidong&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 06:25:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508060#M82737</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2016-01-04T06:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508061#M82738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Weidong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It’s very kind of you to give me this advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My busybox source code ( located at ~/myandroid/external/busybox ) and the binary file busybox ( located at ~/myandroid/device/fsl-proprietary/test/bin/busybox ) came from android_kk4.4.2_1.0.0-ga_core_source.tar.gz which download from freescale .So , when I patch code for i.MX, I got busybox source code and binary file,but I don't kown how to make the binary file from the source code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm stuck here for a long time,please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Qiulong Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 08:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508061#M82738</guid>
      <dc:creator>lqll</dc:creator>
      <dc:date>2016-01-05T08:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508062#M82739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's tool-chain issue. Please use ltib (or Yocto) toolchain instead of Android's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 05:14:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508062#M82739</guid>
      <dc:creator>JayTu</dc:creator>
      <dc:date>2016-01-06T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508063#M82740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Jay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You are right,use $ make CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- ,then it works!&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 06:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508063#M82740</guid>
      <dc:creator>lqll</dc:creator>
      <dc:date>2016-01-06T06:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508064#M82741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I've downloaded, installed and built YOCTO to compile busybox 1.24.2&lt;/P&gt;&lt;P&gt;I have ran the following steps:&lt;/P&gt;&lt;P&gt;1.- MACHINE=imx6dlsabresd DISTRO=poky source ./setup-environment base&lt;/P&gt;&lt;P&gt;2.- bitbake meta-toolchain&lt;/P&gt;&lt;P&gt;3.- executed&amp;nbsp;fslc-wayland-glibc-x86_64-meta-toolchain-armv7at2hf-neon-toolchain-2.2.2.sh to install the SDK&lt;/P&gt;&lt;P&gt;4.- executed&amp;nbsp;environment-setup-armv7at2hf-neon-fslc-linux-gnueabi from the console in which I am running the make of the busybox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;make&lt;BR /&gt; SPLIT include/autoconf.h -&amp;gt; include/config/*&lt;BR /&gt; GEN include/bbconfigopts.h&lt;BR /&gt; HOSTCC applets/usage&lt;BR /&gt;applets/usage.c: In function ‘main’:&lt;BR /&gt;applets/usage.c:52:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]&lt;BR /&gt; write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);&lt;BR /&gt; ^&lt;BR /&gt; GEN include/usage_compressed.h&lt;BR /&gt; HOSTCC applets/applet_tables&lt;BR /&gt;applets/applet_tables.c: In function ‘main’:&lt;BR /&gt;applets/applet_tables.c:161:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]&lt;BR /&gt; fgets(line_old, sizeof(line_old), fp);&lt;BR /&gt; ^&lt;BR /&gt; GEN include/applet_tables.h&lt;BR /&gt; CC applets/applets.o&lt;BR /&gt;In file included from /opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/syslimits.h:7:0,&lt;BR /&gt; from /opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/limits.h:34,&lt;BR /&gt; from include/platform.h:141,&lt;BR /&gt; from include/libbb.h:13,&lt;BR /&gt; from include/busybox.h:8,&lt;BR /&gt; from applets/applets.c:9:&lt;BR /&gt;/opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h&lt;BR /&gt; #include_next &amp;lt;limits.h&amp;gt; /* recurse down to the real one */&lt;BR /&gt; ^&lt;BR /&gt;In file included from include/libbb.h:13:0,&lt;BR /&gt; from include/busybox.h:8,&lt;BR /&gt; from applets/applets.c:9:&lt;BR /&gt;include/platform.h:152:23: fatal error: byteswap.h: No such file or directory&lt;BR /&gt; # include &amp;lt;byteswap.h&amp;gt;&lt;BR /&gt; ^&lt;BR /&gt;compilation terminated.&lt;BR /&gt;scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed&lt;BR /&gt;make[1]: *** [applets/applets.o] Error 1&lt;BR /&gt;Makefile:372: recipe for target 'applets_dir' failed&lt;BR /&gt;make: *** [applets_dir] Error 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martín&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 20:49:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508064#M82741</guid>
      <dc:creator>martincarra</dc:creator>
      <dc:date>2017-08-03T20:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508065#M82742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Qiulong&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have the same problem now.I use $make menuconfig to selecte the &lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;Cross Compiler prefix ,but also report error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;I think the reason is the path for Makefile .but i dont know how to do.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 07:55:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508065#M82742</guid>
      <dc:creator>tomzhu</dc:creator>
      <dc:date>2017-09-07T07:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile busybox</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508066#M82743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, Now I compile the busybox with freescale toolchains， find the same problem with you. How did&amp;nbsp; you resolve it ?&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 08:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-compile-busybox/m-p/508066#M82743</guid>
      <dc:creator>shunpinglin</dc:creator>
      <dc:date>2017-10-31T08:33:07Z</dc:date>
    </item>
  </channel>
</rss>

