Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,458 Members 47,492 Now Online
XDA Developers Android and Mobile Development Forum

[Rom] SLIM & MAHDI & AOSPA & (OMNI) [SaberMod] JustArchi's optimizations

Tip us?
 
satyr007
Old
(Last edited by satyr007; 12th September 2014 at 08:22 PM.) Reason: first mahdi rom
#1  
Senior Member - OP
Thanks Meter 129
Posts: 110
Join Date: Dec 2008
Location: Cracow
Default [Rom] SLIM & MAHDI & AOSPA & (OMNI) [SaberMod] JustArchi's optimizations

UNOFFICIAL
I present you my private slim,omni and aospa builds.
They're pure stock with Just Archi's optimizations.
I used all flags, fixed all warnings.
O3 really speeds up ROM.
For full speed I suggest using kernels built with sabermod and ART runtime if possible.

Instead of common flags:

 

TARGET_arm_CFLAGS := -O2 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops
TARGET_thumb_CFLAGS := -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing
TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable -fno-builtin-sin -fno-strict-volatile-bitfields
TARGET_RELEASE_CFLAGS := -DNDEBUG -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers


I used:

 

TARGET_arm_CFLAGS := -O3 -DNDEBUG -fstrict-aliasing -funsafe-loop-optimizations -fsection-anchors -fivopts -ftree-loop-im -ftree-loop-ivcanon -ffunction-sections -fdata-sections -funswitch-loops -frename-registers -fomit-frame-pointer -fgcse-sm -fgcse-las -fweb -ftracer -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized

TARGET_thumb_CFLAGS := -mthumb -O3 -DNDEBUG -funsafe-loop-optimizations -fsection-anchors -fivopts -ftree-loop-im -ftree-loop-ivcanon -ffunction-sections -fdata-sections -funswitch-loops -frename-registers -frerun-cse-after-loop -fomit-frame-pointer -fgcse-sm -fgcse-las -fweb -ftracer -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized

TARGET_RELEASE_CFLAGS := -O3 -DNDEBUG -fno-strict-aliasing -funsafe-loop-optimizations -fsection-anchors -fivopts -ftree-loop-im -ftree-loop-ivcanon -ffunction-sections -fdata-sections -funswitch-loops -frename-registers -fomit-frame-pointer -fgcse-sm -fgcse-las -fweb -ftracer -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized

TARGET_GLOBAL_CPPFLAGS += -O3 -DNDEBUG -funsafe-loop-optimizations -fsection-anchors -fivopts -ftree-loop-im -ftree-loop-ivcanon -ffunction-sections -fdata-sections -funswitch-loops -frename-registers -fomit-frame-pointer -fgcse-sm -fgcse-las -fweb -ftracer -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=maybe-uninitialized -Wstrict-aliasing=3


Rom is built using Sabermod 4.8.4.

Official changelog:
SLIMROM
OMNIROM
AOSPA
MAHDI


My changelog:
12-09-2014 End of omni. First Mahdi 2.7: rom sabermod 4.8.4 | kernel linaro 4.9
11-09-2014 Slimkat: Lastest source 7.9
01-09-2014 Aospa: Latest source
29-08-2014 Aospa: Latest source
28-08-2014 Slimkat: Latest source 7.6
26-08-2014 Omnirom: Latest source code
17-08-2014 Aospa: Initial build
16-08-2014 Slimkat: Latest source
12-08-2014 Omnirom: Latest source code
11-08-2014 Slimkat: Latest source code, add polish lang to quick settings tiles.
09-08-2014 Slimkat: Added full polish translation (advanced settings and more). This version is based on 04-08-2014, nothing changed in meantime in upstream slim, added only language.
08-08-2014 Omnirom: Initial build


Bugs:
-Lens blur causes force close in google camera app. It's a bad coded app.

Installation:
- moving from another rom? do full wipe before
- moving from previous versions of slim/omni/pa(built by me/official/sb else)? just install, no wipes required

Download:
SLIMROM: Slim 11-09-2014
Slim mirror
OMNI: Omni 26-08-2014
Omni mirror
AOSPA: Aospa 01-09-2014
Aospa mirror
MAHDI: Mahdi 12-09-2014
Mahdi mirror


Credits:
paranoidandroid.co
slimroms.net
omnirom.org
mahdi rom
JustArchi optimizations
Sabermod toolchain
VanirAOSP commits


Source:

Check proper git and following fixes.

How to build - errors I faced and some fixes (sabermod 4.8.4). I use oracle java: Java(TM) SE Runtime Environment (build 1.6.0_45-b06) and ubuntu 12.04
Firstly add JustArchi's commits: https://github.com/JustArchi/android...c4899fda756cec
then:
for all roms:
https://github.com/VanirAOSP/hardwar...0e84910753497d
https://github.com/VanirAOSP/hardwar...8759c6eeda88f2
ART bootloop fix
Omnirom:
 

1st:

/omni/kernel/lge/hammerhead/arch/arm/mach-msm/sensors_adsp.c: In function 'sns_ocmem_map_send':
/omni/kernel/lge/hammerhead/arch/arm/mach-msm/sensors_adsp.c:877:39: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
FIX:
- memcpy(&msg.vectors, vectors, sizeof(vectors));
+ memcpy(&msg.vectors, vectors, sizeof(*vectors));

2nd:

