Build a Custom Android(安卓)Kernel Guide
1、package to install in ubuntu or Debian
$ sudo apt-get install -ybuild-essential kernel-package libncurses5-dev bzip2
2、Prepare Kernel Source and excute the command
$make clean && make mrproper
3、Excute the command :the default config file location/arch/arm/configs/yourdevice_defconfig
$make yourdevice_defconfig
- Or if you have the Android SDK installed you can get your config by executing the following:
$adb pull /proc/config.gz
$gunzip config.gz
4、Point the "Makefile" to the compilation tools
$export CROSS_COMPILE=/home/***/ndk/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
5、Apply any kernel patches ie. BFS, BFQ etc.
$patch -p1 <yourpatch.patch
6、Further configure your kernel if so desired:
$make menuconfig
7、Execute compile command:
$make -j5 ARCH=arm
8、Kernel & Wifi module locations after compilation:
/arch/arm/boot/zImage
/drivers/net/wireless/bcm4329_204/bcm4329.ko
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer