1 <html devsite><head> 2 <title></title> 3 <meta name="project_path" value="/_project.yaml"/> 4 <meta name="book_path" value="/_book.yaml"/> 5 </head> 6 <body> 7 <!-- 8 Copyright 2017 The Android Open Source Project 9 10 Licensed under the Apache License, Version 2.0 (the "License"); 11 you may not use this file except in compliance with the License. 12 You may obtain a copy of the License at 13 14 http://www.apache.org/licenses/LICENSE-2.0 15 16 Unless required by applicable law or agreed to in writing, software 17 distributed under the License is distributed on an "AS IS" BASIS, 18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 See the License for the specific language governing permissions and 20 limitations under the License. 21 --> 22 23 <p> Android (AOSP) Nexus Android Nexus <a href="/source/build-numbers.html#source-code-tags-and-builds"></a></p> 24 25 <p class="note"><b></b> Android 4.1.2 Nexus 7 Android 4.1.1</p> 26 27 <p> <a href="https://android.googlesource.com/device/linaro/hikey/">HiKey</a> Android Nexus Android Android (ODM)/ (OEM) </p> 28 29 <h2 id="hikey-boards">HiKey </h2> 30 31 <p>Google <a href="https://www.96boards.org/products/ce/hikey/">HiKey</a> <a href="http://www.96boards.org/">96Board</a> Android AOSP HiKey (OEM) </p> 32 33 <p>HiKey <a href="http://www.lenovator.com">Lenovator</a> <a href="http://www.lenovator.com/product/86.html">1GB RAM</a> <a href="http://www.lenovator.com/product/90.html">2GB RAM</a> </p> 34 35 <img src="images/hikey-board.png" alt="HiKey "/> 36 <p class="img-caption"><strong> 1.</strong> Lenovator HiKey </p> 37 38 <p></p> 39 <ul> 40 <li> 41 <a href="https://www.96boards.org/wp-content/uploads/2015/02/96Boards-Hikey-Rev-A1.pdf">HiKey </a></li> 42 <li> 43 <a href="https://www.96boards.org/wp-content/uploads/2015/02/HiKey_User_Guide_Rev0.2.pdf">HiKey </a></li> 44 <li> 45 <a href="https://github.com/96boards/documentation/wiki/HiKey-Home">HiKey Wiki</a></li> 46 </ul> 47 48 <h2 id="running-android-hikey"> HiKey Android</h2> 49 50 <p> Android HiKey Android</p> 51 52 <h3 id="compiling-userspace"></h3> 53 <ol> 54 <li> Android <br /> 55 <pre><code>$ repo init -u <a href="https://android.googlesource.com/platform/manifest">https://android.googlesource.com/platform/manifest</a> -b master<br /> 56 $ repo sync -j24</code></pre></li> 57 <li> HDMI Android <br /> 58 <pre><code>$ wget <a href="https://dl.google.com/dl/android/aosp/linaro-hikey-20160226-67c37b1a.tgz">https://dl.google.com/dl/android/aosp/linaro-hikey-20160226-67c37b1a.tgz</a><br /> 59 $ tar xzf linaro-hikey-20160226-67c37b1a.tgz<br /> 60 $ ./extract-linaro-hikey.sh</code></pre></li> 61 <li> mcopy <br /> 62 <pre><code>$ apt-get install mtools</code></pre></li> 63 <li><br /> 64 <pre><code>$ . ./build/envsetup.sh<br /> 65 $ lunch hikey-userdebug<br /> 66 $ make -j32</code></pre></li> 67 </ol> 68 69 <p class="note"><b></b> 4GB eMMC <code>$ make -j32</code> <code>$ make -j32 TARGET_USERDATAIMAGE_4GB=true</code></p> 70 71 <h3 id="installing-fastboot-ptable"> fastboot ptable</h3> 72 <ol> 73 <li> J15 1-2 3-4 <a href="https://www.96boards.org/wp-content/uploads/2015/02/HiKey_User_Guide_Rev0.2.pdf">HiKey </a></li> 74 <li> USB PC ttyUSB <code>/dev/ttyUSB1</code></li> 75 <li><br /> 76 <pre><code>$ cd device/linaro/hikey/installer/hikey<br /> 77 $ ./flash-all.sh /dev/ttyUSB1 [4g]</code></pre></li> 78 <li> 3-4</li> 79 </ol> 80 81 <h3 id="flashing-images"></h3> 82 <ol> 83 <li> J15 1-2 5-6 fastboot </li> 84 <li><br /> 85 <pre><code>$ fastboot flash boot out/target/product/hikey/boot.img<br /> 86 $ fastboot flash -w system out/target/product/hikey/system.img</code></pre></li> 87 <li> 5-6</li> 88 </ol> 89 90 <h3 id="building-kernel"></h3> 91 <ol> 92 <li><br /> 93 <pre><code>$ git clone <a href="https://android.googlesource.com/kernel/hikey-linaro">https://android.googlesource.com/kernel/hikey-linaro</a><br /> 94 $ cd hikey-linaro<br /> 95 $ git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9<br /> 96 $ make ARCH=arm64 hikey_defconfig<br /> 97 $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24</code></pre></li> 98 <li> HiKey (<code>/kernel/hikey-linaro</code>)<ol style="list-style-type:lower-alpha"> 99 <li> hi6220-hikey.dtb (<code>arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb</code>) HiKey hi6220-hikey.dtb-4.9</li> 100 <li> <code>(arch/arm64/boot/Image-dtb</code>) HiKey Image-dtb-4.9</li></ol> 101 </li><li><pre> 102 $ make bootimage -j24 103 </pre> 104 </li> 105 </ol> 106 107 <h3 id="setting-resolution"></h3> 108 <p> <code>device/linaro/hikey/hikey/BoardConfig.mk</code> <code>BOARD_KERNEL_CMDLINE</code> <code>video</code> 24 <code>video=HDMI-A-1:1280x800@60</code></p> 109 110 <h3 id="configuring-output"> (uart3)</h3> 111 <p> J2 1 - Gnd11 - Rx13 - Tx <a href="https://www.96boards.org/wp-content/uploads/2015/02/HiKey_User_Guide_Rev0.2.pdf">HiKey </a></p> 112 113 </body></html>