Build a Custom Android Kernel Guide
2014-08-27 15:35
281 查看
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
$ 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
相关文章推荐
- Rockie's Android Porting Guide(1)——Build your own board
- [转]Simple Guide for Porting Android Kernel
- How to Build LineageOS rom for any android device Easily ! {Full guide}
- Simple Guide for Porting Android Kernel
- Android platform build guide for Exynos-4412(odroid -X/X2/U2/U3/Q2/Q)
- linux kernel API and google android compile guide
- Simple Guide for Porting Android Kernel
- android build kernel modules
- [原创]在ubuntu12.04下build android kernel boot.bin无法开机解决办法
- HOWTO build additional kernel modules for Android
- Android 自定义控件build时提示Custom view * is not using the 2- or 3-argument View constructors; XML attribut
- Build Android Kernel
- simple guide for porting android kernel
- How to build kernel for Beaglebone for custom cape support
- package com.android.guide.compatnotificationbuilde
- Android kernel build from source code and from prebuilt
- Simple Guide for Porting Android Kernel
- Build Android-x86 ICS 4 Virtualbox from Google Virtualbox Target and Intel Kernel 编译体验
- Build Android Kernel
- Simple Guide for Porting Android Kernel (portingNote)