how to compile kernel
来源:互联网 发布:淘宝怎么帮别人代付 编辑:程序博客网 时间:2024/05/21 16:59
Posted by lenik in Android, Desire, HTC, kernel on June 28, 2010
In the part 1 I explained how to compile a new kernel, and here’s the explanation how to upload the newly compiled kernel to your device.
- make sure you really have arch/arm/boot/zImage file (about 2MB in case of HTC Desire/Eclair) present after your kernel compilation was over.
- download AnyKernel template by koush and unpack it somewhere
- copy your zImage file to the template /kernel directory, there supposed to be another zImage file there — just replace it
- go back to the template directory, you will see three subdirectories: META-INF, kernel & system
- zip them all (zip -r ../update.zip *)
- sign the update.zip and flash it to your device
- scripts included in the template will unpack your current boot.img, keep ramdisk, but replace the kermel
- enjoy!
Big thanks to Bartosz Ponurkiewicz, who gave me nice advices and warned about common problems on the way!
No Comments
How to compile kernel — part 1
Posted by lenik in Android, Desire, HTC, kernel on June 25, 2010
Recently HTC released the kernel source for HTC Desire. Here’s how to compile the kernel source under Ubuntu:
- download and unpack source code
- install android SDK andNDK
- get kernel config from your device (adb pull /proc/config.gz; gunzip config.gz; mv config .config)
- put .config into the root directory where you unpacked kernel source
- run “make oldconfig”
- optionally, if you plan any changes, run “make menuconfig”
- run “make ARCH=arm CROSS_COMPILE=~/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-”, where long and complicated path points to the actual directory where you installed NDK
Wait about 10-20 minutes. You should get the following mesage:
- how to compile kernel
- how to compile kernel
- how to compile uClinux kernel
- How to compile your kernel
- How to Compile the Linux Kernel
- How to: Compile Linux kernel 2.6
- How to: Compile Linux kernel 2.6
- How to: Compile Linux kernel modules
- How to: Compile Linux kernel 2.6
- How to: Compile Linux kernel 2.6
- how to compile kernel in android ?
- how to compile the linux kernel
- How to compile kernel modules for the kernel 2.6
- How to compile a kernel module outside the kernel
- How To Compile A Kernel - The Ubuntu Way
- How To Compile A Kernel - The Ubuntu Way
- How To Compile A Kernel - The Ubuntu Way
- How to Create, Compile, Load Linux LKM Loadable Kernel Modules
- How to Create Android Update Zip Package
- virtualPT, 一个IEC61850抓包工具
- WinForm中Application.Exit与Environment.Exit的区别
- Android消息处理机制:Handler Thread Message Looper
- java使用iText生成pdf文档的对齐方式
- how to compile kernel
- std:string学习
- spring管理hibernate事务报异常--Transaction not successfully started解决方法
- 第八周上机任务1-1
- linux下c程序调用reboot函数实现直接重启
- leds子系统-上
- 移植apache服务器
- leds子系统-下
- 第八周任务(一)