[RECOVERY][CWM][2013-12-20][SS] Stock kernel with CWM 6.0.4.5 [Unlocked BL]

Search This thread

alvinhochun

Senior Member
Oct 3, 2010
175
202
I just built a new CWM recovery from source and have it combined with stock kernel and ramdisk.

This image contains the kernel from Build 15.1.C.2.8 (dumped from C1905), the stock ramdisk, the CWM ramdisk and a custom root to select which system to boot.

Please backup your data before proceeding! I am not responsible for any data loss!

I've tried on my own Xperia M (C1905) and it can boot, but I haven't tried to restore a backup. You are warned! Not tested on C1904, but it should work though I cannot guarantee anything.

** You need unlocked bootloader to use this. Before you unlock the bootloader, you need to backup all your data and remove the SD card because everything will be deleted! **

Known problems:
  • If you mount /data, you cannot unmount it from the interface (the CWM code is designed to not allow unmounting it). You can, though, execute `adb shell umount /data` to unmount it if you really do need to.
  • (Only applicable to CWM 6.0.3.7) There is no "mount USB storage" (connect SD card to computer) function.

Install instructions (skip to step 5 if you already unlocked bootloader, rooted and installed busybox):
  1. Install the latest Android SDK platform tools on your computer.
  2. Root: http://forum.xda-developers.com/showthread.php?t=2457174
  3. Backup TA partition: http://forum.xda-developers.com/showthread.php?t=2292598 (do this if you want to relock in the far future)
  4. Unlock bootloader: All data will be lost! SD card will be formatted!
  5. Download the attached zip and extract the boot image.
  6. Power off your Xperia M, hold the Volume Up button and connect USB cable, release button when blue LED is on.
  7. Execute:
    Code:
    fastboot flash boot combined-xperia-m-boot.img
    Wait for it to show finished.
  8. Disconnect USB cable.

Boot instructions:
  1. Power off your Xperia M.
  2. Power on by holding the power button. Your Xperia M should vibrate once like normal boot
  3. Note that when the LED turns pink, press Volume Up once (no need to hold down).
  4. LED should then turn cyan
  5. You have booted into CWM!

Report bugs here!

Thanks:
  • CyanogenMod and ClockworkMod for obvious reasons[/url]

Also: Pack any Xperia M kernel with CWM
Check this tool: http://forum.xda-developers.com/showthread.php?t=2481864


Technical information:
The Xperia M doesn't have a recovery partition, therefore the recovery is packed into a boot image. There is an init script which checks whether it should boot into recovery, and if it should, the script will extract the recovery ramdisk and boot it. Otherwise it will extract the boot ramdisk and boot Android normally. The packer linked above is designed to pack the boot image.

Changelog:
2013-12-20
  • Updated to CWM 6.0.4.5
  • For whatever reason, mounting sdcard as USB storage now works.
  • Busybox mount now works like typical CWM
  • The kernel has kexec-hardboot support
  • Brightness is tuned down so that it won't hurt your eyes that much in bed
2013-11-15
  • Updated kernel and ramdisk with the one from firmware 15.1.C.2.8
2013-10-19
  • Compiled with cm-10.2 sources, CWM 6.0.4.4
  • Major changes in partition table format to allow CWM 6.0.4.4
  • Allow mounting external USB storage (using OTG cable) so backup can be stored on USB flash drives
2013-10-15b
  • Fixed screen shift issue!
2013-10-15
  • Use the zimage of the stock kernel instead of the uncompressed kernel
2013-10-14
  • Updates init script
  • Recompiled recovery to use device-specific key mapping (camera focus key = back)

