Build a Custom Android Kernel Guide

1、package to install in ubuntu or Debian

$ sudo apt-get install -y build-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

时间: 2024-07-28 20:21:23

Build a Custom Android Kernel Guide的相关文章

Build Android Kernel &amp;&amp; Kernel Module

I Build Android Kernel (with Module enabled) 1. Kernel source is under android_src/kernel folder 2. Config file is under kernel_src/arch/arm/configs folder xxx_deconfig 3. setup config: $make ARCH=arm CROSS_COMPILE=arm-eabi- xxx_defconfig (.config fi

【转】Android kernel启动流程

;font-family:Arial, Console, Verdana, 'Courier New';line-height:normal;white-space:normal;background-color:#FFFFFF;"> linuxandroidmakefileimagecachealignment 虽然这里的Arm Linux kernel前面加上了Android,但实际上还是和普遍Arm linux kernel启动的过程一样的,这里只是结合一下Android的Makef

[原]Ubuntu 14.04编译Android Kernel

如何编译android kernel参考官方文档:https://source.android.com/source/building-kernels.html 在Ubuntu 14.04上编译android kernel也没有遇到什么很难的问题.主要分以下几个步骤: 首先查看emulator的cpu型号: adb shell [email protected]:/ # cat /proc/cpuinfo Processor : ARMv7 Processor rev 0 (v7l)BogoMI

Mac OS X中Android Kernel的下载方法

在上一篇日志中,我总结了大家提供的下载Android源码的方法,这里再简单总结一下内核的下载方法.参考这里的介绍:http://source.android.com/source/building-kernels.html#downloading-sources ,下载内核源码相对简单很多.我这里下载下来一共1G多一些.在终端输入: $ git clone https://android.googlesource.com/kernel/common.git 如果不指定文件夹名,就直接clone到

openfire当中的Custom Database Integration Guide的配置

openfire官网配置的链接为:Custom Database Integration Guide 按照上面的步骤一步步配置在xml当中,发现始终不起作用,最后在stackoverflow找到的链接,发现直接在mysql数据库中的表ofproperty中配置好相关参数就可以了.

[AngularFire2] Build a Custom Node Backend Using Firebase Queue

In this lesson we are going to learn how to build a custom Node process for batch processing of Firebase data using the Firebase queue library. From UI, we create a request to add 'queue/tasks' node in database which contains the data to be deleted b

如何下载Android kernel内核源代码,编译烧写验证

1. Download Kernel source Study: 1. Please refer to the AOSP official kernel download address: http://source.android.com/source/building-kernels.html 2. goto https://android.googlesource.com/kernel/msm.git check which branch your will get, for Secure

Android之Build类.(Android获取手机配置信息 )

一.类结构: java.lang.Object    ? android.os.Build 二.类概述:从系统属性中提取设备硬件和版本信息. 三.内部类: 1.Build.VERSION    各种版本字符串 2.Build.VERSION_CODES    目前已知的版本代码的枚举类 四.常量:UNKNOWN   当一个版本属性不知道时所设定的值.其字符串值为 "unknown" . 五.构造方法: Build () 六.静态属性 1.BOARD   主板:The name of t

Mac OS X于Android Kernel下载方法

于上一篇日志中,我总结了大家提供的下载Android源代码的方法.这里再简单总结一下内核的下载方法. 參考这里的介绍:http://source.android.com/source/building-kernels.html#downloading-sources ,下载内核源代码相对简单非常多.我这里下载下来一共1G多一些.在终端输入: $ git clone https://android.googlesource.com/kernel/common.git 假设不指定目录名,就直接clo