download android kernel for galaxy nexus


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
#



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值