android kernel下載及編譯 (goldfish)
http://android.git.kernel.org/ (Android Linux kernel源码)1470 2011-01-15 16:18:32: git clone git://android.git.kernel.org/projects/kernel/co
http://android.git.kernel.org/ (Android Linux kernel源码)
1470 2011-01-15 16:18:32: git clone git://android.git.kernel.org/projects/kernel/common.git/ summary
1471 2011-01-15 21:19:39: history
root@zhupan-desktop:~/download# cd kernel
root@zhupan-desktop:~/download/kernel# git branch
* android-2.6.36
root@zhupan-desktop:~/download/kernel# git branch -a
* android-2.6.36
remotes/origin/HEAD -> origin/android-2.6.36
remotes/origin/android-2.6.35
remotes/origin/android-2.6.36
remotes/origin/android-2.6.37
remotes/origin/archive/android-2.6.25
remotes/origin/archive/android-2.6.27
remotes/origin/archive/android-2.6.29
remotes/origin/archive/android-2.6.32
remotes/origin/archive/android-gldfish-2.6.29
remotes/origin/archive/android-goldfish-2.6.27
root@zhupan-desktop:~/download/kernel# git checkout -b android-gldfish-2.6.29 origin/archive/android-gldfish-2.6.29 //选取最新的android-gldfish-2.6.29,其中gldfish是 android的模拟器模拟的CPU。
Checking out files: 100% (27546/27546), done.
Branch android-gldfish-2.6.29 set up to track remote branch archive/android-gldfish-2.6.29 from origin.
Switched to a new branch 'android-gldfish-2.6.29'
root@zhupan-desktop:~/download/kernel# git branch
android-2.6.36
* android-gldfish-2.6.29
下面是進入剛才下載的kernel代碼裡進行編譯:
root@zhupan-desktop:~/download/kernel# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- goldfish_defconfig
root@zhupan-desktop:~/download/kernel# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
……
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
emulator -avd AVD1.1 -kernel zImage
更多推荐
所有评论(0)