<?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: Error building Android ramdisk on 32-bit system in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161615#M3487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Remi,&lt;/P&gt;&lt;P&gt;Thanks for the response. I tried executing 'patch_android.sh' before 'fix_android.sh' and got the following:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt; warning: squelched 20 whitespace errors&lt;BR /&gt; warning: 25 lines add whitespace errors.&lt;BR /&gt;error: include/asm-arm/arch: already exists in working directory&lt;BR /&gt;Error! Fail to apply patch from /opt/freescale/imx53/adeneo-bsp/android-r10.2/install/imx-android-r10.2/code/r10.2/platform/bootable/bootloader/uboot-imx.git to /opt/freescale/imx53/adeneo-bsp/android-r10.2/src/bootable/bootloader/uboot-imx. Stop&lt;BR /&gt;[njozwiak@calvin scripts]$ ./fix_android.sh&lt;BR /&gt;[njozwiak@calvin scripts]$ ./build_android.sh imx53_qsb android&lt;BR /&gt;################################################&lt;BR /&gt;Building: BUILD_UBOOT=0 BUILD_KERNEL=0 BUILD_ANDROID=1&lt;BR /&gt;Using: &lt;BR /&gt;CPUS=4 CPUS_ANDROID=1&lt;BR /&gt;################################################&lt;BR /&gt;build/core/product_config.mk:203: *** No matches for product "imx53_loco". Stop.&lt;BR /&gt;/opt/freescale/imx53/adeneo-bsp/android-r10.2&lt;BR /&gt;mkimage: Can't open ./ramdisk.img: No such file or directory&lt;BR /&gt;[njozwiak@calvin scripts]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// I know I got the error in the patch_android.sh script. I just continued executing the fix and the build after for the results to post here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CITE&gt;Remi Lorriaux said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/error-building-android-ramdisk?groupUrl=imx53quickstartboard&amp;amp;#4103961Comment22458"&gt;&lt;DIV&gt;&lt;P&gt;You actually want to use fix_android.sh after ./patch_android.sh because applying the latter actually reverts the android sources back to 64 bit. You do not need to reinstall the whole thing, just run fix_android.sh.&lt;/P&gt;&lt;P&gt;I will update the release notes in the next releases to fix that. Thanks for your feedback.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 06:07:26 GMT</pubDate>
    <dc:creator>NathanJozwiak</dc:creator>
    <dc:date>2011-07-08T06:07:26Z</dc:date>
    <item>
      <title>Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161613#M3485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to bring-up Android on the i.MX53 QSB and am having an issue building the ramdisk. I downloaded the board support package from the Adeneo website and have followed the instructions in the "Adeneo_i.MX53QSB_Android_Gingerbread_User_Guide_v4.0.doc", but when building the ramdisk, I am receiving the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[njozwiak@calvin scripts]$ ./build_android.sh imx53_qsb android&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Building:&amp;nbsp; BUILD_UBOOT=0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;BUILD_KERNEL=0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;BUILD_ANDROID=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Using:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CPUS=4&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CPUS_ANDROID=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;============================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PLATFORM_VERSION_CODENAME=REL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PLATFORM_VERSION=2.3.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARGET_PRODUCT=imx53_loco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARGET_BUILD_VARIANT=eng&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARGET_SIMULATOR=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARGET_BUILD_TYPE=release&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARGET_BUILD_APPS=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARGET_ARCH=arm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HOST_ARCH=x86&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HOST_OS=linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HOST_BUILD_TYPE=release&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;BUILD_ID=GRI40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;============================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Checking build tools versions...build/core/main.mk:76:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;build/core/main.mk:77: You are attempting to build on a 32-bit system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.build/core/main.mk:79:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;build/core/main.mk:80: *** stop. &amp;nbsp;Stop./opt/freescale/imx53/adeneo-bsp/android-gingerbread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;mkimage: Can't open ./ramdisk.img: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[njozwiak@calvin scripts]$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not receive any errors building U-Boot or the kernel, just Android. The Adeneo user guide warns of using 32-bit machines to build, but provides a patch (that I ran) to allow for it:&lt;/P&gt;&lt;P&gt;"By default, the Gingerbread build-system now requires a 64-bit machine. The sources can be patched to build Android on 32-bit machines. Only run this command if this is the case for you (tested on Ubuntu 10.10):&lt;/P&gt;&lt;P&gt;$ ./fix_android.sh"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this behavior working on a 32-bit system before? Any insight would be appreciated. My system information is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Nate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fedora 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[njozwiak@calvin scripts]$ uname -a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Linux calvin 2.6.38.6-27.fc15.i686 #1 SMP Sun May 15 17:57:13 UTC 2011 i686 i686 i386 GNU/Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 20:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161613#M3485</guid>
      <dc:creator>NathanJozwiak</dc:creator>
      <dc:date>2011-07-07T20:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161614#M3486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You actually want to use fix_android.sh after ./patch_android.sh because applying the latter actually reverts the android sources back to 64 bit. You do not need to reinstall the whole thing, just run fix_android.sh.&lt;/P&gt;&lt;P&gt;I will update the release notes in the next releases to fix that. Thanks for your feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 23:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161614#M3486</guid>
      <dc:creator>rlorriaux</dc:creator>
      <dc:date>2011-07-07T23:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161615#M3487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Remi,&lt;/P&gt;&lt;P&gt;Thanks for the response. I tried executing 'patch_android.sh' before 'fix_android.sh' and got the following:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt; warning: squelched 20 whitespace errors&lt;BR /&gt; warning: 25 lines add whitespace errors.&lt;BR /&gt;error: include/asm-arm/arch: already exists in working directory&lt;BR /&gt;Error! Fail to apply patch from /opt/freescale/imx53/adeneo-bsp/android-r10.2/install/imx-android-r10.2/code/r10.2/platform/bootable/bootloader/uboot-imx.git to /opt/freescale/imx53/adeneo-bsp/android-r10.2/src/bootable/bootloader/uboot-imx. Stop&lt;BR /&gt;[njozwiak@calvin scripts]$ ./fix_android.sh&lt;BR /&gt;[njozwiak@calvin scripts]$ ./build_android.sh imx53_qsb android&lt;BR /&gt;################################################&lt;BR /&gt;Building: BUILD_UBOOT=0 BUILD_KERNEL=0 BUILD_ANDROID=1&lt;BR /&gt;Using: &lt;BR /&gt;CPUS=4 CPUS_ANDROID=1&lt;BR /&gt;################################################&lt;BR /&gt;build/core/product_config.mk:203: *** No matches for product "imx53_loco". Stop.&lt;BR /&gt;/opt/freescale/imx53/adeneo-bsp/android-r10.2&lt;BR /&gt;mkimage: Can't open ./ramdisk.img: No such file or directory&lt;BR /&gt;[njozwiak@calvin scripts]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// I know I got the error in the patch_android.sh script. I just continued executing the fix and the build after for the results to post here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CITE&gt;Remi Lorriaux said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/error-building-android-ramdisk?groupUrl=imx53quickstartboard&amp;amp;#4103961Comment22458"&gt;&lt;DIV&gt;&lt;P&gt;You actually want to use fix_android.sh after ./patch_android.sh because applying the latter actually reverts the android sources back to 64 bit. You do not need to reinstall the whole thing, just run fix_android.sh.&lt;/P&gt;&lt;P&gt;I will update the release notes in the next releases to fix that. Thanks for your feedback.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 06:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161615#M3487</guid>
      <dc:creator>NathanJozwiak</dc:creator>
      <dc:date>2011-07-08T06:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161616#M3488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Remi:&lt;/P&gt;&lt;P&gt;I do understand that Android development went to 64-bit after froyo (android 2.2). To build ginberbread and beyond require 64-bit system, and I mean the host. Not the target. The key issue here is that supplied library modules are formatted 64-bit and incompatible with the 32-bit gcc linker. Nothing you can do at source level. So you have a choice of focusing on froyo (which I am doing for the time being), or upgrade your development host to 64-bit (and running 64-bit Ubantu or something).&lt;/P&gt;&lt;P&gt;Your patch_android_sh log, while looks like problem, is pretty similar to what I got. They are OK, I think,. You just needed to move down to froyo (adeneo release 9.4, I think).&lt;/P&gt;&lt;P&gt;Take care,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 16:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161616#M3488</guid>
      <dc:creator>TakAsami</dc:creator>
      <dc:date>2011-07-08T16:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161617#M3489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan,&lt;/P&gt;&lt;P&gt;I have not seen this error during my test builds. The patch should apply correctly so I suggest you start from scratch to make sure we are on the same page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tak,&lt;/P&gt;&lt;P&gt;The patch that builds Gingerbread on Ubuntu 10.10 32bit is more of a hack than anything (it does not work on another 10.04). It clearly is not meant to be supported in the long term.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 17:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161617#M3489</guid>
      <dc:creator>rlorriaux</dc:creator>
      <dc:date>2011-07-08T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161618#M3490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your input guys. Remi, it looks like your last message got cut off, but instead of trying to get this working I am just going to move to a 64-bit environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 17:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161618#M3490</guid>
      <dc:creator>NathanJozwiak</dc:creator>
      <dc:date>2011-07-08T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error building Android ramdisk on 32-bit system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161619#M3491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I successfully built Gingerbread (i.MX53-QSB-Android-Gingerbread-Release4.1) from source on 32-bit ubuntu 11.10.&lt;/P&gt;&lt;P&gt;The built code runs fine on i.MX53 QSB&lt;/P&gt;&lt;P&gt;However, it is not enough to run the provided patch for 32-bit, &lt;EM&gt;fix_android_32bit.sh&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;For me there were 2 build errors.&lt;/P&gt;&lt;P&gt;Fortunately the solution could be googled,&lt;/P&gt;&lt;P&gt;See: &lt;A href="http://e-xiao.blogspot.com/2011/10/resolve-build-errors-for-android-234.html"&gt;http://e-xiao.blogspot.com/2011/10/resolve-build-errors-for-android-234.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;#1: In &lt;I&gt;frameworks/base/libs/utils/Android.mk&lt;/I&gt;&lt;BR /&gt; Change the line:&lt;BR /&gt; LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)&lt;BR /&gt; To:&lt;BR /&gt; LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) –fpermissive&lt;/P&gt;&lt;P&gt;#2:In &lt;I&gt;build/core/combo/HOST_linux-x86.mk&lt;/I&gt; ,line 61 as following.&lt;BR /&gt; -HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0&lt;BR /&gt; +HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulf Palmér&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 07:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-building-Android-ramdisk-on-32-bit-system/m-p/161619#M3491</guid>
      <dc:creator>UlfPalmacr</dc:creator>
      <dc:date>2011-12-07T07:33:24Z</dc:date>
    </item>
  </channel>
</rss>

