Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,920 Members 42,243 Now Online
XDA Developers Android and Mobile Development Forum

Preparing to install CyanogenMod 11 on a Xperia SP using a Linux desktop

Tip us?
 
OldLodgeSkins
Old
(Last edited by OldLodgeSkins; 10th July 2014 at 05:12 PM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jul 2014
Question Preparing to install CyanogenMod 11 on a Xperia SP using a Linux desktop

Hi all,

I have received a brand new Xperia SP just a few days ago and I'm getting ready to install CyanogenMod 11. I actually chose this model specifically because there is a version of CM 11 with a lot of users.

Before getting my hands dirty, I am gathering all the documentation and info I can about it, and I'd like a confirmation I'm not forgetting anything or about to do anything wrong... This seems more complicated than what I did a year ago on my Galaxy Ace LOL!

For the record I'll be using an OpenSUSE Linux desktop. No windows here. So I guess this can also be used as a roadmap for other Linux users.

So my steps would be...

1. Get my IMEI number by typing #06# on the phone's keyboard then use it to get the unlocking code from http://unlockbootloader.sonyericsson.com/instructions
2. Download the latest ROM for "Huashan" from http://fxpblog.co/cyanogenmod/cyanogenmod-11/ - or should I take the one from http://download.cyanogenmod.org/?device=huashan ?
3. Extract boot.img from it, put it on the external SD card. Also put the whole zip there.
4. Place the phone in USB debugging mode by turning it off, then holding the up volume button then plugging in the mini-usb cable. It should flash blue (already tested).
5. Root the device using http://forum.xda-developers.com/show....php?t=2327472 - my version (12.1.A.0.266) is more recent than the one this was tested with (12.0.A.1.284) I hope this still works... As I understand rooting would be required only to backup the TA partition, correct?
6. Backup the TA partition using Flashtool (http://forum.xda-developers.com/show...x#post46114879) which I got from http://www.flashtool.net/download.php - note to anyone attempting this: you will need Java 1.8 (I originally had Java 1.7 and Flashtool wouldn't start). Also, a specific Udev rule is required, see the "installation" page on Flashtool's website.
7. Install the Android SDK in order to have the "fastboot" tool.
8. Unlock the bootloader by running in a console: fastboot -i 0x0fce oem unlock 0xKEY (where KEY is the key obtained at #1).
9. In a console run fastboot -i 0xfce flash boot boot.img and then fastboot -i 0xfce reboot
10. While rebooting, press the volume buttons a few times to start in recovery mode
11. Once in CWM, do wipe data / factory reset and then install zip from card
12. Reboot

From there I should only have to install the Gapps from http://forum.xda-developers.com/show....php?t=2397942 and I should be good to go...

Did I forget anything?

Thanks.

Seb.
 
OldLodgeSkins
Old
(Last edited by OldLodgeSkins; 10th July 2014 at 07:31 PM.) Reason: wrong url
#2  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jul 2014
The method I quoted above for rooting isn't going to work on my device... I found that information at the end of the thread I referenced.
This should work theunlockr.com/2014/03/04/root-sony-xperia-sp-12-1-0-266/ but requires an unlocked bootloader which means losing the TA partition as I understand... Correct?
This would mean there is no way to backup the TA partition on that device...

Edit: I think I got it... From http://forum.xda-developers.com/show...52&postcount=8 - basically install an older version first using Flashtool - this shouldn't require rooting or unlocking the bootloader so the TA partition should be preserved. Root it with Doomlord's method. Backup TA with Flashtool.
Am I correct?
 
RockitOut11
Old
(Last edited by RockitOut11; 16th July 2014 at 10:05 PM.)
#3  
RockitOut11's Avatar
Senior Member
Thanks Meter 141
Posts: 554
Join Date: Dec 2010
I am in the same situation as you. But I am in the latest firmware (.205) and so I used Towelroot for obtaining root and now I am going to use flashtool to backup my ta (I think that option it's integrated in the flash tool?). Then unlock bl and flash the cm nightly for huashan. But the question I have is, what baseband should I have for the cm nighties? Also, are they compatible with the C5303 model?

Hope we can both find our answers!

Sent from my C5303 using XDA Free mobile app


Edit: So far I backed up my TA partition, unlocked bootloader (which did a factory reset, so be aware when you do it! i backed up everything and so should you), now I'm updating and installing some apps to make sure I can create a CWM Backup that is pretty decent, soon I will flash the Kernel from the Cyanogenmod nightlies. So far I did pretty much like you are saying here, except that I rooted with much less hassle by using Towelroot. Btw if you want to install Cyanogenmod, dont install the Nightly from 16/07, that one is bugged and causing systemui FC, the bug is already detected and fixed for the next nightly, install the previous one and then install the one from 17/07

Edit: I am installing busybox now so I can make an Online Nandroid backup, this way I will have the stock rom fully backed up, including the correct kernel, so I can later revert back to a fully functional rom just from CWM Recovery. Then I will flash the CM kernel, boot it and flash the CM rom! Progress is going smootly so far

Edit: So far so good, installed the CM kernel, it doesn't show up the Online Nandroid backup I did tho, and I even moved it to the place it should be... I have to figure that out after, I backed up that nandroid to my pc too just in case, and I am creating a nandroid backup inside CWM, even tho it doesn't have the stock kernel in this backup, just in case there is a problem with the backup I did with Online Nandroid, at least I have the full system backed up and just need to pick a .ftf and install the .1.205 kernel only.. I am almost done with this nandroid will install the rom just after!

Edit: Process went very smooth, already booted on CM, everything is fine, I just forgot to install Gapps but it's okay I install later.

Edit: CM 11 is so much more smoother than Stock 4.3... You wont even believe how faster it is. The only drawback I got was the sound quality from the rear speaker, is not as good, still is decent (still better than my Xperia U, LOL)

Edit: Not sure about this tho but I think the Wifi is much more stable, I sometimes got randomly disconnected from my Wifi and so far it didnt disconnected on CM11!

Dude, just go on with it, root the phone, backup Trim Area (TA), unlock and flash CM11! You will like! Also, I saw FXP is working on Firefox OS for our device, seems like we will get another thing to play arround
Xperia U | BL Unlock allowed = NO
Xperia SP | BL Unlock allowed = YES
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes