Samsung Galaxy 5 (i5500) gets CM7.1((based on Android Gingerbread 2.3.7))

NOTE- Please go check for updates from the link , there are constant updates fixing bugs
This has been around for a while now but I am sure there are people who owns a Galaxy 5 and is stuck on Android 2.1  . Well now you can get 2.3.7 on your phone, I personally have been trying the CM7 for a few months now and all the bugs have been fixed .

Head over HERE for reporting bugs and the source


  • Install ClockworkMod Recovery.
  • Visit the Basebands thread and install a baseband that is marked as compatible with CyanogenMod. Since v1.5 hotfix2, any Froyo baseband should work fine.
  • Optional: ensure that you have a backup of your current ROM and user data.

Note 1: If you are upgrading from an older CyanogenMod version, you always need to re-install the Google Apps package, even if you had previously installed it.

  • Reboot into ClockworkMod. You can do this via adb reboot recovery, or by choosing the Reboot -> Recovery menu if you are already using CyanogenMod.
  • If you are upgrading from Eclair or Froyo, you absolutely must perform a data wipe: Select wipe data/factory reset and confirm the operation. Note that you will lose all of your user data, so be sure that you have performed a backup. Otherwise, skip to the next step.
  • Choose the option install update from sdcard -> choose zip from sdcard. You will see the two (or three) .zip files in the list.
  • You must install the two (or three, if you have a hotfix) files in this exact order:
    • The base package named
    • [If exists] The latest hotfix package for the same base package version, named
    • The Google Apps package, named
  • Once all packages are installed, you can now reboot.

Installation (hotfix update):
Note 1: only install a hotfix for the same base version of the ROM that you have installed (e.g. use v1.5 hotfix1 only on the v1.5 release).
Note 2: you only need to install the latest hotfix version, as it will include all the updates from previous versions.
Note 3: Hotfixes do not require a data-wipe.

  • Download the latest hotfix package and transfer to the SD card.
  • Reboot into ClockworkMod Recovery.
  • Choose install update from sdcard -> choose zip from sdcard, select the hotfix and confirm installation.
  • Reboot.

Latest Changelog:

  • v1.6 – 7 October 2011:
    • Data wipe?: only if you have problems.
    • Updated Gingerbread 2.3.7 / CyanogenMod source – no longer marked as Release Candidate code.
    • Due to reported problems, reverted to stock wifi driver – the only change is that wireless-N mode is activated.
    • Replaced CyanogenMod’s v5 wpa_supplicant with Samsung’s v6 version. This should improve wireless signal with the stock driver.
    • Fixed light toggle button in notification menu.
    • Optimizations: reduced VM heap size to 24m, disabled surface dithering.
    • Small tweaks & fixes.
  • v1.5 – 1 October 2011:
    • Battery stats wipe?: You must wipe your battery stats in ClockworkMod for this release, since we are using a modified kernel battery driver (and your existing stats file may be invalid).
    • Data wipe?: A regular data-wipe is only necessary if you have problems (as usual).
    • Hotfix 2 [5 October 2011]: Kernel: Bluetooth initialization fix; enabled compatibility with new basebands – you are now free to use any Froyo-based baseband with CyanogenMod. Framework: enhanced dual-touch compatibility (enabling/disabling dual-touch will now change the touchscreen permissions to the proper type). If you’re using dual-touch, please re-enable via madconfig after installing this update.
    • Hotfix 1 [5 October 2011]: Kernel: kernel source re-patched from vanilla to avoid unnecessary/unstable patches; fixed reboot/reboot to recovery hangs; optimized size of kernel modules to free extra RAM; upgraded to newer FSR drivers from I5500XWJQ3 ROM; reverted to stable version of compcache (ramzswap) driver; removed OuNao’s dualtouch driver from kernel, but re-added as an optional kernel module. Framework: added new “madconfig” script to configure swap and dualtouch activation; various small fixes and hacks removed.
    • 35% extra trololo.
    • Updated CyanogenMod source – Gingerbread version 2.3.7.
    • Fixed audio routing when headphone/headset is connected. You can now force ringtones to speaker – just remember that you need to change this in Settings -> CyanogenMod Settings -> Sound -> Always play on speaker.
    • Fixed FM Radio seek (left/right arrows) – thanks to OuNao.
    • Now includes fake dualtouch driver by default – see OuNao’s Fake DualTouch thread for more details.
    • Now using improved ar6000 wireless-N wifi driver (based on Linux compat-wireless-20110329 ath6kl driver, with Samsung’s patches for the G5).
    • Small tweaks to the new battery driver’s voltages.
    • S2E corruption issues should now be completely solved. If your existing /sd-ext partition is corrupt from previous usage in older ROMs, see post #2 for instructions on how to manually format your partition (this is the only way to clear the bug).
    • [I5508] Touchscreen driver for I5508 now partially working. The x/y axis orientation is correct, but the accuracy is not good. I will try to fix this in future releases/hotfixes.
  • v1.4 – 23 September 2011:
    • Battery stats wipe?: You must wipe your battery stats in ClockworkMod for this release, since we are using a new kernel battery driver.
    • Data wipe?: A regular data-wipe is only necessary if you have problems (as usual).
    • Hotfix 1 [24 September 2011]: Fixed wifi tethering (reverted to v5 supplicant – should not reduce wireless quality as we are still using the newer WEXT driver); fixed stock FM radio; improved FM radio volume code (thanks to OuNao); improved FM audio quality (reduced hiss sound).
    • Updated CyanogenMod source.
    • Deodexed ROM: you can now install the full Google Apps package if you desire. Keep in mind that your first boot after upgrade/fresh install will be slower compared to previous versions, but regular boots will continue to be fast.
    • Patch to prevent S2E from applying bad filesystem tweaks (won’t interfere if you don’t use S2E).
    • Linked /cache/download -> /data/download by default (so all users can download large apps from Market, even if not using an app2sd method).
    • Kernel: Updated battery driver (based on tass_battery.c 2.6.35 kernel driver) – this should reduce battery drain and prevent the phone from staying stuck on 99% battery for extended periods. Note: your battery stats will be erratic for one or two charging cycles – make sure to wipe your battery stats to help this process.
    • Wireless: new driver with Wireless-N capability & better signal (based on Atheros source from Samsung I5508, with patches from 2.6.35 kernel).
    • Updated to wpa_supplicant v6 (awext -> wext driver) & reverted to CM7 dhcpcd. This restores wireless signals to Froyo levels.
    • Kernel: Updated fsa9280 USB switch driver (from 2.6.35 source).
    • Kernel: change default TCP congestion control method to “veno” – should improve wireless reliability, especially if there is wireless congestion in your area. It can also improve wireless throughput under normal wireless conditions.
    • Enabled hardware-accelerated 2D rendering (note: this feature wasn’t working properly in the previous test hotfixes – it’s working now, and there is no graphical corruption).
    • Various small bugfixes.
  • v1.3 – 10 September 2011:
    • Data wipe?: only if you have problems.
    • Updated CyanogenMod source.
    • Hotfix 2 [18 September 2011]: Boot: removed custom lowmemorykiller tweaks; kernel: various updates (smartassV2, TinyRCU, Simple and V(R) IO schedulers), bugfixes and optimizations, changed default scheduler to Simple IO; libaudio: code cleanup and reduced overall FM volume; Framework: enabled hardware-accelerated 2D rendering.
    • Hotfix 1 [10 September 2011]: Fixed volume controls on stock FM app (thanks again to OuNao and Mike).
    • Stock FM Radio app now working! Huge thanks to mikereidis and OuNao for the assistance. Note: the volume will be stuck at 100% in the stock app, so take care not to blow out your speakers (will be addressed in a later hotfix). Alternatively, you can use Mike’s excellent Spirit FM application which has working volume controls (as well as many other features not present in CyanogenMod’s stock FM app). See this thread and Mike’s thread on XDA. Be sure to show your appreciation for Mike’s work by purchasing the unlock key for his app.
    • Boot: small fix to /dev/log/* permissions (was causing log errors).
    • Graphical tweak to improve GUI performance.
  • v1.2 – 21 August 2011:
    • Important: mad2sd has been removed from this ROM. Please turn off mad2sd before upgrading, and read the notes in post #2.
    • Data wipe?: only if you have problems / forgot to disable mad2sd properly before upgrading.
    • Hotfix 2 [7 September 2011]: Kernel: experimental config changes for better battery savings. Framework: fixed lag on incoming call; small fix to “mad2sd” script (note: it is only used to control swap).
    • Hotfix 1 [27 August 2011]: Modified kernel config to reduce SD lag; reduced VM heap size to 32Mb; potential fix for lag on incoming call; modifications to better support S2E – its script will now mount the drive with its own parameters, giving better performance. Important: Due to changes in the way S2E works, you must move all folders back to internal memory (and make sure to do a full reboot), before installing hotfix1. When you flash hotfix 1, you should also format /sd-ext, or else you will have problems. See: this post.
    • Updated CyanogenMod source.
    • Changed default configuration: 48Mb VM heap size, 18% compcache memory usage.
    • Fixed tethering via 3g.
    • Boot: removed mad2sd, updated CyanogenMod’s existing script to properly mount /sd-ext drive as ext4 format.
    • Kernel: small fixes, now built using gcc version 4.4.3 (to increase compatibility with existing proprietary kernel modules).
    • Kernel: rebuilt wifi module using original, unmodified source.
  • v1.1 – 13 August 2011:
    • Known issue (not directly related to this release): If you cannot access Google Apps after flashing, you are using a buggy version of ClockworkMod v0.4. Please re-download CWM v0.4 from the latest link in the other topic, reflash CWM, reboot into the fixed CWM, and then flash Google Apps once again.
    • Known issue: If you experience the sleep of death issue, make sure you upgrade to hotfix 1.
    • Data wipe?: recommended if you have problems.
    • Hotfix 2 [14 August 2011]: More fixes to FM routing code (thanks to OuNao); fixed compass direction issues (x2); upgraded brcm_patchram_plus tool; changed hciattach service parameters. Bluetooth initialization should no longer fail, and Bluetooth SCO operation may be fixed/improved – please test.
    • Hotfix 1 [13 August 2011]: Increased minimum scaling frequency to 245Mhz. This is necessary to fix sleep of death on some (but not all) phones. If you know that 122Mhz is stable for your device, you can manually set the lower frequency.
    • Framework: updated CyanogenMod code (more Gingerbread 2.3.5 code merges).
    • Framework: increased default camera exposure level.
    • Framework: more updates to libaudio FM routing (still needs more work).
    • Kernel: fixed compass direction issues.
  • v1.0 – 2 August 2011:
    • Known issue: wifi sleep of death bug is present. Fixed in hotfix1+.
    • Hotfix 1: Boot: reduced default minimum frequency to 122Mhz. Kernel: improvements to CPU schedulers, KGSL driver, disabled CGROUPS (it causes slowdown), improved wifi kernel driver. Framework: changed camcorder recording format (playback now works), fixed wifi sleep of death issue.
    • Data wipe?: recommended if you have problems (since it is a new Gingerbread point release).
    • Framework: updated to Gingerbread 2.3.5 code release.
    • Framework: improved camera quality – should now match or exceed Froyo’s camera/video quality.
    • Framework: small fixes to libaudio, and beginning of work to support FM radio (not ready yet).
    • Boot: increased disk readahead cache; various bugfixes & improvements to mad2sd script & init.rc script – reduces startup delay and fixes bootloop problems for some users with slow SD cards.
    • Kernel: reduced sensor wakeups by 50% (less wakeups = less battery used); fixed disk-related stability & SD card lag problems; now using zram.ko module (newer compcache version); improved wifi reliability; improved overclock stability (kernel will now initialize at safe 604Mhz frequency); increased default minimum frequency to 245Mhz to avoid lag when resuming from idle; small improvements to smartass scheduler; re-enabled CGROUPS support; enabled CGROUPS support in BFQ scheduler.
    • Summary: new Gingerbread release, more stable kernel, faster SD card speed, better camera quality, improved battery life.
  • v0.9 – 15 July 2011:
    • Data wipe?: not needed.
    • Known issue: it’s very fast… 🙂
    • Known issue (really): cannot hang up calls. Fixed with hotfix 1.
    • Hotfix6 [20 July]: Framework: reverted to wpa_supplicant v5 with patch for reconnect issue. Wifi is now 100% stable, including reconnect from idle :).
    • Hotfix5 [20 July]: Boot: increased mad2sd reliability. Framework: now using patched wpa_supplicant_6. This appears to almost completely fix wifi reconnection, but the reconnection may not happen unless you open the Settings -> Wifi menu for some reason. I’ll continue troubleshooting, but in the meantime this is a big improvement.
    • Hotfix4 [19 July]: Boot: fixed problem with mad2sd script (some people could not activate); fixed incorrect ramzswap module loading. Kernel: really add smartass 122Mhz sound fix (please re-test again). Wifi: backported some patches from 2.6.35 kernel to increase stability of ar6000 module. Framework: replaced Samsung wpa_supplicant with Cyanogen version (it was causing Google account sign-in problems, and it’s just Samsung’s dhcpcd that’s required to improve wifi stability).
    • Hotfix3 [19 July]: Boot: improved init/mad2sd scripts to prevent bootloop problem for some users; ensure /system is mounted read-only. Framework: replaced wpa_supplicant & dhcpcd binaries with Samsung versions – fixes all problems with slow/unreliable wifi (re)connection.
    • Hotfix2b [19 July]: Framework: increased Dalvik VM heapsize to 24mb (can improve game performance and fix rare force-close problems with Market and other apps). Kernel: smartass scheduler tweak to fix TuneIn Radio distortion during sleep (please set your minimum CPU frequency back to 122Mhz & re-test); moved some kernel modules from ramdisk to /system (reclaims 5mb RAM); disabled loading of RFS modules (reclaims 5mb RAM); fixed lowmemorykiller properties to avoid unnecessary task killing; re-added compcache module. Please make sure you have version “2b”, as the original hotfix2 was buggy.
    • Hotfix1 [16 July]: fixes call hangup bug. We were missing some Samsung RIL files.
    • Kernel: backported 2.6.35 KGSL & DRM drivers.
    • WiFi: now using ar6000.ko built from source; should solve sleep of death, but connecting/reconnecting is still not 100% perfect.
    • Framework: fixed incorrect cellular network signal reporting.
    • Framework: replaced all adreno200 libs with Samsung Ace Gingerbread versions.
    • Framework: removed all graphics workarounds.
    • Updated Cyanogen source.
    • Summary: this release has significantly better graphics performance and more stable wifi.
  • v0.8 – 10 July 2011:
    • Data wipe?: not needed.
    • Known issue: high battery drain and wifi sleep of death issues reported. Please install hotfix2+ to resolve.
    • Hotfix4b [13 July]: Kernel update: added CPU & AHB overclocking support. Maximum selectable frequency is now 768Mhz but I do not recommend using the highest value. WARNING: I am not liable for any damage that you may experience as a result of using the overclock feature.
    • Hotfix3 [11 July]: Kernel updates: added interactive, smartass CPU governors (smartass set as new default); added BFQ IO scheduler (set as new default), added ramzswap (compcache) module, CPU frequency selection fix (CPU frequency settings now selectable in Options -> CyanogenMod -> Performance -> CPU); reduced minimum CPU scaling frequency  to 122Mhz. Framework: added compcache support; enabled compcache by default & using 18% of total memory. Translation: big kernel update that should improve responsiveness & increase battery life.
    • Hotfix2 [11 July]: reverts kernel + ar6000 to known stable versions. Should fix wifi sleep of death issue.
    • Hotfix1 [10 July]: upgrades ar6000.ko module, fixes kernel battery driver – should fix wifi sleep hang and battery drain (battery was not actually draining – the driver was misreporting).
    • New kernel based on Samsung Ace/Mini 2.2.1 source release with better kernel config. This fixes all reboot hangs, and should also fix wifi sleep issues, give better stability & performance, and may help reduce battery drain (needs testing).
    • Upgraded all proprietary kernel modules (e.g. AR6000 wifi, NAND fsr & fsr_stl)  to latest versions.
    • Small USB tethering fix – it will refuse to allow tethering if you have UMS enabled.
    • Improved Bluetooth boot-time initialization (should help prevent cases where Bluetooth refuses to turn on).
    • Updated Cyanogen source & other small fixes.
  • v0.7 – 2 July 2011:
    • Data wipe?: yes, you absolutely must data-wipe if upgrading from v0.6 or earlier.
    • Hotfix5 [5 July]: Kernel update: ported 2.6.35 USB switch code, disabled control groups, second fix for I5508 MSM legacy touchscreen support. Framework: fixed UsbController.cpp code. This release should really fix I5508 support (but I need testers to confirm), and also fixes USB tethering for all.
    • Hotfix4 [4 July]: Kernel update: adds support for Europa I5508, adds CIFS kernel module (if people need to use Samba/sharing apps).
    • Hotfix3 [4 July]: fixes audio/call instability & framework restarts related to Bluetooth & the FM radio.
    • Hotfix2 [3 July]: fixes sensors, codecs (Youtube now works).
    • Hotfix1 [2 July]: fixes WiFi sleep issue.
    • Now packaged for ClockworkMod.
    • Updated Cyanogen source.
    • Fixed camcorder.
    • Reverted to older Samsung kernel (until new kernel is stable enough for use).

Source Code:

  • Kernel:
  • Device:
    Further Information

    Not working / TODO:

    • ROM Manager – our phone’s version of ClockworkMod is not supported yet.
    • SIM Toolkit (menus will display, but options/commands do not process properly when selected).
    • Some battery drains, especially if you use 3G data.

    Not working / WONTFIX:

    • Kies. Don’t expect Kies to support any custom ROMS.
    • Service/GPS menus. Cyanogen does not support these hidden menus.

    Before you ask…
    I have no interest or intention to further “mod” the ROM with any kind of hacks or customizations (like custom apps, themes, Swype, etc.). My only aim is to have a 100% stable port of Cyanogen code. Any such requests will be ignored.

    Reporting bugs
    You must follow these instructions exactly, or I will ignore your requests. Provide the following information:

    • The version of the ROM you are using (to confirm that you have the latest release)
    • Report any customizations you have made to the ROM (themes, system apps, etc.)
    • Describe the problem clearly, including steps on how I can reproduce the issue.
    • Provide a logcat from your system taken just after the issue has occurred. To take a logcat, you enter this command from your PC: adb shell logcat -d >c:\logcat.txt. Copy and paste this log to, and provide the link.
    • If I ask you to re-test the issue after a data-wipe, do the following: reboot into ClockworkMod, perform a full backup, then data-wipe, reboot and retest the issue, giving a new log if necessary. You can then reboot into ClockworkMod and restore your data backup.

    From v1.2, I have decided to remove the mad2sd script. This means that a) the ROM is now “clean” (which is good for getting included in CyanogenMod’s default repository), and b) you are completely free to use another app2sd implementation without any problem Tip: to turn off mad2sd, run “su” and then “mad2sd off” in the terminal before upgrading to v1.2.

    I highly recommend S2E (simple2ext) as an alternative to mad2sd (if you are using v1.4 or later of my ROM).

    Simple2Ext (S2E) Quick Guide:
    Please make sure that you use ROM version v1.4 or later, as it includes a patch to prevent S2E’s aggressive filesystem tweaks that cause corruption.

    • [Optional, but highly recommended]. To make absolutely sure that your /sd-ext partition is not corrupt, manually format the /sd-ext partition:
    Code: [Select]
    adb shell mke2fs /dev/block/mmcblk0p2
    • Install S2E from Market.
    • Open S2E, click the Menu key -> Settings. Enable “Mount as ext4” (mandatory). Do not select “Set read buffer”, as the default value of 2MB will cause extreme lag on our phone. My port already sets the buffer to a more conservative value of 256KB, which I have found works best.
    • Close the app and reboot.
    • Open S2E again, select the folders you wish to place on the SD card. I recommend that you don’t move the “Download cache” folder, as it makes more sense to leave it in internal storage (/data).
    • Changes will take effect on the next reboot. Note: your dalvik cache will be rebuilt, so this reboot will be slower than usual.

I don’t take credit for any of these cool stuff ,other than copy pasting it .

5 responses to “Samsung Galaxy 5 (i5500) gets CM7.1((based on Android Gingerbread 2.3.7))

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: