1. 程式人生 > >Android_6.0 ROM編譯(Kernel + Android)ERROR總結 + 解決方案

Android_6.0 ROM編譯(Kernel + Android)ERROR總結 + 解決方案

Android_6.0 ROM(Kernel + Android)編譯  ERROR總結 -------------------------------------------------------------------------------------------------------------
Build Kernel ERROR 總結:     對 ROM 編譯不陌生的"同行"應該瞭解,在第一次編譯 ROM 時,在編譯 System image 之前,編譯Kernel 是必經的一步;
    通常在 ROM 版本迭代中,由於驅動的更改,也需要重新編譯Kernel ,
--------------------------------------------------------------------------------------------------------------
Error 1: [email protected]_android:/home/mops/rk3288_6.0/kernel# make rk3288-tb_8846.img
......
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  BC      kernel/timeconst.h
/bin/sh: 1: bc: not found
/home/mops/rk3288_6.0/kernel/kernel/Makefile:141: recipe for target 'kernel/timeconst.h' failed
make[1]: *** [kernel/timeconst.h] Error 127
Makefile:829: recipe for target 'kernel' failed
make: *** [kernel] Error 2

解決方案:
# apt-get install bc ---------------------------------------------------------------------------------------
Error 2: [email protected]_android:/home/mops/rk3288_6.0/kernel# make rk3288-tb_8846.img
......
  LD      pie/pie_stage2.o
  OBJCOPY pie/pie_stage3.o
  LD      pie/pie.elf
  OBJCOPY pie/pie.bin
  OBJCOPY pie/pie.bin.o
  LD      pie/built-in.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  LZO     arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
/home/mops/rk3288_6.0/kernel/arch/arm/boot/compressed/Makefile:196: recipe for target 'arch/arm/boot/compressed/piggy.lzo' failed
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
/home/mops/rk3288_6.0/kernel/arch/arm/boot/Makefile:53: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
/home/mops/rk3288_6.0/kernel/arch/arm/Makefile:304: recipe for target 'zImage' failed
make: *** [zImage] Error 2

解決方案:
# apt-get install lzop ------------------------------------------------------------------------------------- Error 3: [email protected]_android:/home/mops/rk3288_6.0/kernel# make rk3288-tb_8846.img
scripts/kconfig/conf --silentoldconfig Kconfig
^C
[email protected]_android:/home/mops/rk3288_6.0/kernel# make rk3288-tb_8846.img
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GEN     drivers/video/rockchip/screen/lcd.h
  Kernel: arch/arm/boot/Image is ready
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready

make: *** [kernel.img] Error 127

解決方案:

#sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
--------------------------------------------------------------------------------------
注意:
Android 6.0的 java 環境必須是 openjdk-7-jdk,否則導致報出ERROR,編譯失敗.
(親測:openjdk-8-jdk 也不行,可能以後會適配)
解決方案:
#sudo apt-get install openjdk-7-jdk
#PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
-------------------------------------------------------------------------------------
Build Android ERROR 總結: Error1: [email protected]_android:/home/mops/rk3288_6.0/# make -j8
......
Notice file: external/jarjar/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/jarjar.jar.txt
Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
prebuilts/misc/linux-x86/bison/bison -d  -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
Notice file: frameworks/base/tools/aidl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Broken pipe
make: *** Waiting for unfinished jobs....
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
frameworks/base/tools/aidl/aidl_language_l.l:55: warning, rule cannot be matched
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Broken pipe
make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp'
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
解決辦法: #sudo apt-get install bison ------------------------------------------------------------------------------------------------ Error2: [email protected]_android:/home/mops/rk3288_6.0/# make -j8
Copy: out/target/product/rk3288/system/etc/.allBlock
Copy: out/target/product/rk3288/system/etc/.videoBlock
Copy xml: out/target/product/rk3288/system/etc/GS8604.xml
/bin/bash: xmllint: command not found
make: *** [out/target/product/rk3288/system/etc/GS8604.xml] Error 127
make: *** Waiting for unfinished jobs....
preparing StaticLib: libc_common [including out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_thread_atexit_impl_intermediates/libc_thread_atexit_impl.a]
preparing StaticLib: libc_common [including out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_tzcode_intermediates/libc_tzcode.a]
target StaticLib: libc_common (out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
#### make failed to build some targets (2:55 (mm:ss)) #### 解決方法: #sudo apt-get  install libxml2-utils ------------------------------------------------------------------------------------- 編譯成功會出現類似如下LOG, 並顯示編譯所用時長: Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Install: out/target/product/rk3288/system/app/Email/Email.apk
Install: out/target/product/rk3288/system/priv-app/Settings/Settings.apk
build/tools/generate-notice-files.py  out/target/product/rk3288/obj/NOTICE.txt  out/target/product/rk3288/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" out/target/product/rk3288/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Installed file list: out/target/product/rk3288/installed-files.txt
Target system fs image: out/target/product/rk3288/obj/PACKAGING/systemimage_intermediates/system.img
Running:  mkuserimg.sh -s out/target/product/rk3288/system out/target/product/rk3288/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 1073741824 -D out/target/product/rk3288/system -L system out/target/product/rk3288/root/file_contexts
make_ext4fs -s -T -1 -S out/target/product/rk3288/root/file_contexts -L system -l 1073741824 -a system out/target/product/rk3288/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/rk3288/system out/target/product/rk3288/system
Creating filesystem with parameters:
    Size: 1073741824
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 4096
    Label: system
    Blocks: 262144
    Block groups: 8
    Reserved block group size: 63
Created filesystem with 1978/65536 inodes and 120827/262144 blocks
Install system fs image: out/target/product/rk3288/system.img
out/target/product/rk3288/system.img+out/target/product/rk3288/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=1096212480 blocksize=135168 total=479642035 reserve=11083776
#### make completed successfully (18:56 (mm:ss)) ####

相關推薦

Android_6.0 ROM編譯Kernel + AndroidERROR總結 + 解決方案

Android_6.0 ROM(Kernel + Android)編譯  ERROR總結 ------------------------------------------------------

Wine 中文亂碼換字型最簡單解決方案

今天裝kali linux發現這個問題,百度到的全是一篇文章,谷歌一下找到這個,發現挺好的。 編輯一個檔案,按下面說法寫好,儲存檔案*.reg(如 zh.reg),在命令列下面輸入 regedit zh.reg 然後重啟Wine,就神器的可以用了,當然換字型也一樣。

spring cloud微服務快速教程之十二 分散式ID解決方案mybatis-plus篇

0-前言   分散式系統中,分散式ID是個必須解決的問題點;   雪花演算法是個好方式,不過不能直接使用,因為如果直接使用的話,需要配置每個例項workerId和datacenterId,在微服務中,例項一般動態配置,直接指定具體例項的這兩個引數是不現實的;   所以,一般採用雪花演算法的變種,主要是將這兩個

NET-SNMP Android上的編譯基於NDK10

之前記錄的基於NDK16的SNMP Android上的編譯報錯很多,基本無法正常編譯。後續在排查問題,發現NDK版本差異一起的這些問題,具體我們來看: 在使用NDK10的時候,我們修改指令碼setenv.sh: #! /bash/sh ***********************

OpenCV 3.2.0 + opencv_contrib編譯Windows

1  下載原始碼       保證 opencv_contrib 與 opencv 版本一直,因此我這裡都下載github上 opencv 3.2.0的分支     opencv3.2.0  &nb

一步一步瞭解Cocos2dx 3.0 正式版本開發環境搭建Win32/Android

cocos2d-x 3.0釋出有一段時間了,作為一個初學者,我一直覺得cocos2d-x很坑。每個比較大的版本變動,都會有不一樣的專案建立方式,每次的跨度都挺大……   但是憑心而論,3.0RC版本開始 環境搭建、專案建立、編譯的方式更加人性化了。   現在我們進

VS2013 + QT5.7.0靜態編譯千呼萬喚始出來

轉載請註明原文連結! 為了解決的問題:QT動態編譯得到的exe可執行檔案,只能在本機執行。若直接複製到一臺未安裝QT的計算機上,肯定是無法執行的。 解決方法一:請參照我的另一篇部落格QT程式 如何在未安裝QT的電腦上執行,該方法仍然採用動態編譯的方式,只是採用QT提供的

OpenCV學習筆記—— OpenCV 3.1.0 + opencv_contrib編譯Windows

        由於在學習影象識別中的特徵點檢測中,需要用到Surf和Sift演算法,但是這兩個演算法在OpenCV 3.1.0的Release版本中並不存在,因為他們是存放在opencv_contr

VS2013 + QT5.7.0靜態編譯使用MT、MTd模式

本文假設您已成功安裝 qt-opensource-windows-x86-msvc2013_64-5.7.0.exe 和 qt-vs-addin-1.25.exe(均可以在官網下載到) 【步驟1】在計算機上安裝python庫和perl庫(因為後續的靜態編譯

模組-kernel 模組編譯Makefile編寫

發現自己以前寫的2.4的模組無法在2.6下面編譯使用了,需要用新的Makefile才行。簡單的說就像這個樣子:                                                                                  

GmSSL Android NDK編譯 版本95c0dba

下載原始碼並切換到版本95c0dba [[email protected] tmp]$ git clone https://github.com/guanzhi/GmSSL.git Cloning into 'GmSSL'... remote: Counting

自己收集的資料 僅供學習使用——————Android編譯經驗證

在學習Android開發的過程你,你往往會去借鑑別人的應用是怎麼開發的,那些漂亮的動畫和精緻的佈局可能會讓你愛不釋手,作為一個開發者,你可能會很想知道這些效果介面是怎麼去實現的,這時,你便可以對改應用的APK進行反編譯檢視。下面是我參考了一些文章後簡單的教程詳解。 (注

如何實現內核旁路Kernel bypass

客戶機 pac 復制 如果 高速 har 運行 ebs 底層 轉到 :http://blog.jobbole.com/94976/ 在前兩篇文章中,我們討論了《如何生成每秒百萬級別的HTTP 請求?》 以及 如何減少往返時間 。我們在 Linux 上做試驗,因為它是一個性

mtcp的快速編譯連接

fast iap guide 文檔 連接 gui config con tcp mtcp的快速編譯 http://mos.kaist.edu/guide/config/03_build_mtcp.html 介紹DPDK中使用mtcp的文檔 https://dpdksummi

UWP-消息提示仿Android

pad src gif tar margin ren ring href move 原文:UWP-消息提示(仿Android) 在UWP中的消息提示框(一)中介紹了一些常見的需要用戶主動去幹涉的一些消息提示框,接下來打算聊聊不需要用戶主動去幹涉的一些消息提示框。效果就是像雙

C之條件編譯二十

C語言 條件編譯 我們在平時的項目中,難免會遇到這樣的問題:一個產品需要好幾個版本(如低、中、高版本)。那麽問題來了,我們需要對這一個產品進行幾個版本的人馬的同時開發嗎?當然是不用啦,企業是講究效益的,當然是希望一個產品一份代碼就搞定啦。在這時我們就可以使用 C 語言中的條件編譯啦,它

Bonita portal 源碼編譯未完成

using res bug sin adding pan .json before grunt 首先下載源代碼 https://github.com/bonitasoft/bonita-portal-js 以下內容為Github 的安裝教程包含我安裝過程中遇到的問題。

12-帶內管理、帶外管理 //0.8.6GNS3版本

console 清除 關閉 nag gin 運行 tex password size 帶內管理、帶外管理區別:流量在一根線上走就是帶內管理,有Console線就是帶外管理![]一、實驗拓撲:二、實驗要求:1、R1、R2、R3運行EIGRP 90協議,並配置各自的Loopba

Photon Release 4.8.0漢化附圖教程

upd 依次 開頭 參考資料 http finish pda 滾動條 war Eclipse語言包:http://www.eclipse.org/babel/downloads.php 1、打開瀏覽器,瀏覽“參考資料”內給出的“eclipse語言包下載”地址,在博客新頁

flink源碼編譯windows環境

git html instr written bsp fail -name rect app 前言 最新開始搗鼓flink,fucking the code之前,編譯是第一步。 編譯環境 win7 java maven 編譯步驟 https://ci.apache.org