編譯 Android 4.2 for CubieBorad2 雙卡版
1. 用的是ubuntu 12.04.5 64bit.
2. 先安裝 JDK
#sudo vi /etc/apt/sources.list
deb style="font-size:18px;"> precise main restricted
deb-src style="font-size:18px;"> precise main restricted
deb style="font-size:18px;"> precise-updates main restricted
deb-src style="font-size:18px;"> precise-updates main restricted
deb style="font-size:18px;"> precise universe
deb-src style="font-size:18px;"> precise universe
deb style="font-size:18px;"> precise-updates universe
deb-src style="font-size:18px;"> precise-updates universe
deb style="font-size:18px;"> precise multiverse
deb-src style="font-size:18px;"> precise multiverse
deb style="font-size:18px;"> precise-updates multiverse
deb-src style="font-size:18px;"> precise-updates multiverse
deb style="font-size:18px;"> precise-backports main restricted universe multiverse
deb-src style="font-size:18px;"> precise-backports main restricted universe multiverse
deb style="font-size:18px;"> precise-security main restricted
deb-src style="font-size:18px;"> precise-security main restricted
deb style="font-size:18px;"> precise-security universe
deb-src style="font-size:18px;"> precise-security universe
deb style="font-size:18px;"> precise-security multiverse
deb-src style="font-size:18px;"> precise-security multiverse
deb style="font-size:18px;"> precise main
deb-src style="font-size:18px;"> precise main
儲存退出。然後執行命令:
#sudo apt-get update
更新之後,你再安裝那些包的話就不會有問題了。
3. 安裝
http://dl.cubieboard.org/software/a20-cubieboard/android/v2.0_A20_android_source.tar.gz
==========================================
修改lichee/tools/pack/chips/sun7i/configs/android/sugar-cubieboard2/sys_config.fex
就是把此條定義註釋掉(新增分號),重啟了N多次還保留資料,各位親都試試吧!
##為了輸出為1080P
同檔案,修改
screen1_output_mode = 4
為
screen1_output_mode = 10
===========================================
##為了輸出為1080P
===========================================
6. 開始編譯
7. 打包(在Android根目錄)
$pack
2. 先安裝 JDK
$wget dl.cubieboard.org/software/tools/android/jdk1.6.0_45.tar.gz
$ sudo vim ~/.bashrc
Add :
JAVA_HOME=/work/tools/jdk1.6.0_45 export JRE_HOME=/work/tools/jdk1.6.0_45/jre export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATHDelete all item in this file, then copy the following server addresses to it
#sudo vi /etc/apt/sources.list
deb style="font-size:18px;"> precise main restricted
deb-src style="font-size:18px;"> precise main restricted
deb style="font-size:18px;"> precise-updates main restricted
deb-src style="font-size:18px;"> precise-updates main restricted
deb style="font-size:18px;"> precise universe
deb-src style="font-size:18px;"> precise universe
deb style="font-size:18px;"> precise-updates universe
deb-src style="font-size:18px;"> precise-updates universe
deb style="font-size:18px;"> precise multiverse
deb-src style="font-size:18px;"> precise multiverse
deb style="font-size:18px;"> precise-updates multiverse
deb-src style="font-size:18px;"> precise-updates multiverse
deb style="font-size:18px;"> precise-backports main restricted universe multiverse
deb-src style="font-size:18px;"> precise-backports main restricted universe multiverse
deb style="font-size:18px;"> precise-security main restricted
deb-src style="font-size:18px;"> precise-security main restricted
deb style="font-size:18px;"> precise-security universe
deb-src style="font-size:18px;"> precise-security universe
deb style="font-size:18px;"> precise-security multiverse
deb-src style="font-size:18px;"> precise-security multiverse
deb style="font-size:18px;"> precise main
deb-src style="font-size:18px;"> precise main
儲存退出。然後執行命令:
#sudo apt-get update
更新之後,你再安裝那些包的話就不會有問題了。
3. 安裝
sudo apt-get install build-essential4. 然後安裝其他的sudo apt-get install u-boot-tools
$sudo apt-get install uboot-mkimage binutils-arm-linux-gnueabihf gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git fakeroot kernel-package zlib1g-dev libncurses5-dev
$sudo apt-get install texinfo texlive ccache zlib1g-dev gawk bison flex gettext uuid-dev ia32-libs ncurses-dev gcc-multilib
5. 下載SDKhttp://dl.cubieboard.org/software/a20-cubieboard/android/v2.0_A20_android_source.tar.gz
==========================================
修改lichee/tools/pack/chips/sun7i/configs/android/sugar-cubieboard2/sys_config.fex
- [system]
- ;recovery_key = port:PH16<0><default>
##為了輸出為1080P
同檔案,修改
screen1_output_mode = 4
為
screen1_output_mode = 10
===========================================
##為了輸出為1080P
-
diff --git
a/device/softwinner/wing-common/hardware/libhardware/display/display.cpp
b/device/softwinner/wing-common/hardware/libhardware/display/display.cpp
-
index a406f36..01a5ba8 100755
-
--- a/device/softwinner/wing-common/hardware/libhardware/display/display.cpp
-
+++ b/device/softwinner/wing-common/hardware/libhardware/display/display.cpp
-
@@ -2529,7 +2529,8 @@ static int display_init(struct display_context_t* ctx)
-
}
-
if(i==sizeof(g_tv_para)/sizeof(struct tv_para_t))
-
{
-
- ctx->out_format[sel] = DISPLAY_TVFORMAT_720P_60HZ;
-
+ //ctx->out_format[sel] = DISPLAY_TVFORMAT_720P_60HZ;
-
+ ctx->out_format[sel] = DISPLAY_TVFORMAT_1080P_60HZ;
-
}
-
}
- else if(init_para.output_type[sel] == DISP_OUTPUT_TYPE_VGA)
-
diff --git
a/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
b/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
-
index 1045c7d..2f6d375 100755
-
--- a/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
-
+++ b/frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
-
@@ -4045,7 +4045,7 @@ public class WindowManagerService extends IWindowManager.Stub
-
if (req == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) {
-
req = getOrientationFromAppTokensLocked();
-
}
-
- req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
-
+ //req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
-
return req;
-
}
- else{
-
diff --git a/system/core/init/init_disp.c b/system/core/init/init_disp.c
-
index 3637143..8b2c8cd 100755
-
--- a/system/core/init/init_disp.c
-
+++ b/system/core/init/init_disp.c
-
@@ -768,7 +768,9 @@ int init_initdisplay()
-
}
-
if(hdmistatus)
-
{
-
- init_swtichdisplay(0,DISP_OUTPUT_TYPE_HDMI,DISP_TV_MOD_720P_60HZ);
-
+ //init_swtichdisplay(0,DISP_OUTPUT_TYPE_HDMI,DISP_TV_MOD_720P_60HZ);
-
+ int mode = init_dispgethdmimaxmode();
-
+ init_swtichdisplay(0,DISP_OUTPUT_TYPE_HDMI,mode);
-
}
-
else
- {
===========================================
6. 開始編譯
-
After extract it,
$ cd lichee/linux-3.4 $ make clean $ cp arch/arm/configs/cubieboard2_config .config //note:if you want to complie cubietruck, please copy cubietruck_config. $ cd .. $ ./build.sh -p sun7i_android $ cd ../android $ source build/envsetup.sh $ lunch //note:select sugar-cubieboard2 or sugar-cubietruck $ extract-bsp $ make -j8
7. 打包(在Android根目錄)
$pack
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9697/viewspace-1781886/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Xcode 4.2 編譯 ios5.1XCode編譯iOS
- Mac中編譯FFmpeg教程(Android版)Mac編譯Android
- 國行版獨享雙SIM實體卡!蘋果iPhone Xs/Xs Max/Xr雙卡雙待來了蘋果iPhone
- flutter release版編譯Flutter編譯
- Assimp Android 編譯Android編譯
- 編譯 Android 4.3編譯Android
- Android 編譯 pngAndroid編譯
- android編譯方法Android編譯
- android 反編譯Android編譯
- Android反編譯:反編譯工具和方法Android編譯
- libusb android ndk編譯--編譯mipsAndroid編譯
- Android 反編譯指南Android編譯
- Android 增量編譯小解Android編譯
- Android 編譯優化Android編譯優化
- 編譯Android原始碼編譯Android原始碼
- 理解Android編譯命令Android編譯
- 編譯Android VNC Server編譯AndroidVNCServer
- Android 編譯 zlibAndroid編譯
- android NDK 交叉編譯Android編譯
- 加快Android編譯速度Android編譯
- iPhone Xs Max支援雙卡雙待嗎?iPhone Xs支援雙卡雙待嗎iPhone
- 編譯Thelittlebookofredis中文版編譯Redis
- Android原始碼編譯--整理Android原始碼編譯
- android使用ant編譯(rem)Android編譯REM
- android 5.1 kernel 編譯模組Android編譯
- Android編譯環境搭建Android編譯
- Gluon 編譯 JavaFx -> android apk編譯JavaAndroidAPK
- Android Apk反編譯系列教程(一)如何反編譯APKAndroidAPK編譯
- Android 4.2藍芽介紹Android藍芽
- Android 4.2即將釋出Android
- 蘋果出“雙卡雙待”手機,聽說侵權“雙卡雙待”的鼻祖酷派?蘋果
- 核心編譯後載入音效卡問題(轉)編譯
- MacOS X 編譯Android原始碼Mac編譯Android原始碼
- Android FrameWork 之原始碼編譯AndroidFramework原始碼編譯
- 編譯Android的OpenSSL類庫編譯Android
- Android 專案編譯過程Android編譯
- Android反編譯:smali語法Android編譯
- 如何反編譯Android 5.0 framework編譯AndroidFramework