美文网首页
mtk6735 5.1编译-2

mtk6735 5.1编译-2

作者: 13aaec9fb31b | 来源:发表于2017-03-22 23:58 被阅读107次

    Content-Type: text/x-zim-wiki
    Wiki-Format: zim 0.4
    Creation-Date: 2017-02-21T19:14:20+08:00

    5.1aosp编译

    Created 星期二 21 二月 2017

    du -sh
    df -h

    sougou

    sudo add-apt-repository ppa:fcitx-team/toolchain
    sudo apt-get update
    imconfig
    updatesoftcenter search fcitx

    解压

    cat board_android5_6735.tar.bz2.a* | tar xj

    openjdk-1.7 for 5.1

    update-java-alternatives -s java-1.70-openjdk-amd64

    降级gcc/g++

    apt-get remove gcc

    Removing build-essential (11.6ubuntu6) ...
    Removing g++-multilib (4:4.8.2-1ubuntu6) ...
    Removing g++ (4:4.8.2-1ubuntu6) ...
    Removing gcc-multilib (4:4.8.2-1ubuntu6) ...
    Removing gcc (4:4.8.2-1ubuntu6) ...
    Processing triggers for man-db (2.6.7.1-1ubuntu1) .

    apt-get install gcc-4.6 g++-4.6

    The following NEW packages will be installed:
    cpp-4.6 g++-4.6 gcc-4.6 gcc-4.6-base libstdc++6-4.6-dev

    gcc link生效
    ln -s /usr/bin/gcc-4.6 [[/usr/bin/gcc]]
    ln -s /usr/bin/g++-4.6 /usr/bin/g++

    Unable to locate package错误解决办法

    sudo apt-get update  更换软件源
    

    更新source

    sudo gedit /etc/apt/sources.list
    copy paste at the end of the file

    added by mpa

    deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse

    deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse

    deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse

    then save it..
    then you now can
    sudo apt-get update

    linux查看当前系统

    cat /etc/issue

    安卓依赖包安卓

    apt-get install -y git gnupg flex bison gperf build-essential
    apt-get install -y zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev
    apt-get install -y libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386
    apt-get install -y g++-multilib mingw32 tofrodos libgl1-mesa-dev
    apt-get install -y python-markdown libxml2-utils xsltproc zlib1g-dev:i386

    htop

    是一个可以让用户与之交互的进程查看器,做为文本模式的应用程序,主要用户控制台或x终端中。当前具有桉树状方式来查看进程,支持颜色主题,可以定制等特性。
    与top相比,htop包含的优点:
    1、可以横向或纵向滚动浏览进程列表,以便查看到所有的进程和完整的命令行。
    2、在启动上比top更快
    3、杀死进程不需要进程号
    4、htop支持鼠标操作

    增加虚拟内存(swap分区)

    http://blog.csdn.net/yanlai20/article/details/46907353
    root@mpa:/# cd /home/
    root@mpa:/home# mkdir swap
    root@mpa:/home# cd swap
    root@mpa:/home/swap# ls
    root@mpa:/home/swap# dd if#/dev/zero of#swapfile bs#1G count#8
    8+0 records in
    8+0 records out
    8589934592 bytes (8.6 GB) copied, 76.3379 s, 113 MB/s
    cd swap

    编译源码命令

    source build/envsetup.sh
    lunch

    lfull_lentk6735_65c_l1-eng

    source mbldenv.sh
    make -j8 2>&1 | tee build.log
    make -j8 systemimage 2>&1 | tee build.log
    make -j8 2>&1 | tee build.log

    2017年02月23日 11:34 start make 卡死

    09:30 start
    drogen.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp_32 <# external/chromium_org/v8/src/hydrogen-gvn.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp_32 <# external/chromium_org/v8/src/hydrogen-infer-representation.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp_32 <# external/chromium_org/v8/src/hydrogen-infer-types.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp_32 <# external/chromium_org/v8/src/hydrogen-load-elimination.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp_32 <# external/chromium_org/v8/src/hydrogen-mark-deoptimize.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp_32 <# external/chromium_org/v8/src/hydrogen-mark-unreachable.cc
    virtual memory exhausted: Cannot allocate memory
    virtual memory exhausted: Cannot allocate memory
    virtual memory exhausted: Cannot allocate memory
    make: *** [out/target/product/lentk6735_65c_l1/obj_arm/STATIC_LIBRARIES/v8_tools_gyp_v8_base_gyp_intermediates/v8/src/hydrogen-instructions.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [out/target/product/lentk6735_65c_l1/obj_arm/STATIC_LIBRARIES/v8_tools_gyp_v8_base_gyp_intermediates/v8/src/hydrogen-infer-types.o] Error 1
    make: *** [out/target/product/lentk6735_65c_l1/obj_arm/STATIC_LIBRARIES/v8_tools_gyp_v8_base_gyp_intermediates/v8/src/hydrogen-load-elimination.o] Error 1
    In file included from /home/mpa/mt6753/alps/external/stlport/stlport/stl/_algo.h:737:0,
    from /home/mpa/mt6753/alps/external/stlport/stlport/algorithm:41,
    from external/chromium_org/v8/src/vector.h:9,
    from external/chromium_org/v8/src/utils.h:21,
    from external/chromium_org/v8/src/assert-scope.h:10,
    from external/chromium_org/v8/src/v8.h:33,
    from external/chromium_org/v8/src/hydrogen.h:8,
    from external/chromium_org/v8/src/hydrogen.cc:5:
    /home/mpa/mt6753/alps/external/stlport/stlport/stl/_algo.c: In member function 'void v8::internal::HOptimizedGraphBuilder::HandlePolymorphicCallNamed(v8::internal::Call, v8::internal::HValue, v8::internal::SmallMapList*, v8::internal::Handle<v8::internal::String>)':
    /home/mpa/mt6753/alps/external/stlport/stlport/stl/_algo.c:962:5: warning: array subscript is above array bounds [-Warray-bounds]
    __insertion_sort(__first, __first + __stl_threshold, _STLP_VALUE_TYPE(__first,_RandomAccessIter), __comp);
    ^

    make failed to build some targets (23:54 (mm:ss))

    11.12 start

    make completed successfully (07:03:51 (hh:mm:ss))

    要swap分区,后面内存占用超过8g
    make -j8 not -j24 不然键盘屏幕不响应

    源码解压完共30g左右
    编译完out目录 totalling 57.7 GB
    mt6735 目录 91.9 GB

    mpa@mpa:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 298G 109G 175G 39% /
    udev 3.8G 4.0K 3.8G 1% /dev
    tmpfs 1.6G 916K 1.6G 1% /run
    none 5.0M 0 5.0M 0% /run/lock
    none 3.8G 152K 3.8G 1% /run/shm

    相关文章

      网友评论

          本文标题:mtk6735 5.1编译-2

          本文链接:https://www.haomeiwen.com/subject/abganttx.html