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...
Guest treyguitar Posted April 12, 2011 Report Share Posted April 12, 2011 Thanks a lot rithchen!! This post has to be stickied Link to comment Share on other sites More sharing options...
Guest parvata Posted April 12, 2011 Report Share Posted April 12, 2011 Thanks for the instructions. They work as described and the kernel compiled fine. Link to comment Share on other sites More sharing options...
Guest xaueious Posted April 14, 2011 Report Share Posted April 14, 2011 (edited) does this have or not have fast dormancy? did acer give it to us this time? Edited April 14, 2011 by xaueious Link to comment Share on other sites More sharing options...
Guest rithchen Posted April 14, 2011 Report Share Posted April 14, 2011 does this have or not have fast dormancy? did acer give it to us this time? The answer is no. I post this topic just for the people who want's play with kernel, HaHa!! Link to comment Share on other sites More sharing options...
Guest jiego Posted April 16, 2011 Report Share Posted April 16, 2011 Thx,updata linux kernel ok? Link to comment Share on other sites More sharing options...
Guest xaueious Posted April 16, 2011 Report Share Posted April 16, 2011 The answer is no. I post this topic just for the people who want's play with kernel, HaHa!! I am asking because I want to build something that is better than stock, without losing any functionality. Looks harder than I would like it to be :) Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 17, 2011 Report Share Posted April 17, 2011 (edited) WTF? Guide isn't working :) What I've done: Downloaded all that needed, unpacked to specified folders in home/ubuntu folder, patched kernel. Then, when I trying to run make command I get this: make: *** No targets specified and no makefile found. Stop. So I decided to get it work in KERNEL_DIR. The Log that I saw is: [email protected]:~$ cd KERNEL_DIR [email protected]:~/KERNEL_DIR$ make ARCH=arm CROSS_COMPILE=~/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi- /home/ubuntu/KERNEL_DIR/scripts/gcc-version.sh: 25: /home/ubuntu/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi-gcc: Permission denied /home/ubuntu/KERNEL_DIR/scripts/gcc-version.sh: 26: /home/ubuntu/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi-gcc: Permission denied make: execvp: /home/ubuntu/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi-gcc: Permission denied CHK include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-arm CC kernel/bounds.s /bin/sh: /home/ubuntu/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi-gcc: Permission denied make[1]: *** [kernel/bounds.s] Error 126 make: *** [prepare0] Error 2 I've also tried to chmod kernel and toolchain folders, but same result. I'm quite new in linux, and using ubuntu 10.10 live session. Edited April 17, 2011 by Lens_flare Link to comment Share on other sites More sharing options...
Guest zorginho Posted April 17, 2011 Report Share Posted April 17, 2011 Maybe u need to log in as root, or chmod 0777 the files Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 17, 2011 Report Share Posted April 17, 2011 (edited) ah.. I tryied chmod 777.. big fail :] Ok Try to log in as root and chmod rightly. But there is no info in this guide that it's important to get compilation working, I suggest I'm only one who faced with this? Edited April 17, 2011 by Lens_flare Link to comment Share on other sites More sharing options...
Guest Dario93 Posted April 17, 2011 Report Share Posted April 17, 2011 ah.. I tryied chmod 777.. big fail :] Ok Try to log in as root and chmod rightly. But there is no info in this guide that it's important to get compilation working, I suggest I'm only one who faced with this? I think the problem is you're using a live distro.. you should try a small partition or at least a virtual machine :) Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 17, 2011 Report Share Posted April 17, 2011 (edited) :) :) I have no place on my pc for linux ;/ Only USB flash saves me.. But flashdrive distro is load-bugged, 50% that it will not run. Any workaround? Edited April 17, 2011 by Lens_flare Link to comment Share on other sites More sharing options...
Guest barmyman Posted April 17, 2011 Report Share Posted April 17, 2011 strange, i can't patch a kernel when i type a command, i receive: patch: **** read error : Is a directory any solutions? thanks in advance Link to comment Share on other sites More sharing options...
Guest Dario93 Posted April 17, 2011 Report Share Posted April 17, 2011 :) :) I have no place on my pc for linux ;/ Only USB flash saves me.. But flashdrive distro is load-bugged, 50% that it will not run. Any workaround? You don't have space neither for a Virtual machine? :) Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 17, 2011 Report Share Posted April 17, 2011 (edited) You don't have space neither for a Virtual machine? sad.gif Oh, ok will try to save some space for virtual coz failed with chmod 0777 and logging on as root. any solutions? 6. Copy acer_kernel_patch.txt to KERNEL_DIR and rename it acer_kernel_patch (without any extension) 7. Patch the kernel ,typing in terminal: patch -p0 < acer_kernel_patch I think, Dario's modified guide is more useful for more unspecified user. I used to be a popular WM developer for unpopular device, so I can parse commandline strings :] That's why I've done this guide with no probs except the last point. Have a last question: Where I can find modules(or patches?) that I can integrate in this kernel? Any info would be appreciated. Edited April 17, 2011 by Lens_flare Link to comment Share on other sites More sharing options...
Guest gnufabio Posted April 17, 2011 Report Share Posted April 17, 2011 :) :) I have no place on my pc for linux ;/ Only USB flash saves me.. But flashdrive distro is load-bugged, 50% that it will not run. Any workaround? Install gcc and make with cygwin Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 18, 2011 Report Share Posted April 18, 2011 (edited) The problem that I faced before was about TAR.BZ2 archive.. I was unzipped it with crappy winrar, same as kernel zip. So when I've tried tar xjf and unzip in linux cmdline, it works! But hey, what I've done? :) How to flash or at last check out what I've compiled? There is no instructions about this, at last for liquid. Edited April 18, 2011 by Lens_flare Link to comment Share on other sites More sharing options...
Guest rithchen Posted April 18, 2011 Report Share Posted April 18, 2011 (edited) The problem that I faced before was about TAR.BZ2 archive.. I was unzipped it with crappy winrar, same as kernel zip. So when I've tried tar xjf and unzip in linux cmdline, it works! But hey, what I've done? :) How to flash or at last check out what I've complied? There is no instructions about this, at last for liquid. The kernel will generate at arch/arm/boot/zImage, and you need pack it with ramdisk. After you pack kernel & ramdisk together, you can load it by fastboot. Edited April 18, 2011 by rithchen Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 18, 2011 Report Share Posted April 18, 2011 wow, thanksalot :) Then I have to google some info about ramdisk. Link to comment Share on other sites More sharing options...
Guest rithchen Posted April 18, 2011 Report Share Posted April 18, 2011 wow, thanksalot :) Then I have to google some info about ramdisk. I just upload the tools and add instructions in my first post. Hop it will helps :) Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted April 18, 2011 Report Share Posted April 18, 2011 (edited) GREAT, nomore googling-just will start to act :) Thank again. Edited April 18, 2011 by Lens_flare Link to comment Share on other sites More sharing options...
Guest liquid_mini Posted June 14, 2011 Report Share Posted June 14, 2011 (edited) Updates Kernel compile successfully. Every mobile has kernel config file located in /proc/config.gz __________________________________________________ 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) Downloaded acer's kernel source from acer's website for liquid mini released few days back .. .. .. 5. Copy /arch/arm/configs/acer-q8k-al-dvt_defconfig to KERNEL_DIR/.config blocked as there is no such acer*_defconfig in KERNEL_DIR/arch/arm/configs/ though there are other *_defconfig. Please help me Edited June 26, 2011 by liquid_mini Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted June 14, 2011 Report Share Posted June 14, 2011 Use search button, hope it helps. Your config must be uniquie and be different from others. Link to comment Share on other sites More sharing options...
Guest liquid_mini Posted June 16, 2011 Report Share Posted June 16, 2011 got acer kernel source for liquid mini and just trying to build but getting the error with make ARCH=arm CROSS_COMPILE=~/Downloads/acer/TOOLCHAIN_DIR/bin/arm-none-linux-gnueabi- make: *** No rule to make target `FORCE', needed by `/config_data.gz'. Stop Link to comment Share on other sites More sharing options...
Guest Lens_flare Posted June 16, 2011 Report Share Posted June 16, 2011 I think it's about wrong config file. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now