today download android kernel from googlesource following "http://source.android.com/source/building-kernels.html"

$ git clone https://android.googlesource.com/kernel/common.git$ git clone https://android.googlesource.com/kernel/goldfish.git$ git clone https://android.googlesource.com/kernel/msm.git$ git clone https://android.googlesource.com/kernel/omap.git             for my galaxy nexus, i select this,$ git clone https://android.googlesource.com/kernel/samsung.git$ git clone https://android.googlesource.com/kernel/tegra.git

and

$ git clone https://android.googlesource.com/platform/prebuilt$ export PATH=$(pwd)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
, because of my error, download to a mistake partion, and no left space for download finishing. At last download it from "115", it is just 95M, (up git at least 1.5G...)


I build omap and zImage was generated, but donnot know how to apply for GN. And the native kernel is not good as the Franco Kernel using now.


About Franco kernel:

see:

http://forum.xda-developers.com/wiki/Samsung_Galaxy_Nexus/GT-I9250/ROMs/FrancoKernel


can got the kernel source code by:

git clone https://bitbucket.org/franciscofranco/android-tuna-omap.git



cd omap

root@ubuntu:/android/android4.0/kernel/android-tuna-omap# git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/exp
remotes/origin/master
remotes/origin/omap-3.0
remotes/origin/omap-tuna-3.0

root@ubuntu:/android/android4.0/kernel/android-tuna-omap# git checkout remotes/origin/omap-tuna-3.0 -b francoomap-tuna3.0
Checking out files: 100% (165/165), done.
Branch francoomap-tuna3.0 set up to track remote branch omap-tuna-3.0 from origin.
Switched to a new branch 'francoomap-tuna3.0'
root@ubuntu:/android/android4.0/kernel/android-tuna-omap# git branch -a
* francoomap-tuna3.0
master
remotes/origin/HEAD -> origin/master
remotes/origin/exp
remotes/origin/master
remotes/origin/omap-3.0
remotes/origin/omap-tuna-3.0
root@ubuntu:/android/android4.0/kernel/android-tuna-omap# ll
total 440
drwxr-xr-x 24 root root 848 2012-04-15 07:00 ./
drwxr-xr-x 4 root root 112 2012-04-15 06:12 ../
drwxr-xr-x 26 root root 696 2012-04-15 06:48 arch/
drwxr-xr-x 2 root root 992 2012-04-15 07:00 block/
-rw-r--r-- 1 root root 18693 2012-04-15 06:47 COPYING
-rw-r--r-- 1 root root 94495 2012-04-15 06:47 CREDITS
drwxr-xr-x 3 root root 2360 2012-04-15 07:00 crypto/
drwxr-xr-x 93 root root 6608 2012-04-15 07:00 Documentation/
drwxr-xr-x 98 root root 2496 2012-04-15 06:51 drivers/
drwxr-xr-x 38 root root 1472 2012-04-15 06:51 firmware/
drwxr-xr-x 72 root root 3824 2012-04-15 07:00 fs/
drwxr-xr-x 8 root root 328 2012-04-15 07:00 .git/
-rw-r--r-- 1 root root 966 2012-04-15 07:00 .gitignore
drwxr-xr-x 21 root root 536 2012-04-15 06:51 include/
drwxr-xr-x 2 root root 416 2012-04-15 07:00 init/
drwxr-xr-x 2 root root 464 2012-04-15 06:51 ipc/
-rw-r--r-- 1 root root 2464 2012-04-15 06:47 Kbuild
-rw-r--r-- 1 root root 252 2012-04-15 06:47 Kconfig
drwxr-xr-x 9 root root 4232 2012-04-15 07:00 kernel/
drwxr-xr-x 8 root root 4280 2012-04-15 07:00 lib/
-rw-r--r-- 1 root root 4268 2012-04-15 06:47 .mailmap
-rw-r--r-- 1 root root 195191 2012-04-15 06:47 MAINTAINERS
-rw-r--r-- 1 root root 53437 2012-04-15 07:00 Makefile
drwxr-xr-x 2 root root 2368 2012-04-15 07:00 mm/
drwxr-xr-x 53 root root 1536 2012-04-15 06:51 net/
-rw-r--r-- 1 root root 17459 2012-04-15 06:47 README
-rw-r--r-- 1 root root 3371 2012-04-15 06:47 REPORTING-BUGS
drwxr-xr-x 10 root root 312 2012-04-15 06:51 samples/
drwxr-xr-x 13 root root 2600 2012-04-15 07:00 scripts/
drwxr-xr-x 9 root root 488 2012-04-15 06:51 security/
drwxr-xr-x 22 root root 696 2012-04-15 06:51 sound/
drwxr-xr-x 9 root root 216 2012-04-15 06:51 tools/
drwxr-xr-x 2 root root 192 2012-04-15 06:51 usr/
drwxr-xr-x 3 root root 72 2012-04-15 06:51 virt/


modify Makefile

ARCH ?= $(SUBARCH)
CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)

to

ARCH ?= arm
CROSS_COMPILE ?= arm-eabi-

then:

root@ubuntu:/android/android4.0/kernel/android-tuna-omap# make tuna_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#



更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android中通过代码修改bitmap的宽高
  2. 【Android】Android Support库介绍
  3. 关于android service 重启
  4. Android(安卓)Camera对焦相关基础自动对
  5. Android 2.2 source code construction
  6. android连接webservice
  7. android 权限管理PermissionDispatcher使
  8. Android开发学习之事件处理和Button详解
  9. android快速点击生成两个相同页面的解决
  10. Android SDK Permission大全访问权限