• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.
  • If you are experiencing issues logging in, we migrated and software and made it more secure. We recommend trying to reset your password.

[11 SEP] Barebone CM7 v2b

Rick_1995

Inactive Recognized Developer
Sep 3, 2009
1,118
3,016
0
Santa Clara
Code:
/*
 * @brief: Standard Disclaimer
 *
 * Your warranty is now void. I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
What is the difference between this and the nightly ?
  • All libraries and native code is compiled in ARM mode (except for libwebkit which is still in thumb mode due to it's excessive size) and compiler side optimization is turned on (again, exception being libwebkit using -Os and sqllite using -fno-fast-math).
  • Important function calls and syscalls are aligned for faster response time.
  • I re-implemented some of the cpu atomic functions based on what I've learned so far, swp is used for atomic swap instead of ldrex/strex, register swapping of old value is done at success so if a context switch does occur, the loop will be aligned at the same boundary as the function. On best case, there shouldn't be any difference but can improve execution time for worst case of context switches.
  • Java libraries and bionic libc are compiled with NDEBUG, and the debug variable for java is also set to false.
  • Most crap (stuff that "I" do not use, has been removed ie. VPN, live wallpaper support etc..)
  • Fixed a few memory leaks in bionic, dalvik and ppp (also tether).
  • I've removed most locales except en_US and en_GB, though android still seems to be compiling strings from other languages in the build, so they might work but i can't guarantee anything with locales other than en_(US|GB).
  • Reverted the patch which auto closed notification bar when all notifications are canceled/removed. It was irritating me..
  • more stuff i don't remember, if you care pm me and I'll send you a diff of my repo.

Bugs
  • USB tether (Use another kernel to fix this)
  • Wierd bootup logo
  • Auto brightness might get stuck, switch screen on and off to fix it
  • Poweramp crashes, Though confirmed, the cause itself is not known

Installation
  1. Change partition sizes to as described above the rom link
  2. Boot to recovery
  3. Flash the magldr rom/zip/cwm
  4. Flash clk zip if you're on clk
  5. Reboot
  6. Reboot to recovery and flash data2sd if needed. Must have 5M extra on /system

Tips
  • Use Quickpic for gallery
  • Replace ADW with one of your favourite launchers (ADW EX, LP, Zeam etc..). ADW is slow and buggy, I prefer FTL and fast drawer.
  • DON'T USE SUPERCHARGER V6.

SD Port
NativeSD Port

v2b
Partition Size
  • misc 1M
  • recovery 5M
  • boot 4M
  • system 68M
  • cache 2M

Changelog
  • Update Adreno libraries from latest desire RUU
  • Switch to release build, less logs and more compile time checks
  • Hosts included in the rom
  • Fix data for magldr (left old rmnet module, silly me) thanks Xylograph

Magldr Rom
Magldr to LK
v2
Partition Size
  • misc 1M
  • recovery 5M
  • boot 4M
  • system 67M
  • cache 2M

Changelog
  • Old market and trimmed fonts, thanks Xylograph
  • Updated Software 2D drawing code from jellybean.
  • Fixes Music creating bogus video app in app drawer
  • New memcpy routine from apple
  • Fixes a bug in atomic routines
  • Suppress/Remove verbose and debug logging.
  • Remove unnecessary strings from a few hardware libraries
  • Well if you cared to reach this point, send me a pm for the repo diff.

Magldr Rom
Magldr to LK
First release
Partition Size
  • misc 1M
  • recovery 5M
  • boot 4M
  • system 79M
  • cache 2M

Magldr Rom
Magldr to LK
data2sd (needs 5M extra in system)

Notes:
I compiled this rom for myself but figured sharing won't hurt, and hence I don't plan to provide much support though I'll see what i can if you find a bug. I've run the rom for quite some time now and the results were as expected. Good battery life, large amount of ram upon boot (though I can still notice some memory leaks, will have to look deeper). For now the kernel is tytungs-r1 ics kernel patched for gingerbread, though I will be patching/updating and working on the cmhtcleo kernel once i have the build known to be bug free after some time. Due to switch from arm+thumb mixed to pure ARM mode, i was expecting higher ram usage (alongside with better performance), however looks like I was wrong, this build eats less ram than a arm+thumb interworking build, now i am not really sure why but from what i know it could be because compiler doesn't have to generate arm->thumb and back jumpers for interworking between arm and thumb code.



Credits
cyanogenmod
cmhtcleo team (arif-ali, milaq, charansingh and all other cm developers) for device tree
tytung
Xylograph
devhost

This is my first and probably the last rom, thank you for your time.
 
Last edited:

Rick_1995

Inactive Recognized Developer
Sep 3, 2009
1,118
3,016
0
Santa Clara
another thing you might want to know,

I've removed logo.rle from ramdisk, both to save time and space. I don't fancy bootup logos, Currently it will show wierd patterns on boot if you switch off and power on or the last screen you had if you reboot. This requires a small fix in the kernel which I will release with my next version with the new kernel.
 

securecrt

Senior Member
Aug 4, 2010
763
2,762
0
Shanghai
another thing you might want to know,

I've removed logo.rle from ramdisk, both to save time and space. I don't fancy bootup logos, Currently it will show wierd patterns on boot if you switch off and power on or the last screen you had if you reboot. This requires a small fix in the kernel which I will release with my next version with the new kernel.
can you also update the mmc part from my git, as I want to install your rom to my sdcard:rolleyes:

Sent from my NexusHD2 using xda premium
 

Rick_1995

Inactive Recognized Developer
Sep 3, 2009
1,118
3,016
0
Santa Clara
no way to say that u just start and u will never stop tell u give up from us hahahahha ...i will test it but i have one qus. why cm7 ?? what about cm9 or jelly bean:p
I don't fancy compiling android, I'm more interested in the lower level work of bootloader and kernel. cm7 because it has most stuff working and is smooth, stable. This is the build i use whenever i go out like a man on a mission.

can you also update the mmc part from my git, as I want to install your rom to my sdcard:rolleyes:
Sorry, but i didn't get you what mmc part from your git should be updated ? or Do you want me to update the initrd for phoenix's method of system on sd-ext ?
 

securecrt

Senior Member
Aug 4, 2010
763
2,762
0
Shanghai
I don't fancy compiling android, I'm more interested in the lower level work of bootloader and kernel. cm7 because it has most stuff working and is smooth, stable. This is the build i use whenever i go out like a man on a mission.



Sorry, but i didn't get you what mmc part from your git should be updated ? or Do you want me to update the initrd for phoenix's method of system on sd-ext ?
I mean, the mmc driver in the kernel,
I made the following changes from CAF.
81d9816
29e0f0d
08802ee
4eade39
2145485

I install your ROM with my own script to my SDCARD, it is different with DATA on SD-ext
 

kane159

New member
Jun 16, 2008
871
118
0
good :D very lite rom, i like it
will report any bug i found ;)
planing to buy a new phone so hd2 is just a toy for me now :D:D
and hope to not plug in sd card this rom is pretty good ;) thanks a lot
 

wis1152

Senior Member
Jun 8, 2011
2,729
2,644
0
43
luton uk
media.xda-developers.com
pls post this link......this rom will always be the fallback....hv been keeping typhoon...now thats changed.

thanks rick...way to go man!
Uploading now, I will pm rick the link or is it better for me to post the port in SD thread. What's your thoughts rick?

Sent from my GT-I9100 using Tapatalk 2
 

fsxpilipinas

New member
Aug 12, 2012
111
201
0
Subic Bay
Thanks for this rick. Installed this in my eu and performance is amazing that's why I downloaded it! :cool: I drink San Miguel Lights, I smoke Marlboro Lights and my HD is light. :victory:
 
Our Apps
Get our official app! (coming soon)
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone