Android x86 安裝
References :
目的: 建立客制化的android x86,所以kernel的部份必須要客製化,不能用prebuild底下的kernel binary。
OS: Ubuntu 10.10 x86_64
Kernel : Linux ham 2.6.35-27-generic
2.安裝Java 6
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ suod apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
3.其他需要安裝的套件
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
################################################################
#
- http://source.android.com/source/git-repo.html
- http://source.android.com/source/download.html
- http://www.android-x86.org/getsourcecode
- http://www.android-x86.org/documents/customizekernel
- http://android.git.kernel.org/?p=kernel/linux-2.6.git;a=summary
目的: 建立客制化的android x86,所以kernel的部份必須要客製化,不能用prebuild底下的kernel binary。
OS: Ubuntu 10.10 x86_64
Kernel : Linux ham 2.6.35-27-generic
1. 先安裝curl 跟git的套件
$ sudo apt-get install git-core curl
$ mkdir ~/android/
$ cd ~/android/
$ mkdir bin
$ cd bin
$ curl http://android.git.kernel.org/repo > repo
$ chmod a+x repo
$ chmod a+x repo
$ export PATH=~/android/bin/:$PATH
$ cd ~/android
$ mkdir src
$ cd src
$ repo init -u git://git.android-x86.org/manifest.git
$ repo sync
2.安裝Java 6
Java 6: for Gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ suod apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
3.其他需要安裝的套件
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
################################################################
#
# 如果是32位元的作業系統必須修改些東西才可以編譯
# 請參考http://limssb.blog.163.com/blog/static/14730437201093092640133/
#
################################################################
p.s. make如果出現/usr/bin/ld: cannot find -lncurses
參考 : http://i-pogo.blogspot.com/2010/01/usrbinld-cannot-find-lxxx.html
會發生這樣的原因有以下三種情形:
# 請參考http://limssb.blog.163.com/blog/static/14730437201093092640133/
#
################################################################
p.s. make如果出現/usr/bin/ld: cannot find -lncurses
參考 : http://i-pogo.blogspot.com/2010/01/usrbinld-cannot-find-lxxx.html
會發生這樣的原因有以下三種情形:
1 系統沒有安裝相對應的lib
2 相對應的lib版本不對
3 lib(.so檔)的symbolic link 不正確,沒有連結到正確的函式庫文件(.so)
留言