Source code:
Device files: https://github.com/alvinhochun/cyanogenmod_device_sony_nicki (Note: CWM 6.0.4.4 is built using the `cm-10.2` branch)
cm-10.1 branch only tested on cm-10.1, cm-10.2 branch only tested on cm-10.2
Also, I don't update the cm-10.1 branch anymore...
Prebuilt kernel is extracted from stock ROM.
Kernel source: https://github.com/alvinhochun/sony-xperia-m-kernel
To build, use `lunch cm_nicki-eng` and then `make combinedimage`. Boot image is output as `combined.img`.
If you want to use your custom kernel and ramdisk, simply replace `kernel` and `stock-boot-ramdisk.gz`.

Extra notes:
***: as obvious as the filename
combined-xperia-m-boot-2013-10-19.img.zip is the newer CWM 6.0.4.4 version, with kernel/ramdisk from 15.1.C.2.8.
combined-xperia-m-boot-2013-10-15b.img.zip is the older CWM 6.0.3.7 version.
 

Attachments

  • combined-xperia-m-boot-2013-10-19.img.zip
    9.1 MB · Views: 54,636
  • combined-xperia-m-boot-2013-10-15b.img.zip
    8.8 MB · Views: 3,232
  • xperia-m-15.1.C.2.8-cwm6.0.4.4.img.zip
    9.1 MB · Views: 5,848
  • xperia-m-15.1.C.2.8_cwm6.0.4.5_2013-12-20.img.zip
    9 MB · Views: 9,122
Last edited:

xzn

Senior Member
Oct 3, 2012
447
22
Wonogiri
i find problem when backing-up data
when the backup almost done, error notif suddenly appear

"error while making backup image of /data"
 

alvinhochun

Senior Member
Oct 3, 2010
175
202
i find problem when backing-up data
when the backup almost done, error notif suddenly appear

"error while making backup image of /data"

Did you choose to backup to sdcard or external sd? Only external sd will work. "sdcard" will not work because it is actually the internal storage.
 
Last edited:
  • Like
Reactions: xzn

AyamPushUp

Member
Feb 4, 2012
46
13
Jakarta
I noticed some issue with recovery, when I enter recovery from Advance Power Menu, I can't reboot onto system anymore, I tried anyways, reboot system, power off, reboot to bootloader (on this way device entering fastboot mode). This issue dissapear when I wipe cache & dalvik-cache.
for notice, i use recovery that packed on ElixER1.0 kernel, not tried Elixer1.3 yet because there is some bug on wi-fi.
Sorry for my bad English :rolleyes:
 

alvinhochun

Senior Member
Oct 3, 2010
175
202
I noticed some issue with recovery, when I enter recovery from Advance Power Menu, I can't reboot onto system anymore, I tried anyways, reboot system, power off, reboot to bootloader (on this way device entering fastboot mode). This issue dissapear when I wipe cache & dalvik-cache.
for notice, i use recovery that packed on ElixER1.0 kernel, not tried Elixer1.3 yet because there is some bug on wi-fi.
Sorry for my bad English :rolleyes:

Yeah, if whatever tool creates `/cache/recovery/boot` to trigger enter recovery, for once the script won't work because it didn't remove that file afterwards.

But I remember I've already fixed it in a previous version. Are you using the latest version?

Sorry about that. I was constantly fixing bugs and had released a few version of the CWM files. Even I myself may have messed up some files, so if you notice that the problem is still there in the newest version, please inform me of that.
 
Last edited:

AyamPushUp

Member
Feb 4, 2012
46
13
Jakarta
Yeah, if whatever tool creates `/cache/recovery/boot` to trigger enter recovery, for once the script won't work because it didn't remove that file afterwards.

But I remember I've already fixed it in a previous version. Are you using the latest version?

Sorry about that. I was constantly fixing bugs and had released a few version of the CWM files. Even I myself may have messed up some files, so if you notice that the problem is still there in the newest version, please inform me of that.

I use that I got from ElixER1.0 kernel package, so I didn't try newest version ( on ElixER 1.3 I tought), because I backward to ElixER 1.0

Let wait for icoolguy1995 fix the kernel and I will tell you :)
 

alvinhochun

Senior Member
Oct 3, 2010
175
202
I've compiled a CWM 6.0.4.4. This version supports mounting external USB storage connected via an OTG cable, so if you don't have a big SD card you can use an USB flash drive to perform backup.

But still, I haven't tested the restore function of this CWM yet, so if someone tried it please report back.
 
  • Like
Reactions: 7lucky7

ramprasad5394

Senior Member
Aug 10, 2012
274
97
Chennai
tried the new one. looks clean :) tried taking a backup, worked perfectly. dint try restoring yet.
y the storage/sdcard0 storage/sdcard1instead of internal and external storage?
 

alvinhochun

Senior Member
Oct 3, 2010
175
202
tried the new one. looks clean :) tried taking a backup, worked perfectly. dint try restoring yet.
y the storage/sdcard0 storage/sdcard1instead of internal and external storage?

The internal storage is `sdcard0` and the external is `sdcard1`, while the USB storage is `usbstor0`. I am not sure how I am supposed to do that, I just referred to some other devices and that is what it seems to be, although none of the devices I've looked into actually has the internal storage.

I dug into the code a little bit and it seems that what I did should be fine, so I did it this way.

It may require some modifications before it can be used with CyanogenMod 10.2, but it currently works with CWM alone. It works anyway so I am going to stick with it at the moment.
 

aweosomeabhijeet

Senior Member
Oct 4, 2012
886
972
25
Jaipur
next2tech.net
The internal storage is `sdcard0` and the external is `sdcard1`, while the USB storage is `usbstor0`. I am not sure how I am supposed to do that, I just referred to some other devices and that is what it seems to be, although none of the devices I've looked into actually has the internal storage.

I dug into the code a little bit and it seems that what I did should be fine, so I did it this way.

It may require some modifications before it can be used with CyanogenMod 10.2, but it currently works with CWM alone. It works anyway so I am going to stick with it at the moment.
Tried restoring nandroid, worked perfectly :D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    I just built a new CWM recovery from source and have it combined with stock kernel and ramdisk.

    This image contains the kernel from Build 15.1.C.2.8 (dumped from C1905), the stock ramdisk, the CWM ramdisk and a custom root to select which system to boot.

    Please backup your data before proceeding! I am not responsible for any data loss!

    I've tried on my own Xperia M (C1905) and it can boot, but I haven't tried to restore a backup. You are warned! Not tested on C1904, but it should work though I cannot guarantee anything.

    ** You need unlocked bootloader to use this. Before you unlock the bootloader, you need to backup all your data and remove the SD card because everything will be deleted! **

    Known problems:
    • If you mount /data, you cannot unmount it from the interface (the CWM code is designed to not allow unmounting it). You can, though, execute `adb shell umount /data` to unmount it if you really do need to.
    • (Only applicable to CWM 6.0.3.7) There is no "mount USB storage" (connect SD card to computer) function.

    Install instructions (skip to step 5 if you already unlocked bootloader, rooted and installed busybox):
    1. Install the latest Android SDK platform tools on your computer.
    2. Root: http://forum.xda-developers.com/showthread.php?t=2457174
    3. Backup TA partition: http://forum.xda-developers.com/showthread.php?t=2292598 (do this if you want to relock in the far future)
    4. Unlock bootloader: All data will be lost! SD card will be formatted!
    5. Download the attached zip and extract the boot image.
    6. Power off your Xperia M, hold the Volume Up button and connect USB cable, release button when blue LED is on.
    7. Execute:
      Code:
      fastboot flash boot combined-xperia-m-boot.img
      Wait for it to show finished.
    8. Disconnect USB cable.

    Boot instructions:
    1. Power off your Xperia M.
    2. Power on by holding the power button. Your Xperia M should vibrate once like normal boot
    3. Note that when the LED turns pink, press Volume Up once (no need to hold down).
    4. LED should then turn cyan
    5. You have booted into CWM!

    Report bugs here!

    Thanks:
    • CyanogenMod and ClockworkMod for obvious reasons[/url]

    Also: Pack any Xperia M kernel with CWM
    Check this tool: http://forum.xda-developers.com/showthread.php?t=2481864


    Technical information:
    The Xperia M doesn't have a recovery partition, therefore the recovery is packed into a boot image. There is an init script which checks whether it should boot into recovery, and if it should, the script will extract the recovery ramdisk and boot it. Otherwise it will extract the boot ramdisk and boot Android normally. The packer linked above is designed to pack the boot image.

    Changelog:
    2013-12-20
    • Updated to CWM 6.0.4.5
    • For whatever reason, mounting sdcard as USB storage now works.
    • Busybox mount now works like typical CWM
    • The kernel has kexec-hardboot support
    • Brightness is tuned down so that it won't hurt your eyes that much in bed
    2013-11-15
    • Updated kernel and ramdisk with the one from firmware 15.1.C.2.8
    2013-10-19
    • Compiled with cm-10.2 sources, CWM 6.0.4.4
    • Major changes in partition table format to allow CWM 6.0.4.4
    • Allow mounting external USB storage (using OTG cable) so backup can be stored on USB flash drives
    2013-10-15b
    • Fixed screen shift issue!
    2013-10-15
    • Use the zimage of the stock kernel instead of the uncompressed kernel
    2013-10-14
    • Updates init script
    • Recompiled recovery to use device-specific key mapping (camera focus key = back)

    Source code:
    Device files: https://github.com/alvinhochun/cyanogenmod_device_sony_nicki (Note: CWM 6.0.4.4 is built using the `cm-10.2` branch)
    cm-10.1 branch only tested on cm-10.1, cm-10.2 branch only tested on cm-10.2
    Also, I don't update the cm-10.1 branch anymore...
    Prebuilt kernel is extracted from stock ROM.
    Kernel source: https://github.com/alvinhochun/sony-xperia-m-kernel
    To build, use `lunch cm_nicki-eng` and then `make combinedimage`. Boot image is output as `combined.img`.
    If you want to use your custom kernel and ramdisk, simply replace `kernel` and `stock-boot-ramdisk.gz`.

    Extra notes:
    ***: as obvious as the filename
    combined-xperia-m-boot-2013-10-19.img.zip is the newer CWM 6.0.4.4 version, with kernel/ramdisk from 15.1.C.2.8.
    combined-xperia-m-boot-2013-10-15b.img.zip is the older CWM 6.0.3.7 version.
    3
    I've fixed the screen shift issue! Please flash the new version!
    2
    I've compiled a new version of CWM (6.0.4.5) and fixed mounting sd card as USB storage.
    This time the kernel is based on stock kernel with minor tweaks as well as added kexec-hardboot support.
    2
    tried the new one. looks clean :) tried taking a backup, worked perfectly. dint try restoring yet.
    y the storage/sdcard0 storage/sdcard1instead of internal and external storage?

    The internal storage is `sdcard0` and the external is `sdcard1`, while the USB storage is `usbstor0`. I am not sure how I am supposed to do that, I just referred to some other devices and that is what it seems to be, although none of the devices I've looked into actually has the internal storage.

    I dug into the code a little bit and it seems that what I did should be fine, so I did it this way.

    It may require some modifications before it can be used with CyanogenMod 10.2, but it currently works with CWM alone. It works anyway so I am going to stick with it at the moment.
    2
    The internal storage is `sdcard0` and the external is `sdcard1`, while the USB storage is `usbstor0`. I am not sure how I am supposed to do that, I just referred to some other devices and that is what it seems to be, although none of the devices I've looked into actually has the internal storage.

    I dug into the code a little bit and it seems that what I did should be fine, so I did it this way.

    It may require some modifications before it can be used with CyanogenMod 10.2, but it currently works with CWM alone. It works anyway so I am going to stick with it at the moment.
    Tried restoring nandroid, worked perfectly :D
Our Apps
Get our official app!
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