Difference between revisions of "IMX8/Nitrogen8M/Android/Building Android"
< IMX8 | Nitrogen8M | Android
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{IMX8/Head|carrier,carrier board,base board,SOM,System on Module,Boundary Devices,Nitrogen8M,Android 7.x,build,install}}</noinclude> | + | <noinclude>{{IMX8/Head|previous=Nitrogen8M/Android|next=Nitrogen8M/Android/Installing_an_image|metakeywords=carrier,carrier board,base board,SOM,System on Module,Boundary Devices,Nitrogen8M,Android 7.x,build,install}}</noinclude> |
− | =For Android 7.x (Nougat)= | + | ==For Android 7.x (Nougat)== |
Recommended OS: Ubuntu 16.04 | Recommended OS: Ubuntu 16.04 | ||
− | ==Installing dependencies== | + | ===Installing dependencies=== |
Android dependencies | Android dependencies | ||
<pre> | <pre> | ||
Line 20: | Line 20: | ||
</pre> | </pre> | ||
− | ==Getting the source code== | + | ===Getting the source code=== |
Getting repo tool | Getting repo tool | ||
<pre> | <pre> | ||
Line 50: | Line 50: | ||
* Nougat 7.1.1: boundary-imx-n7.1.1_1.0.0-ga | * Nougat 7.1.1: boundary-imx-n7.1.1_1.0.0-ga | ||
− | ==Build instructions== | + | ===Build instructions=== |
Set the environment with the next command: | Set the environment with the next command: | ||
<pre> | <pre> |
Latest revision as of 12:17, 9 March 2023
|
Contents
For Android 7.x (Nougat)
Recommended OS: Ubuntu 16.04
Installing dependencies
Android dependencies
sudo apt-get install openjdk-8-jdk sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \ lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \ libgl1-mesa-dev libxml2-utils xsltproc unzip
Freescale dependencies
sudo apt-get install uuid uuid-dev lzop gperf liblz-dev liblzo2-2 \ liblzo2-dev u-boot-tools flex mtd-utils android-tools-fsutils bc
Getting the source code
Getting repo tool
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo ~/bin/repo chmod a+x ~/bin/repo export PATH=~/bin:$PATH
Register in Boundary Devices's page in order to get access to the source and send your SSH public key
Test your access with the following command:
ssh git@linode.boundarydevices.com
Download the source code with repo:
mkdir myandroid cd myandroid repo init -u git://github.com/boundarydevices/android-manifest.git -b boundary-imx-n7.1.1_1.0.0-ga repo sync
The -b parameter select the Android version, other version are shown below:
- KitKat 4.4.3: boundary-imx-kk4.4.3_2.0.1-ga
- Lollipop 5.1.1: boundary-imx-l5.1.1_2.1.0-ga
- Marshmallow 6.0.1: boundary-imx-m6.0.1_1.0.0-ga
- Nougat 7.1.1: boundary-imx-n7.1.1_1.0.0-ga
Build instructions
Set the environment with the next command:
~/myandroid$ source build/envsetup.sh
Choose target board from the list
~/myandroid$ lunch
Build the image
~/myandroid$ make 2>&1 | tee build.out
In order to flash the image, go to the section flashing images.