gnufabio

[TUT-KERNEL] How to build a kernel for Acer Based ROMs

102 posts in this topic

1. Preparation

Hi all! Let me explain you how to build a Chocolate Kernel for Acer Based ROMs.

First of all you need a linux machine.

Download the arm crosscompiler: http://www.codesourcery.com/sgpp/lite/arm/...nux-gnu.tar.bz2 → Unzip it wherever you want.

Then you should download this script: http://goo.gl/0EVAj

and install something if you don't have it (for example with debian/ubuntu):

sudo apt-get install make gcc git flex bison
Open shell and make it executable with chmod +x filename Then push it to /usr/bin with
sudo mv kacer /usr/bin
Ok, we are ready! First of all you need to configure the script! If you don't have neither the kernel nor the ramdisk nor the manipulate-boot programm you can download it with kacer (YOU NEED GIT!)
kacer --download-kernel --download-stock --download-ramdisk --download-manipulateboot

it will download all in your home folder. Now edit the script and edit this variables:

_CHOCO_KERNEL_FOLDER="" ← Add yhe path to your kernel between the quotes (For example "/home/yourname/acer_liquid_kernel")

_STOCK_KERNEL_FOLDER="" ← Add yhe path to your kernel between the quotes (For example "/home/yourname/acer_stock_kernel")

_MANIPULATEBOOT_FOLDER="" ← Add yhe path to your ramdisk between the quotes (For example "/home/yourname/manipulate-boot")

_RAMDISK_FOLDER="" ← Add yhe path to your kernel between the quotes (For example "/home/yourname/acer_liquid_ramdisk")

_WORKSPACE="a folder you want" ← For example "/home/yourname/workspace"

Save the script and we're ready to compile! :unsure: Continue in the following topics

Edited by gnufabio
0

Share this post


Link to post
Share on other sites

2. Chocolate kernel

run

kacer

It will ask you to enter the number of your cpu. If you don't know how many are they, just enter "1" and press enter.

Now it will take a while!

When if finish just check the output in the workspace. It will be like "acer-choco-kernel-DATE-HOUR.zip". It's flashable. Try to flash it, it will work! :unsure:

If you dont want to pack it in a update.zip just run kacer without any parameter.

Make sure to configure the script to get it working!

Known issues:

  • None.

    The kernel will also be compatible with a2sd :P

    Thanks:
    Roggin, koudelka and thepasto for their great chocolate kernel
    rithchen for his help with wifi
    fear_factory84 for his ramdisk

    We like to share the source. Linux kernel is released under GNU/GPL license! :) So, these are the sources:
acer_liquid_chocolate
acer_liquid_ramdisk

I worked hard to making this kernel compatible, to write this tutorial and to write down the script. I would be very happy to drink a beer ;) If you want, please donate me a beer, click there: DONATE - Thanks to all who will donate!

If there is any problem let me know!

Changelog v 110527-1501:

Fixed battery drain issue


Big thanks to thepasto and rithchen for their patches :o

Download v 110527-1501: http://goo.gl/j7FTU

Edited by gnufabio
0

Share this post


Link to post
Share on other sites

3. Stock kernel (vanilla)

run

kacer

It will ask you to enter the number of your cpu. If you don't know how many are they, just enter "1" and press enter.

Now it will take a while!

When if finish just check the output in the workspace. It will be like "stock-choco-kernel-DATE-HOUR.zip". It's flashable. Try to flash it, it will work! :unsure:

If you dont want to pack it in a update.zip just run kacer without any parameter.

Make sure to configure the script to get it working!

Known issues:

  • The battery drain is quite high, about 2/3%/h in idle.

    rithchen for his fixes and for his help
    fear_factory84 for his ramdisk

    We like to share the source. Linux kernel is released under GNU/GPL license! :) So, these are the sources:
    acer_stock_kernel ← Need some fixes

    I worked hard to write this tutorial and to write down the script. I would be very happy to drink a beer :P If you want, please donate me a beer, click there: DONATE - Thanks to all who will donate!

    If there is any problem let me know!

    Changelog:

    • Coming soon
    Download : coming soon
Edited by gnufabio
0

Share this post


Link to post
Share on other sites

Erm.. Why /usr/sbin?

It will be easier to put it in home directory and to launch script like ./kacer (or ~/kacer from any other folder except home)

Also it is better to use not "/home/fabio/" in script, but "~/" as it is more universal..

Edited by DemonGloom
0

Share this post


Link to post
Share on other sites
Erm.. Why /usr/sbin?

It will be easier to put it in home directory and to launch script like ./kacer (or ~/kacer from any other folder except home)

Also it is better to use not "/home/fabio/" in script, but "~/" as it is more universal..

It more handly to pot it in /usr/bin because you dont need to move into home directory :unsure:

and is better to use /home/username because if you launch it as root ~/ will be /root and not /home/username

0

Share this post


Link to post
Share on other sites

choco-acer-kernel-110511-1108.zip (8.78 MB) http://www.multiupload.com/T1DS5R3Y00

fixed wired headset. I only modified one line of code:

--- acer_liquid_chocolate/./arch/arm/mach-msm/acer_headset.c 2011-05-09 13:55:07.000000000 +0200

+++ acerstock/Kernel Source Code_Acer_1.0_A21E_Liquid E/msm-5ddc596/./arch/arm/mach-msm/acer_headset.c 2010-06-23 11:26:12.000000000 +0200

@@ -232,8 +232,7 @@

hr->debounce_time = ktime_set(0, 500000000); /* 500 ms */

INIT_WORK(&short_wq, acer_update_state_work);

- //hr->sdev.name = "acer-hs";

- hr->sdev.name = "h2w";

+ hr->sdev.name = "acer-hs";

hr->sdev.print_name = acer_hs_print_name;

