summaryrefslogtreecommitdiff
path: root/android/images/armv8-android-juno-lsk/HOWTO_getsourceandbuild.txt
blob: af5bdab851eae80149dd0dfc8f33af72ad7cac25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
h2. License

The use of Juno software is subject to the terms of the Juno "End User License Agreement":https://releases.linaro.org/latest/android/images/armv8-android-juno-lsk/#tabs-5.

h1. Accessing Source Code

h2. Linaro Android Source Code

Run the "linaro_android_build_cmds.sh":http://releases.linaro.org/latest/android/images/armv8-android-juno-lsk/linaro_android_build_cmds.sh script, it will download the entire source code for both Android and the kernel and attempt to build it.

The pinned and source manifests can be found here:

* "Pinned Manifest":http://releases.linaro.org/latest/android/images/armv8-android-juno-lsk/pinned-manifest.xml ("?":https://wiki.linaro.org/Platform/Android/ReproduceABuildExactly)
* "Source Manifest":http://releases.linaro.org/latest/android/images/armv8-android-juno-lsk/source-manifest.xml

h2. Compiling Linaro Android RootFS+Kernel

The following simple steps download, install and compile a complete Linaro Android distribution

* Download and install Ubuntu 12.04 64 bit or newer ("download":http://www.ubuntu.com)
* Install the following packages:

bc. sudo apt-get update
sudo apt-get install zip curl flex bison build-essential git-core gnupg gperf zlib1g-dev libx11-dev x11proto-core-dev \
gcc-multilib g++-multilib libc6-dev-i386 ia32-libs lib32z-dev gcc-4.5 g++-4.5 cpp-4.5 gcc-4.5-multilib g++-4.5-multilib \
uuid-dev openjdk-7-jdk ant lib32ncurses5-dev xsltproc
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javadoc

* Accept the EULA and download the Mali graphics (vendor.tar.bz2) libraries from "here":https://releases.linaro.org/latest/android/images/armv8-android-juno-lsk/vendor.tar.bz2
* Download the Android building script for this build from "here":http://releases.linaro.org/latest/android/images/armv8-android-juno-lsk/linaro_android_build_cmds.sh or from the list of artifacts listed above.

* Run the script

bc. chmod a+x linaro_android_build_cmds.sh
./linaro_android_build_cmds.sh -o $PWD/vendor.tar.bz2 -t

h3. Installing Android on your board

bc. cd android/out/target/product/juno
sudo linaro-android-media-create --mmc /dev/sdX --dev vexpress --boot boot.tar.bz2 --system system.tar.bz2 --userdata userdata.tar.bz2

Insert the USB drive into your board and reboot it.  You must configure UEFI each time you create a new disk image.