Nathan Jozwiak

Error building Android ramdisk on 32-bit system

Discussion created by Nathan Jozwiak on Jul 7, 2011
Latest reply on Dec 7, 2011 by Ulf Palmer

Hi all,

 

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:

 

[njozwiak@calvin scripts]$ ./build_android.sh imx53_qsb android

################################################

Building:  BUILD_UBOOT=0 

BUILD_KERNEL=0 

BUILD_ANDROID=1

Using: 

CPUS=4 

CPUS_ANDROID=1

################################################

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=2.3.3

TARGET_PRODUCT=imx53_loco

TARGET_BUILD_VARIANT=eng

TARGET_SIMULATOR=

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=GRI40

============================================

Checking build tools versions...build/core/main.mk:76:

************************************************************

build/core/main.mk:77: You are attempting to build on a 32-bit system.

build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.build/core/main.mk:79:

************************************************************

build/core/main.mk:80: *** stop.  Stop./opt/freescale/imx53/adeneo-bsp/android-gingerbread

mkimage: Can't open ./ramdisk.img: No such file or directory

[njozwiak@calvin scripts]$

 

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:

"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):

$ ./fix_android.sh"

 

Has anyone else experienced this behavior working on a 32-bit system before? Any insight would be appreciated. My system information is below.

 

Thanks,
Nate 

 

Fedora 15

 

[njozwiak@calvin scripts]$ uname -a

Linux calvin 2.6.38.6-27.fc15.i686 #1 SMP Sun May 15 17:57:13 UTC 2011 i686 i686 i386 GNU/Linux

Outcomes