[ROM] Unofficial Linaro CM 10.1 + Bionic Nightlies *Tutorial Compile yourself!!*

Search This thread

trailblazerz11

Senior Member
Apr 4, 2011
1,266
1,328
Portland, OR
github.com
After trying other ROM's, I would always come back to CM 10.1 for its infrastructure, stability and clean features, however I still wanted experimental bleeding edge optimizations like the Linaro toolchain.
These releases will only feature Linaro toolchain and bionic optimizations and keep CM10.1 unaltered for the most part. I did no work whatsover, just compiled with patches by others. If you want to learn how, there's a tutorial on post #3

Instructions

NANDroid
Wipe/Factory Reset if coming from anything other than CM 10.1 (Seems to be okay to dirty from from non-linaro previous cm nightlies)
Wipe Cache
Flash .zip
Flash custom kernel
Flash gapps if needed
Reboot

Download

www.trailblazerz11.com

Goo.im Also Availible on GooManager

Nexus 4 Thread

Disclaimer: I am not responsible for anything that may happen.

Credits:
Cyanogenmod
Linaro
Google
Eug39 for help with errors
Evan McClain for cm10.1 gerrit patches
codeworkx for patches
bricked for kernel patches
EvoXOhio for helping get this whole thing started

Github
https://github.com/trailblazerz
 
Last edited:

trailblazerz11

Senior Member
Apr 4, 2011
1,266
1,328
Portland, OR
github.com
Changelog (besides cm changes)

5/24- libm: sqrt and sqrtf via ARM vsqrt instruction.
5/13- mvectorize-with-neon-quad
4/24- -mcpu=cortex-a9
4/14- Updated to 2013.04 Linaro Thanks kszaq again
4/4- Arch specific strcmp from Google
4/3- Updated to 2013.03 Linaro Thanks kszaq
3/4-Updated kernel to Googles 4.2.2 tag
2/23-Grouper bluetooth fix, Thanks Eug
2/18-ARMv7 optimized memchar()
A-15 memspy
Change Krait flag value
2/13-Added bionic improvement to memspy from paranoid android
Added vfpv4 flag
2/11-Added bionic optimizations for A-9 from CM gerrit
Added some flags
2/8-All widgets now work in lockscreen
2/6-Added ARMv7 optimizations to bionic
2/5-Initial Release patched to compile with linaro
 
Last edited:

trailblazerz11

Senior Member
Apr 4, 2011
1,266
1,328
Portland, OR
github.com
Tutorial Revamped Feedback please
Tackle_berry was able to compile it and modified the tutorial http://xdaforums.com/showpost.php?p=39567944&postcount=623

Set up CM build environment - CM wiki
Best to compile a build so you know everything is working before adding Linaro
note: My build enviroment is on Arch Linux on latest RC kernel.

Download and set up Linaro toolchain
http://www.linaro.org/downloads/ Components, Android, Linaro 4.7 ICS/JB
Extract and rename the folder to linaro-4.7 and place it in /prebuilts/gcc/linux-x86/arm

"Linarize" Automated now
Start a linaro branch if you are going further add to it otherwise you can skip the following and work off branch and just apply the script every time.
Code:
repo start linaro --all

Download the attached script and run it. It will cherry-pick all the linaro patches (with the exception of bionic which is pulled)

Done :)

Updating
repo sync to sync from CM then run the script again if you didnt make a linaro branch. If you did repo sync should automatically update your branches

I cannot control repo syncs causing conflicts or new commits from CM (or by you) cause build errors. I will try to fix and upload changes asap.

IMO the most enjoyable part of compiling your own build is banging your head on an error then eventually finding a fix and having everything work as its suppose to. It's about the journey :)
 

Attachments

  • cherrypick.sh.tar.bz2
    2.2 KB · Views: 31
Last edited:
  • Like
Reactions: chasmodo

pastalero

Senior Member
May 13, 2011
144
2
Re: [ROM] [KANG] Linaro CM 10.1

I'm gonna give it a whirl,I dig the Linaro Kernel, its a monster on the 10.1 nightlies. I'm bummed about the bugs with cifs mounting on 4.2 but Subsonic is awesome so its doing the trick for now.
 
Last edited:

DesertVelo

Senior Member
Jan 21, 2011
392
162
Re: [ROM] [KANG] Linaro CM 10.1

Using it on Nexus 4 since this morning with Franco #61 kernel. No issues so far but still early.

Sent from the singletrack....
 

GeyerA

Senior Member
Apr 6, 2009
979
1,586
Germany, Gerolzhofen
Hi trailblazerz11, I was flashing too many things the past week since I was not happy on the smoothness. So I decided to return on CM and try your ROM. I just started to use but it feels already very smooth. I will feedback more in a few days. However, thanks so far!
 
  • Like
Reactions: trailblazerz11

eug89

Senior Member
Sep 9, 2009
285
83
2/15 Grouper Uploaded, 4.2.2 merged.
Was too busy to find new blobs(if there are any?) but works fine for me

