Jump to content


Photo

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

* * * * * 1 votes

  • Please log in to reply
101 replies to this topic

#1
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
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.codesourc...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, 18 May 2011 - 04:36 PM.

  • 0

#2
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
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.
This kernel is FAST AS HELL, enjoy it! The battery drain is normal (about 1,5%/h).
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, 29 May 2011 - 04:14 PM.

  • 0

#3
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
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.
Thanks:
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, 18 May 2011 - 01:09 PM.

  • 0

#4
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
Added the link for the precompiled Choco kernel with lagfree governor.

http://www.multiupload.com/S3YTSG93BW

Edited by gnufabio, 09 May 2011 - 12:37 PM.

  • 0

#5
DemonGloom

DemonGloom

    Newbie

  • Members
  • Pip
  • 18 posts
  • Gender:Male
  • Location:Russia, Perm'
  • Devices:Acer Liquid, Galaxy Tab
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, 09 May 2011 - 01:22 PM.

  • 0

#6
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

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

#7
fear_factory84

fear_factory84

    Diehard

  • Members
  • PipPipPipPip
  • 370 posts
  • Gender:Male
  • Devices:nexus s, eee pad tf101 + dock
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
nexus s i9023 - cm9 v7.0
eee pad transformer - stock unrooted 9.2.1.21
previous device: acer liquid A1 liquidnext 1.9.2 + 4.008.08 rild + kernel with stock voltages on 4.002.14_EMEA_GEN1

#8
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

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

#9
zorginho

zorginho

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Devices:Nexus 4
tnx ppl u're simply great!!

  • 0

#10
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio
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, 11 May 2011 - 05:40 PM.

  • 0

#11
LSteam

LSteam

    Enthusiast

  • Members
  • PipPipPip
  • 266 posts
  • Devices:Acer Liquid
stupid question... :unsure:
does it work with last cm7 from thepasto?

i said that it was a stupid question :)

  • 0

#12
Dario93

Dario93

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,191 posts
  • Gender:Male
  • Location:Albenga, Italy
  • Interests:Music,Android,Developing,Photography
  • Devices:Galaxy S 3 Mini, Asus TF101
  • Twitter:@Dario993

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
Device: Galaxy S3 Mini - ROM: DMod v2N
Device: Asus Transfomer TF101 - ROM: Stock ICS


Requests? Just PM me! :)

If you like my work, Offer me a Beer!

Posted Image


#13
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

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

#14
LSteam

LSteam

    Enthusiast

  • Members
  • PipPipPip
  • 266 posts
  • Devices:Acer Liquid
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

#15
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

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

#16
LSteam

LSteam

    Enthusiast

  • Members
  • PipPipPip
  • 266 posts
  • Devices:Acer Liquid
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

#17
gnufabio

gnufabio

    Addict

  • Members
  • PipPipPipPipPip
  • 729 posts
  • Gender:Male
  • Devices:Acer liquid A1, Asus TF101
  • Twitter:@gnufabio

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, 11 May 2011 - 07:14 PM.

  • 0

#18
torrorosso

torrorosso

    Newbie

  • Members
  • Pip
  • 43 posts
can anybody fix the quiet microphone in skype and dictophone? It will be just great!

  • 0

#19
fear_factory84

fear_factory84

    Diehard

  • Members
  • PipPipPipPip
  • 370 posts
  • Gender:Male
  • Devices:nexus s, eee pad tf101 + dock

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
nexus s i9023 - cm9 v7.0
eee pad transformer - stock unrooted 9.2.1.21
previous device: acer liquid A1 liquidnext 1.9.2 + 4.008.08 rild + kernel with stock voltages on 4.002.14_EMEA_GEN1

#20
fear_factory84

fear_factory84

    Diehard

  • Members
  • PipPipPipPip
  • 370 posts
  • Gender:Male
  • Devices:nexus s, eee pad tf101 + dock

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
nexus s i9023 - cm9 v7.0
eee pad transformer - stock unrooted 9.2.1.21
previous device: acer liquid A1 liquidnext 1.9.2 + 4.008.08 rild + kernel with stock voltages on 4.002.14_EMEA_GEN1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users