sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev g++-multilib lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z-dev libgl1-mesa-dev git
get One X source code from http://htcdev.com/devcenter/downloads
I use Carrier is hTC Asia
download tool chain from:
https://sourcery.mentor.com/sgpp/lite/arm/portal/release1802
IA32 GNU/Linux TAR | c6930d14801b4fab6705d72df013e58b |
cd [Your kernel source]
make endeavoru_android_defconfig (be found from kernel/arch/arm/configs/
make endeavoru_android_defconfig ARCH=arm CROSS_COMPILE=/home/howy/android/arm-2010q1/bin/arm-none-linux-gnueabi-
make -j5 ARCH=arm CROSS_COMPILE=/home/howy/android/arm-2010q1/bin/arm-none-linux-gnueabi-
Result: Kernel: arch/arm/boot/zImage is ready
refer
http://rootzwiki.com/topic/8824-howto-compile-your-own-kernel-v-01/
boot.img tool
http://forum.xda-developers.com/showthread.php?t=562318
download:
http://forum.xda-developers.com/attachment.php?attachmentid=229872&d=1253485580
./mkbootimg --kernel /home/howy/kernel/arch/arm/boot/zImage --ramdisk /home/howy/ramdisk.img --output boot.img
relpace the boot.img on HTC One X
root@howy-U53Jc:/root/android-sdks/platform-tools# ./fastboot flash boot /home/howy/boot.img
沒有留言:
張貼留言