The document will introduce how to setup cross‐compiling environment for android android7.1.1 BSP on Ubuntu 16.04.2 LTS, The purpose is to help i.MX customers create android BSP environment quickly, from this, save customer’s time and let them focus on the development of their product. Customer can compile android7.1.1 BSP according to the following steps:
‐‐Installing Ubuntu160.4.2 LTS 1. Running software updater to update system
Customer can download ubuntu‐16.04.2‐desktop‐amd64.iso from https://www.ubuntu.com/download/desktop Then install it to VMware workstation player v12 or PC, after finishing installation, use “Software Updater” to update system.
2. Installing necessary packages
Before compiling android7.1.1 source code, we need to install some neccesary software packages, see following, please!
[Note] During runing repo sync, maybe errors will occur like the following: ...... * [new tag] studio‐1.4 ‐> studio‐1.4 error: Exited sync due to fetch errors Then 'repo sync' exits. But don't worry about it, continue to run the command please ! " ~/bin/repo sync", downloading source code will be continous. 3.2Getting uboot source code
$ cd ~/myandroid/bootable $ mkdir bootloader $ cd bootloader $ git clone git://git.freescale.com/imx/uboot-imx.git uboot-imx $ cd uboot-imx $ git checkout n7.1.1_1.0.0-ga
3.3 Downloading linux kernel
$ cd ~/myandroid $ git clone git://git.freescale.com/imx/linux-imx.git kernel_imx
$ cd kernel_imx $ git checkout n7.1.1_1.0.0-ga
4.Downloading android7.1.1 BSP source code and patch it above source code
4.1 Android7.1.1 BSP can be downloaded from the link: