AnsweredAssumed Answered

Can't get Android KK4.4.3_2 to build for IMX6 on Ubuntu 14.04 LTS

Question asked by Bill Butler on Mar 25, 2015
Latest reply on Jul 29, 2017 by JayTu

Trying to Build Android KK 4.4.3_2 for iMX6 SabreSD board.

 

Using Ubuntu 14.04 LTS as host environment.

 

I have been able to successfully build and run Android KK for Sabre lite board using instructions from http://boundarydevices.com/android-kitkat-second-release-mx6-boards/.  This would seems to say that my host machine is setup correctly for building Android.

 

I want build a Android install for the IMX6 using FreeScales build instructions.  I am following the Freescale Android User's Guide (Rev KK4.4.3_2.0.0-ga, 2/2015 found here

i.MX 6 Series Software and Development Tool R|Freescale  and 

IMX6_KK443_200_ANDROID_SOURCE_BSP

 

Steps I completed  from Section 3)

 

$ cd ~

$ mkdir myandroid

$ mkdir bin

$ cd myandroid

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

$ chmod a+x ~/bin/repo

$ ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.3_r1

$ ~/bin/repo sync # this command loads most needed repos. Therefore, it can take several

hours to load.

 

Get KK4.4.3_2.0.0-ga kernel source code from Freescale open source git:

$ cd myandroid

$ git clone git://git.freescale.com/imx/linux-2.6-imx.git kernel_imx # the kernel repo is

heavy. Therefore, this process can take a while.

$ cd kernel_imx

$ git checkout kk4.4.3_2.0.0-ga

 

$ cd myandroid/bootable

$ cd bootloader

$ git clone git://git.freescale.com/imx/uboot-imx.git uboot-imx

$ cd uboot-imx

$ git checkout kk4.4.3_2.0.0-ga

 

$ cd ~/myandroid

$ source /opt/android_KK4.4.3_2.0.0-ga_core_source/code/KK4.4.3_2.0.0-ga/and_patch.sh

 

$ c_patch /opt/android_KK4.4.3_2.0.0-ga_core_source/code/KK4.4.3_2.0.0-ga

imx_KK4.4.3_2.0.0-ga


3. If everything is OK, "c_patch" will generate the following output to indicate the successful patch:

 

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

Success: Now you can build the Android code for FSL i.MX platform

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



I get the correct output.. All looks Good...

 

 

$ cd ~/myandroid

$ source build/envsetup.sh

$ lunch sabresd_6dq-user

 

The Last Command FAILS!..

After investigation it does NOT look like the PATCH completed..


For example

   myandriod/devices/fsl is not populated

 

user@ubuntu:/opt/Android/myandroid/device/fsl$ ls -la

total 12

drwxrwxr-x  3 user user 4096 Mar 25 15:02 .

drwxrwxr-x 11 user user 4096 Mar 25 15:02 ..

-rw-rw-r--  1 user user    0 Mar 25 15:02 .dummy

drwxrwxr-x  8 user user 4096 Mar 25 15:02 .git

 

 

In myandroid/kernel_imx/arch/arm/

I would expect a mx6 subdirectory.. This is missing.

 

I have done the complete process 2 times..

 

What Am I missing?

 

Thanks

Outcomes