hr->sdev.print_state = acer_hs_print_state;

hr->headsetOn = false;

0

Share this post


Link to post
Share on other sites
choco-acer-kernel-110511-1108.zip (8.78 MB) http://www.multiupload.com/T1DS5R3Y00

fixed wired headset. I only modified one line of code:

--- acer_liquid_chocolate/./arch/arm/mach-msm/acer_headset.c 2011-05-09 13:55:07.000000000 +0200

+++ acerstock/Kernel Source Code_Acer_1.0_A21E_Liquid E/msm-5ddc596/./arch/arm/mach-msm/acer_headset.c 2010-06-23 11:26:12.000000000 +0200

@@ -232,8 +232,7 @@

hr->debounce_time = ktime_set(0, 500000000); /* 500 ms */

INIT_WORK(&short_wq, acer_update_state_work);

- //hr->sdev.name = "acer-hs";

- hr->sdev.name = "h2w";

+ hr->sdev.name = "acer-hs";

hr->sdev.print_name = acer_hs_print_name;

hr->sdev.print_state = acer_hs_print_state;

hr->headsetOn = false;

Thanks, sources updated.

0

Share this post


Link to post
Share on other sites

Updated kernel, download update.zip: http://www.multiupload.com/5X01F3DIE2

and kacer script: http://goo.gl/0EVAj

Changelog v 11.05.11-19.01:

  • Fixed lowmemorykiller's issues (add_pid and del_pid). No crashes anymore.
  • Fixed HRTICK. Now device will turn on faster from suspend state.
  • Added RFKILL
  • Fixed some issues with wext (Wireless extensions)

Big thanks to thepasto for his patches :unsure:

See the first post for more details.

Edited by gnufabio
0

Share this post


Link to post
Share on other sites

stupid question... :unsure:

does it work with last cm7 from thepasto?

i said that it was a stupid question :)

0

Share this post


Link to post
Share on other sites
stupid question... :unsure:

does it work with last cm7 from thepasto?

i said that it was a stupid question :P

No,since it's compiled with full 2G vmsplit :)

0

Share this post


Link to post
Share on other sites
stupid question... :unsure:

does it work with last cm7 from thepasto?

i said that it was a stupid question :P

This kernel is based on thepasto cm7's one :)

0

Share this post


Link to post
Share on other sites

ah ok :unsure:

my hope was to get a better battery drain speed... i think that now is the only (very) real bug of cm7 rom...

thanks anyway :)

0

Share this post


Link to post
Share on other sites
ah ok :unsure:

my hope was to get a better battery drain speed... i think that now is the only (very) real bug of cm7 rom...

thanks anyway :)

Battery drain is only 1,5~2% for hour even with lagfree governor. It's not too high :P

0

Share this post


Link to post
Share on other sites

with last cm7 build from thepasto?

with last miui i have about 40% left on evening...

with cm7 i have to charge my phone at the same time...

maybe it's my only issue? i have almost a clean rom...very few apps (no services...)

any tip for me? :unsure:

0

Share this post


Link to post
Share on other sites
with last cm7 build from thepasto?

with last miui i have about 40% left on evening...

with cm7 i have to charge my phone at the same time...

maybe it's my only issue? i have almost a clean rom...very few apps (no services...)

any tip for me? :)

No, i meant acer roms with this kernel xD

Fear custom rom + this kernel about 1,5%/h of battery drain in idle :unsure:

Edited by gnufabio
0

Share this post


Link to post
Share on other sites

can anybody fix the quiet microphone in skype and dictophone? It will be just great!

0

Share this post


Link to post
Share on other sites
can anybody fix the quiet microphone in skype and dictophone? It will be just great!

voice recorder and skype works fine for me using this kernel and fear_4.008.08 v1.0-beta1.

What rom do you use?

0

Share this post


Link to post
Share on other sites
Updated kernel, download update.zip: http://www.multiupload.com/5X01F3DIE2

and kacer script: http://goo.gl/0EVAj

Changelog v 11.05.11-19.01:

  • Fixed lowmemorykiller's issues (add_pid and del_pid). No crashes anymore.
  • Fixed HRTICK. Now device will turn on faster from suspend state.
  • Added RFKILL
  • Fixed some issues with wext (Wireless extensions)

Big thanks to thepasto for his patches :unsure:

See the first post for more details.

This release don't work so well for me. Wakeup from sleep now it's really fast, but often touch buttons (back, menu, home etc) don't work, adb logcat don't work...

I advise, for now, to stay with:

choco-acer-kernel-110511-1108.zip (8.78 MB) http://www.multiupload.com/T1DS5R3Y00

It has only headset fix...

0

Share this post


Link to post
Share on other sites
voice recorder and skype works fine for me using this kernel and fear_4.008.08 v1.0-beta1.

What rom do you use?

i`m using off 4.002.14 plus T&L rom:-( tried the kernel from top: choco-acer-kernel v 11.05.11-19.01

the microphone is still not working(

0

Share this post


Link to post
Share on other sites

I've used the two last choco kernel with fear_factory rom and LCR and their have a huge batterry drain problem : 6-8 %/hour when phone is not in use ! (no OC, no wifi)

Other French users have see the same effect on the same rom.

Seems that these kernel have a battery drain problem.

Hope this help, because Froyo is really smooth and fast with these kernel :unsure:

0

Share this post


Link to post
Share on other sites
I've used the two last choco kernel with fear_factory rom and LCR and their have a huge batterry drain problem : 6-8 %/hour when phone is not in use ! (no OC, no wifi)

Other French users have see the same effect on the same rom.

Seems that these kernel have a battery drain problem.

Hope this help, because Froyo is really smooth and fast with these kernel :unsure:

Try to activate Mobile Data and then disable it. The drain problem should be fixed..

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.