/omni/kernel/lge/hammerhead/drivers/usb/gadget/f_qdss.c: In function 'qdss_bind_config':
/omni/kernel/lge/hammerhead/drivers/usb/gadget/f_qdss.c:599:38: warning: argument to 'sizeof' in 'strncmp' call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]

FIX:
in 2 places find and overwrite
- if (!strncmp(name, ch->name, sizeof(ch->name))) {
+ if (!strcmp(name, ch->name)) {


3rd:
/omni/kernel/lge/hammerhead/net/bluetooth/hci_conn.c: In function 'hci_le_ltk_reply':
/omni/kernel/lge/hammerhead/net/bluetooth/hci_conn.c:406:28: warning: argument to 'sizeof' in 'memcpy' call is the same pointer type '__u8 *' as the destination; expected '__u8' or an explicit length [-Wsizeof-pointer-memaccess]


FIX:

void hci_le_ltk_reply(struct hci_conn *conn, u8 ltk[16])
{
struct hci_dev *hdev = conn->hdev;
struct hci_cp_le_ltk_reply cp;

BT_DBG("%p", conn);

memset(&cp, 0, sizeof(cp));

cp.handle = cpu_to_le16(conn->handle);
memcpy(cp.ltk, ltk, sizeof(cp.ltk));

hci_send_cmd(hdev, HCI_OP_LE_LTK_REPLY, sizeof(cp), &cp);
}


Slimrom:
 

Nothing more


AOSPA
 

Future, I don't remember
The Following 34 Users Say Thank You to satyr007 For This Useful Post: [ Click to Expand ]
 
kezn715
Old
#2  
kezn715's Avatar
Senior Member
Thanks Meter 180
Posts: 375
Join Date: Apr 2012
Location: Malaysia , Penang
Awesome ~ will give it a flash later on here goes my weekend
 
travperk
Old
(Last edited by travperk; 10th August 2014 at 10:50 AM.)
#3  
travperk's Avatar
Senior Member
Thanks Meter 183
Posts: 204
Join Date: Jan 2011
Location: that itty-bitty nano-spec on that blue dot thats sits just past those last trillion galaxies
Hellz yah !! Thank you Brother for dropping some fresh new dope !!

Time to whip out the ye ole' TWRP syringe and slam this potent goodness in my phone-arm!!

Thanks again brother for the fx !!

��
flashin and flashin all night for days, weeks, months, more than half of my life and i still cant get enough. What do they put in this stuff?
 
Nickamina
Old
#4  
Nickamina's Avatar
Senior Member
Thanks Meter 191
Posts: 409
Join Date: Jul 2011
Location: London
This is awesome - super stable too. Thanks man!
I'd love to see someone do some AOSPA builds in the future.
Hammerhead (Android 4.4.4)

Quote:
Search before posting and simply click "Thanks" if somebody's helped you. Let's keep development threads clean and concise!
 
ps000000
Old
#5  
ps000000's Avatar
Senior Member
Thanks Meter 64
Posts: 527
Join Date: Sep 2011
Location: Nonthaburi / Bangkok
Oh I will try both of them downloading.....
Galaxy Note 10.1 (2014) P601 3G & Google Nexus 5 D821 LTE

My history
Android - Galaxy S2 (i9100T) , Dell Streak 5 , Tab 7 Plus (P6200L) , Galaxy Nexus (Maguro), Note 2 (N7100) , Galaxy S4 (i9505), Galaxy Mega 6.3 (i9205) , Galaxy Note3 (N9005) , Xperia Z Ultra (C6833)
iOS - iPhone 4 - 16GB , iPhone 4S - 16GB , iPhone 5 - 16GB , iPad 3 - WiFi - 16GB
Windows Phone - Lumia 920

My PC - i5-2500K + Asus HD7970TOP + water cooling
My Lap - Macbook Pro 15" Late 2011 - i7 2760QM + HD 6770M
 
satyr007
Old
#6  
Senior Member - OP
Thanks Meter 129
Posts: 110
Join Date: Dec 2008
Location: Cracow
Got aospa sources, but i need to fix some stuff. Will try to build it this week.
The Following 6 Users Say Thank You to satyr007 For This Useful Post: [ Click to Expand ]
 
mic213
Old
#7  
Senior Member
Thanks Meter 192
Posts: 229
Join Date: Feb 2010
Omni build running smooth with Linaro r59. I'd love to see the CarbonROM with the Archi optimizations too if you can.
 
satyr007
Old
#8  
Senior Member - OP
Thanks Meter 129
Posts: 110
Join Date: Dec 2008
Location: Cracow
New slim
 
mr-tical
Old
#9  
Senior Member
Thanks Meter 216
Posts: 523
Join Date: Apr 2011
Location: Malbork (PL)
satyr007, great work!
These optimizations, are really great, I updated Omni to latest official and now i see how your build was faaast.
I wish these were the daily Omni builds
Cheers!

NEXUS5OMNIROMELEMENTALXMULTIROM.TWRPCUSTOM.COLOR.PROFILE
XPERIA S 4.4.2 CM11 OpenSEMC - BETA2 powered by XPOSED
XPERIA X8 2.3.7 CM7.2 powered by nAa kernel





 
jtwlbz
Old
#10  
jtwlbz's Avatar
Senior Member
Thanks Meter 224
Posts: 1,351
Join Date: Apr 2012
Location: Earth
Great job feels snappier slim

Tags
justarchi, omnirom 4.4, sabermod-4.8, slimkat 4.4.4, [rom]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes