Guest rithchen Posted April 12, 2011 Report Share Posted April 12, 2011 (edited) Hi, I see some people want to build their own kernel from Acer's kernel source, So i decided write a simple instruction to help people who want to play with kernel source code :) 1. You must have a linux host machine to build the source code (Maybe you can use different OS, but it's out of my knowledge) 2. Download acer's kernel source from acer's website (http://global-download.acer.com/GDFiles/Document/App.%20Guide/App.%20Guide_Acer_1.0_A_A.zip?acerid=634327518155894706&Step1=Smart Handheld&Step2=Liquid&Step3=Liquid E&OS=a04&LC=zh-cht&BC=Acer&SC=TWN_1) 3. Download toolchain from codesourcery (http://www.codesourcery.com/sgpp/lite/arm/portal/package6488/public/arm-none-linux-gnueabi/arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2) 4. Extract kernel source to KERNEL_DIR 5. Extract toolchain to TOOLCHAIN_DIR 5. Copy /arch/arm/configs/acer-q8k-al-dvt_defconfig to KERNEL_DIR/.config 6. Copy acer_kernel_patch.txt to KERNEL_DIR/acer_kernel_patch 7. Patch the kernel ("patch -p0 < acer_kernel_patch") 8. Build source ("make ARCH=arm CROSS_COMPILE=~/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi-") 9. unzip liquid_tools.zip to TOOL_DIR 10. Choose an old boot image you want to use and copy it to TOOL_DIR/boot.img 11. Unpack kernel & ramdisk ("./unpack-bootimg.pl boot.img") P.S. You will get kernel named by "boot.img-kernel.gz" and ramdisk floader "boot.img-ramdisk" 12. Repack new kernel & ramdisk ("./repack-bootimg.pl KERNEL_DIR/arch/arm/boot/zImage boot.img-ramdisk newboot.img") P.S. newboot.img is your new boot image 13. Use fastboot to load your new boot image ("fastboot -i 0x0502 boot newboot.img") 14. Have fun XD acer_kernel_patch.txt liquid_tools.zip P.S. It' vanilla kernel, add anything you want, enjoy it!! Edited April 18, 2011 by rithchen Link to comment Share on other sites More sharing options...
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now