i.mx6 Android 5.1.1 Download, compile

Source: Internet
Author: User

/************************************************************************* * i.mx6 Android 5.1.1 Download, compile * Note: * Here to mention is the 4.2 version, the compilation is interrupted, you continue to make up as if it is OK, but this * 5.1.1 version seems to have to start again, this is a bit depressing. * 2016-9-9 Shenzhen Nanshan Ping Shan village Zengjianfeng ************************************************************ ************/first, buy a VPN (why buy a VPN?) Because I want to deal with Google): https://www.expressvpn.xyzSecond, download the Reference document: http://www.nxp.com/zh-Hans/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/ I.mx-6-processors/i.mx6qp/i.mx-6duallite-processors-dual-core-3d-graphics-hd-video-arm-cortex-a9-core:i.mx6dl? Fpsp=1&tab=documentation_tabThird, download the Patch pack: http://www.nxp.com/zh-Hans/products/software-and-tools/hardware-development-tools/sabre-development-system/ Sabre-platform-for-smart-devices-based-on-the-i.mx-6-series:rdimx6sabreplat?fpsp=1&tab=design_tools_tab Iv. installing lib dependency: sudo apt-GetInstall Git-core GnuPG Flex Bison gperf build-essential Zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32 Ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils Xsltproc Unzip UUID Uuid-dev ZL Ib1g-dev Liblz-dev liblzo2-2Liblzo2-dev lzop Git-core Curl u-boot-tools mtd-utils android-tools-fsutils installation of Jdk:sudo apt-GetInstall openjdk-7-jdk vi, download Android source code: $ 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-5.1.1_r1$ ~/bin/repo Sync # Thiscommand loads most needed repos.    Therefore, it can take several hours to load. $ CD~/myandroid/prebuilts/gcc/linux-x86/arm $ git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/armeabi-4.6$ CD arm-eabi-4.6$ git checkout android-4.4. 3_r1 Seven, download kernel: $ cd~/myandroid $ git clone git://git.freescale.com/imx/linux-2.6-imx.git Kernel_imx # The kernel repo is large. Therefore, this process can take a while.$ cd KERNEL_IMX $ git checkout l5.1.1_2.1.0-ga eight, download u-Boot: $ cd~/myandroid/Bootable $ cd bootloader $ git clone git://git.freescale.com/imx/uboot-imx.git uboot-imx$ CD uboot-IMX $ git checkout l5.1.1_2.1.0-GA IX, unzip the patch pack in the home directory:1. Tar xvf imx6_l5.1_2.1. 0_and_source_bsp.tar.gz2. CD ANDROID_L5.1.1_2.1.0-ga_core_source/code/3. Tar xvf L5.1.1_2.1.0-ga.tar.gz4. SOURCE ~/ANDROID_L5.1.1_2.1.0-ga_core_source/code/l5.1.1_2.1.0-ga/and_patch.sh 10, start patching, appear warning: $ c_patch~/android_l5.1.1_2.1.0-ga_core_source/code/l5.1.1_2.1.0-ga/imx_l5.1.1_2.1.0-ga ... Applying patch to Hardware/broadcom/LIBBT/home/zengjf/myandroid/hardware/broadcom/libbt/.git/rebase-apply/patch: the:Newblank line at EOF. +Warning:1Line adds whitespace errors. /home/zengjf/myandroid/hardware/broadcom/libbt/.git/rebase-apply/patch: A:Newblank line at EOF. +Warning:1Line adds whitespace errors. /home/zengjf/myandroid/hardware/broadcom/libbt/.git/rebase-apply/patch: -:Newblank line at EOF. +Warning:1Line adds whitespace errors. Applying patch to Hardware/broadcom/WLAN applying patch to packages/wallpapers/musicvisualization Applying patch to external/AAC applying patch to external/tremolo applying patch to external/libpng applying patch to external/Sonivox applying patch to packages/apps/Deskclock*************************************************************Success:now You can build Android code forFSL i. MX platform*************************************************************11. Compiling:1. Export java_home=/usr/lib/jvm/java-7-openjdk-amd64/2. CD ~/myandroid3. SOURCE build/envsetup.sh4. Lunch sabresd_6dq-User5. Make2>&1| Tee build-Log.txt 12, compile and finish the final output information: ... host c:libbz_32<= external/bzip2/COMPRESS.C host C:libbz_32<= external/bzip2/DECOMPRESS.C host C:libbz_32<= external/bzip2/BZLIB.C host staticlib:libbz_32 ( out/host/linux-x86/obj32/static_libraries/libbz_intermediates/libbz.a) Export includes file:bootable/RECOVERY/APPLYPATCH/ANDROID.MK-- out/host/linux-x86/obj32/executables/imgdiff_intermediates/export_includes host Executable:imgdiff ( out/host/linux-x86/obj32/executables/imgdiff_intermediates/Imgdiff) Notice file:bootable/recovery/applypatch/notice-- out/host/linux-x86/obj/notice_files/src//Bin/imgdiff.txtNotice File:external/bzip2/notice-- out/host/linux-x86/obj/notice_files/src//Lib/libbz.a.txtInstall: out/host/linux-x86/bin/imgdiff Import includes file: out/host/linux-x86/obj32/executables/bsdiff_intermediates/import_includes host C:bsdiff<= external/bsdiff/BSDIFF.C External/bsdiff/bsdiff.c:in function'Main': External/BSDIFF/BSDIFF.C:196:5: Warning:'POS'May is used uninitializedinch  Thisfunction [-wmaybe-uninitialized] Export includes file:external/BSDIFF/ANDROID.MK-- out/host/linux-x86/obj32/executables/bsdiff_intermediates/export_includes host Executable:bsdiff ( out/host/linux-x86/obj32/executables/bsdiff_intermediates/Bsdiff) Install: out/host/linux-x86/bin/Bsdiff Construct Recovery fromBoot mkdir-P out/target/product/sabresd_6dq/obj/packaging/recovery_patch_intermediates/PATH= out/host/linux-x86/bin: $PATH out/host/linux-x86/bin/imgdiff out/target/product/sabresd_6dq/boot.img out/target/product/sabresd_6dq/recovery.img out/target/product/sabresd_6dq/obj/packaging/recovery_patch_intermediates/RECOVERY_FROM_BOOT.P Chunk0: type0Start0Len7274506Chunk1: type2Start7274506Len1480704Chunk2: type0Start8142159Len49112Construct Patches for 3chunks ... patch0  is 205Bytes (OF7274506) Patch1  is 435259Bytes (OF867653) Patch2  is 594Bytes (OF49112) Chunk0: Normal (0,7274506)205Chunk1: Deflate (7274506,1476108)435259(NULL) Chunk2: Normal (8750614,48918)594Install System FS Image: out/target/product/sabresd_6dq/system.img out/target/product/sabresd_6dq/system.img+ out/TARGET/PRODUCT/SABRESD_6DQ/OBJ/PACKAGING/RECOVERY_PATCH_INTERMEDIATES/RECOVERY_FROM_BOOT.P maxsize=385389312Blocksize=4224Total=318349634Reserve=3894528# # # Make completed successfully ( -:Wuyi: +(HH:MM:SS) # # # # # # # # # # [email protected]:~/myandroid$ 13, disk space usage: [email protected]:~/myandroid$ DF-h Filesystem Size used Avail use%mounted on/DEV/SDA1 97G 87G5.2G the% /None4.0K0  4.0K0%/sys/fs/Cgroup Udev2.0G4.0K2.0G1% /Dev Tmpfs 395M1.1M394M1% /Run None5.0M     0  5.0M   0%/run/LockNone2.0G 152K2.0G1%/run/shm None 100M 52K 100M1%/run/user [email protected]:~/myandroid$

i.mx6 Android 5.1.1 Download, compile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.