HI, as you know I'm building cm-10.1 with basically the same mods you are using. Just wanted to ask you if bluetooth works in this rom, because, since the 4.2.2 update, bluetooth is broken on my builds.,
 

RobertsDF

Senior Member
Oct 19, 2009
330
36
  • Like
Reactions: Nilsb7

bpear96

Senior Member
Sep 30, 2010
1,879
3,583
Re: [ROM][KANG] Linaro CM 10.1 + Bionic *2/16 Nightly 4.2.2*

This is really great! Thanks

Sent from my Nexus 7 using Tapatalk HD
 

trailblazerz11

Senior Member
Apr 4, 2011
1,266
1,328
Portland, OR
github.com
Re: [ROM][KANG] Linaro CM 10.1 + Bionic *2/16 Nightly 4.2.2*

Will upload 2/18 nightly when I get home.
Didn't know about the Bluetooth issues, hopefully new nightly fixes. Thanks for the fix

Sent from my Nexus 7 using Tapatalk HD

EDIT: Uploaded
 
Last edited:
  • Like
Reactions: luca1102

eug89

Senior Member
Sep 9, 2009
285
83
R: [ROM][KANG] Linaro CM 10.1 + Bionic *2/18 Nightly 4.2.2*

Will upload 2/18 nightly when I get home.
Didn't know about the Bluetooth issues, hopefully new nightly fixes. Thanks for the fix

Sent from my Nexus 7 using Tapatalk HD

EDIT: Uploaded
Did you have to use the bluetooth.default.so file contained in the zip posted above to get the Bluetooth to work or It was already working fine in your builds?
 

eug89

Senior Member
Sep 9, 2009
285
83
R: [ROM][KANG] Linaro CM 10.1 + Bionic *2/18 Nightly 4.2.2*

Not fixed in 2/18 :( had to flash it too

Sent from my Nexus 7 using Tapatalk HD

Does your build for the nexus 4 have the same issue?
bluetooth.default.so gets compiled from external/bluetooth/blue droid but I haven't made any changes from cyanogenmod's source in that repo and in the official nightlies BT seems to work fine. It could be some compiler flag, next time I'll try building without the -03 optimizations.
 

trailblazerz11

Senior Member
Apr 4, 2011
1,266
1,328
Portland, OR
github.com
Re: [ROM][KANG] Linaro CM 10.1 + Bionic *2/18 Nightly 4.2.2*

Does your build for the nexus 4 have the same issue?
bluetooth.default.so gets compiled from external/bluetooth/blue droid but I haven't made any changes from cyanogenmod's source in that repo and in the official nightlies BT seems to work fine. It could be some compiler flag, next time I'll try building without the -03 optimizations.

It works fine on mako. Yeah, probably something with linaro or O3

Sent from my Nexus 4 using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    After trying other ROM's, I would always come back to CM 10.1 for its infrastructure, stability and clean features, however I still wanted experimental bleeding edge optimizations like the Linaro toolchain.
    These releases will only feature Linaro toolchain and bionic optimizations and keep CM10.1 unaltered for the most part. I did no work whatsover, just compiled with patches by others. If you want to learn how, there's a tutorial on post #3

    Instructions

    NANDroid
    Wipe/Factory Reset if coming from anything other than CM 10.1 (Seems to be okay to dirty from from non-linaro previous cm nightlies)
    Wipe Cache
    Flash .zip
    Flash custom kernel
    Flash gapps if needed
    Reboot

    Download

    www.trailblazerz11.com

    Goo.im Also Availible on GooManager

    Nexus 4 Thread

    Disclaimer: I am not responsible for anything that may happen.

    Credits:
    Cyanogenmod
    Linaro
    Google
    Eug39 for help with errors
    Evan McClain for cm10.1 gerrit patches
    codeworkx for patches
    bricked for kernel patches
    EvoXOhio for helping get this whole thing started

    Github
    https://github.com/trailblazerz
    4
    Todays build is an M-Series release, theres a folder for it now. Compiling now
    4
    Re: [ROM] [KANG] Linaro CM 10.1 Nexus 4&7 *2/6*

    2/8 nightly uploading
    Synced and mako has new pow() optimization fixed.

    Sent from my Nexus 4 using Tapatalk 2
    3
    New 2/6 build tested and uploaded. Synced fresh from CM and also added some ARMv7 optimizations to bionic
    3
    Thanks :) perhaps just disable some flags on bluetooth. Will try later

    Sent from my Nexus 7 using Tapatalk HD

    Yeah, probably it's just a matter of adding LOCAL_CFLAGS := -O2 in the bluedroid makefile. Best thing would be to find out exactly what is the optimization flag included in -O3 that breaks it and disable just that... If you want to try these are the flags that are enabled with -O3 that are not included in -O2: -finline-functions, -funswitch-loops, -fpredictive-commoning, -fgcse-after-reload, -ftree-vectorize, -fvect-cost-model, -ftree-partial-pre and -fipa-cp-clone. I'm not sure but if you want to disable just one flag you should add a -fno in front of the flag, for example:
    LOCAL_CFLAGS += -fno-inline-functions to disable -finline-functions.