Jump to content

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


Recommended Posts

Guest gnufabio
Posted (edited)

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
Guest gnufabio
Posted (edited)

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
Guest gnufabio
Posted (edited)

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
Guest DemonGloom
Posted (edited)

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
Guest gnufabio
Posted
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

Guest fear_factory84
Posted

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;

Guest gnufabio
Posted
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.

Guest gnufabio
Posted (edited)

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
Guest LSteam
Posted

stupid question... :unsure:

does it work with last cm7 from thepasto?

i said that it was a stupid question :)

Guest Dario93
Posted
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 :)

Guest gnufabio
Posted
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 :)

Guest LSteam
Posted

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 :)

Guest gnufabio
Posted
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

Guest LSteam
Posted

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:

Guest gnufabio
Posted (edited)
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
Guest torrorosso
Posted

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

Guest fear_factory84
Posted
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?

Guest fear_factory84
Posted
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...

Guest torrorosso
Posted
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(

Guest youpi666
Posted

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:

Guest gnufabio
Posted
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..

Guest torrorosso
Posted
latest build from gnufabio for testing:

http://www.multiupload.com/F8HKBFDFZY

- lowmemorykiller fixes for acer framework

- mic fix from ritchen/thepasto

is it better then ritchen`s kernel? what`s the difference between this kernels?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.