Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Sony Xperia GO property root for 6.0.B.3.184 + CWM recovery v5.5.0.4

OP munjeni

15th September 2012, 04:08 PM   |  #1  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,745
 
5,343 posts
Join Date:Joined: Jun 2011
Hallo, I found that every custom boot image for Xperia GO is not property packed, have wrong kernel base and wrong initrd base address and cause big battery drain so I generated proper boot image with right base adress and with included all 3 files inside (kernel, ramdisk and elf.3) like stock, unsecured and in SIN format + my version of the CWM recovery! Here is tutorial how to propertly root your Xperia Go!

Before you going to install this "pack" you need to unlock your bootloader!
After unlocking bootloader procedure for installing boot image and root tools is:

install boot image:
  • fastboot flash boot kernel.sin

install root tools:
  • adb remount
  • adb push su /system/xbin/
  • adb push busybox /system/xbin/
  • adb install Superuser.apk
  • adb shell
  • cd /system/xbin
  • chmod 6755 su
  • chmod 6755 busybox
  • /system/xbin/busybox --install -s /system/xbin/

Than you are done! Just last step you need to do:
  • establish internet connection on your phone
  • go to aplications
  • run superuser
  • under superuser menu click to "tap to ckeck for updates" (see picture http://img52.imageshack.us/img52/209...1209151603.png) and update your super user... make sure to give and "remember" permision for superuser app!

Done! Enjoy!

Kernel source:
  • I have no source! I used prebuilt stock kernel from firmware 6.0.B.3.184CE

Tip and tricks for my CWM version:I will integrate tool in sony menu for "one click" skins modification soon! Let me know if you want these option!

Credits:
  • full credits to author of the Clockworkmod Recovery
  • LeTama for great sin2raw tool
  • every other who helped and tested our recovery

Please read this Simple diference between Gingerbread and ICS boot+CWM

Download V6:
Attached Files
File Type: rar root_tools.rar - [Click for QR Code] (1.51 MB, 6418 views)
File Type: zip v5_bootimg_6.0.B.3.184_+_Clockworkmod_recovery.zip - [Click for QR Code] (7.82 MB, 7028 views)
Last edited by munjeni; 16th November 2012 at 10:39 PM.
The Following 21 Users Say Thank You to munjeni For This Useful Post: [ View ]
21st September 2012, 01:16 PM   |  #2  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,745
 
5,343 posts
Join Date:Joined: Jun 2011
New version for 6.0.B.3.184 is out.. Clockwork Recovery included!
Play with recovery on your own risk... I am not responsible if you lose your data!



21.Sep.2012:
Changelog:
  • added my own modified version of the Clockwork Recovery
Recovery:
  • adb fixed - you need to restart adb trought menu and wait 30 sec until adb is reinited
  • battery indicator (icon) in real time
  • leds indicator in real time
  • button backlight enabled
  • you can mount internal sd card
  • you can mount external sd card
  • you can backup/restore from/to internal sd card
  • you can backup/restore from/to external sd card

23.Sep.2012:
Changelog:
Recovery:
  • new menu and tool (Big thanks Letama for great tool!!!) -> my modification to his tool is: backported to arm, backported to recovery, created easy sin to tar packer. This recovery tool is for easilly "in one click" repacking upcoming ICS firmwares! Just place your system.sin into internal sd card, reboot to recovery, under menu click to sony tools, and you will get your system.sin unpacked to system.tar... enjoy!
  • removed adb fix, now adbd is auto enabled on boot... (you just need to wait ~30 seconds until adb and mass storage mode is inited!)

27.Oct.2012:
Changelog:
Recovery V2:
  • all features backported from my ICS bassed CWM but only not kernel and not touch, all other features is the same like in ICS CWM!

30.Oct.2012:
Changelog:
Recovery V3:
  • forgot to include patch for assert board detection in updater-script, it's fixed now!

31.Oct.2012:
Changelog:
Recovery V5 (final version, no supporting anymore, sorry):
  • init.d support (you need to create init.d folder in /system/etc !)
Please do not create mirored links!
Last edited by munjeni; 3rd November 2012 at 12:05 AM.
The Following 4 Users Say Thank You to munjeni For This Useful Post: [ View ]
21st September 2012, 04:25 PM   |  #3  
Member
Thanks Meter: 13
 
91 posts
Join Date:Joined: Nov 2009
Thank you. can you tell me what rom work whit go whit this? Are you tryed Cyanogenmod or any other mod ?
21st September 2012, 06:29 PM   |  #4  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,745
 
5,343 posts
Join Date:Joined: Jun 2011
Quote:
Originally Posted by kala123

Thank you. can you tell me what rom work whit go whit this? Are you tryed Cyanogenmod or any other mod ?

This is for ST27i_6.0.B.3.184_CE.ftf ...other rooms I not tried! Curently I waiting oficial ICS from Sony so than I will play with CM source ... I spent whole day to get this CWM full working so enjoy! If something missing please let me know! Comming features soon!
Last edited by munjeni; 21st September 2012 at 06:34 PM.
The Following 2 Users Say Thank You to munjeni For This Useful Post: [ View ]
23rd September 2012, 08:50 AM   |  #5  
qwertzboy's Avatar
Senior Member
Thanks Meter: 30
 
147 posts
Join Date:Joined: Feb 2011
More
Thanks. The GO should get an own forum here.
Sola, p, u, got but the sxgo not.
The Following User Says Thank You to qwertzboy For This Useful Post: [ View ]
23rd September 2012, 11:56 AM   |  #6  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,745
 
5,343 posts
Join Date:Joined: Jun 2011
New recovery is out...see changelog in seccond post! You can easilly unpack an ICS system.sin (encrypted ext4 image) and convert it to tar archive + log file about files,folders,uids,gids permissions that was in these image, so you can easilly create recovery compatible zip for flashing trought recovery. Enjoy!

P.S. Moderators, please give us dedicated forum space for Xperia Go like all other 2012 Xperia models... thank you!!!
Last edited by munjeni; 23rd September 2012 at 12:04 PM.
The Following User Says Thank You to munjeni For This Useful Post: [ View ]
23rd September 2012, 01:51 PM   |  #7  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,745
 
5,343 posts
Join Date:Joined: Jun 2011
What you think about this CM9 sources?
https://github.com/CyanogenMod/sony-kernel-u8500
https://github.com/CyanogenMod/andro...ice_sony_nypon
https://github.com/CyanogenMod/andro...ntblanc-common

...I think these sources will be good start point for our Xperia Go ?
24th September 2012, 10:12 AM   |  #8  
Senior Member
Thanks Meter: 38
 
100 posts
Join Date:Joined: Oct 2008
No battery improvement
Quote:
Originally Posted by munjeni

Hallo, I found that every custom boot image for Xperia GO is not property packed, have wrong defined memory offset for unpacking to memory and cause big battery drain

Hello munjeni,

I have installed this kernel and monitored its battery consumption, but I'm afraid I cannot confirm your positive findings. Battery drain* is exactly as with other kernels, for instance Krachlatte's one here (which also includes additional perks like more governors and iptables support):
http://forum.xda-developers.com/show....php?t=1839865

So the battery drain you've experienced with other kernels might be unrelated to any wrongly defined memory offsets.

* This means that after disabling a lot of Sony and Google bloatware, battery life is satisfactory (around 3 to 4 days with very light use). The only flaky component seems to be WiFi - when it is on, battery consumption is inconsistent (which is OK so far and known to happen). Trouble is that even after disabling WiFi, its processes sometimes (not always) seem to remain active, generating lots of kernel wakelocks and eating into battery life. This behaviour unfortunately persists with this kernel too.

Nonetheless it's a good thing if you've managed to correct an error that has been made by devs who provided previous kernels. Thanks for your work!

Lebenita
24th September 2012, 03:47 PM   |  #9  
munjeni's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 16,745
 
5,343 posts
Join Date:Joined: Jun 2011
Ok, but I tried two versions but all had that battery drain so I analysed stock kernel by disasembling him and found these things was wrong in custom boot images... So right command for generating boot image is:
python mkelf.py -o kernel.elf zImage@0x00008000 initrd.gz@0x01000000,ramdisk

than you need to hex edit generated boot image:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  7F 45 4C 46 01 01 01 61 00 00 00 00 00 00 00 00  .ELF...a........
00000010  02 00 28 00 01 00 00 00 00 80 00 00 34 00 00 00  ..(......€..4...
00000020  00 00 00 00 00 00 00 00 34 00 20 00 02 00 00 00  ........4. .....
0x02 mean 2 parts so to include third part (elf.3) you need to change 0x02 to 0x03

than you need to inject elf.3 by hex editing and implementing these elf.3 between 0x70 and 0x4d0 offset, final kernel.elf looks like:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  7F 45 4C 46 01 01 01 61 00 00 00 00 00 00 00 00  .ELF...a........
00000010  02 00 28 00 01 00 00 00 00 80 00 00 34 00 00 00  ..(......€..4...
00000020  00 00 00 00 00 00 00 00 34 00 20 00 03 00 00 00  ........4. .....
00000030  00 00 00 00 01 00 00 00 00 10 00 00 00 80 00 00  .............€..
00000040  00 80 00 00 D4 D8 3A 00 D4 D8 3A 00 00 00 00 00  .€..Ř:.Ř:.....
00000050  00 00 00 00 01 00 00 00 D4 E8 3A 00 00 00 00 01  ........č:.....
00000060  00 00 00 01 CB 58 23 00 CB 58 23 00 00 00 00 80  ....X#.X#....€
00000070  00 00 00 00 53 49 4E 21 94 00 00 00 00 00 00 00  ....SIN!”.......
00000080  00 00 00 00 30 04 00 00 30 04 00 00 04 00 00 00  ....0...0.......
00000090  04 00 00 00 02 00 00 00 04 2D 01 00 00 00 00 00  .........-......
000000A0  00 00 52 00 00 00 00 00 00 00 94 20 F1 77 14 10  ..R.......” ńw..
000000B0  CF 4B CB EE F8 6C 64 9C F3 CC B3 8D 6C 24 C1 D6  ĎKřldśĚłŤl$
000000C0  6B 6F 68 B2 9B 23 A4 3B CF C1 52 39 00 00 04 C4  koh˛›#;ĎR9...
000000D0  00 49 84 EC 20 D9 C4 BB 73 4F EF C1 32 58 AF 09  .I„ě ŮĻsOď2XŻ.
000000E0  7F 35 E4 A1 3B 5A 24 AA ED 25 0E AD 1C 00 FA D9  .5ˇ;Z$Ş%.*..Ů
000000F0  63 CB 77 9F 09 00 00 03 C8 00 01 02 C1 02 BF 30  cwź....Č....ż0
00000100  82 02 BB 30 82 01 A3 A0 03 02 01 02 02 01 02 30  ‚.0‚.Ł .......0
00000110  0D 06 09 2A 86 48 86 F7 0D 01 01 0B 05 00 30 17  ...*†H†......0.
00000120  31 15 30 13 06 03 55 04 03 14 0C 53 31 5F 52 6F  1.0...U....S1_Ro
00000130  6F 74 5F 33 30 36 35 30 1E 17 0D 31 31 31 31 31  ot_30650...11111
00000140  38 31 33 33 39 33 33 5A 17 0D 33 31 31 31 32 30  8133933Z..311120
00000150  31 33 33 39 33 33 5A 30 10 31 0E 30 0C 06 03 55  133933Z0.1.0...U
00000160  04 03 14 05 53 31 5F 53 57 30 82 01 22 30 0D 06  ....S1_SW0‚."0..
00000170  09 2A 86 48 86 F7 0D 01 01 01 05 00 03 82 01 0F  .*†H†.......‚..
00000180  00 30 82 01 0A 02 82 01 01 00 B4 2A 22 EE 88 E3  .0‚...‚...*".ă
00000190  29 19 99 6E B8 2E 7D F5 5D 79 70 1C 80 1C 0E B7  ).™n.}ő]yp.€..
000001A0  42 45 E8 23 45 9D 66 45 6E 88 50 B6 11 DF 6C 55  BEč#EťfEn.P.lU
000001B0  73 29 F3 E1 32 03 0F F0 92 EE F3 3D 0B 82 5D 51  s)2..đ’=.‚]Q
000001C0  5C 9D 8E 61 35 42 B7 EE FF 5B AB 70 B8 36 1A A9  \ťŽa5B˙[p6.
000001D0  55 42 B8 9C 9B EE CB 33 5D 7F FC BA 3E CA 8D 0B  UBś›3].ş>ĘŤ.
000001E0  A6 60 8D 81 82 B7 53 AD 91 66 5B 70 B7 B0 AE 12  `Ť.‚S*‘f[p.
000001F0  FC A8 EC C1 34 58 7F 23 22 50 57 84 E4 81 C9 A0  ě4X.#"PW„. 
00000200  0B 30 D9 F0 18 73 57 6B AC 64 51 61 DA 2E 55 48  .0Ůđ.sWkdQa.UH
00000210  2C 0F A3 85 28 B1 01 D3 0E 1B DA C6 29 40 77 8A  ,.Ł…(...Ć)@wŠ
00000220  36 0E 50 8F 48 1E F4 3D 73 60 14 52 C7 A6 73 56  6.PŹH.=s`.RǦsV
00000230  78 56 58 E8 2F B0 12 76 20 FD C3 E7 D3 A6 E5 5B  xVXč/.v ĂӦĺ[
00000240  2B 84 1F 9C 9C E1 1D 9F 3A 58 07 BA C2 96 08 97  +„.śś.ź:X.ş–.—
00000250  00 54 76 7F A3 1B AE 33 6A FE BF 58 CC 3A E0 23  .Tv.Ł.3jţżXĚ:ŕ#
00000260  B0 C2 C0 8E 42 D7 AF A5 56 D9 66 23 A4 B1 2B C7  ŔŽBŻĄVŮf#+
00000270  BF 44 FA 91 37 A8 24 09 E8 0F 65 6B 8C 50 DB CC  żD‘7$.č.ekŚPŰĚ
00000280  0F B4 A5 F6 83 DB 5A 26 FF 6F 02 03 01 00 01 A3  .Ą.ŰZ&˙o.....Ł
00000290  19 30 17 30 0A 06 03 55 04 05 04 03 02 01 01 30  .0.0...U.......0
000002A0  09 06 03 55 1D 13 04 02 30 00 30 0D 06 09 2A 86  ...U....0.0...*†
000002B0  48 86 F7 0D 01 01 0B 05 00 03 82 01 01 00 A5 C7  H†.......‚...Ą
000002C0  B1 A5 30 75 EA 27 57 DB 23 55 34 1C E9 1A 50 BD  Ą0uę'WŰ#U4..P˝
000002D0  64 B0 53 9F 86 BC 72 C5 89 9F 5F DD 1A C0 4C ED  dSź†Ľrʼnź_.ŔL
000002E0  81 A7 B3 9C D8 89 F7 0A 7C 26 7E F6 67 8E F1 C0  .łśŘ‰.|&~gŽńŔ
000002F0  E9 A0 63 0E 42 32 F9 C6 FF C2 4B 4C 93 7E 4A 27   c.B2ůĆ˙KL“~J'
00000300  EF 5B CF 22 04 B8 31 28 C5 B7 73 5E 36 BC D0 A3  ď[Ď".1(Ĺs^6ĽĐŁ
00000310  CB 53 C2 D8 88 5B 7F 78 1B E6 B2 F5 9B 9B 25 9E  SŘ.[.x.ć˛ő››%ž
00000320  F5 93 B5 92 13 44 D5 C0 30 7D B7 4B 4A 00 4E CB  ő“’.DŐŔ0}KJ.N
00000330  12 4A 91 AE 79 F1 64 64 51 8A D7 A3 89 5A AC AC  .J‘yńddQŠŁ‰Z
00000340  BD EC 82 62 7B 26 48 AB FC 54 CB EC D0 8D C9 E2  ˝ě‚b{&HTěĐŤ
00000350  A5 D0 FF 9A ED E0 36 5F 71 25 E5 6D 3B 65 ED D9  ĄĐ˙šŕ6_q%ĺm;eŮ
00000360  35 FB D8 94 E6 DD 14 C8 DA 97 08 C7 B7 93 2F EC  5űŘ”ć.Č—.Ƿ“/ě
00000370  C4 8C DA 30 59 68 14 8B EF DA E0 34 5C E1 24 41  Ś0Yh.‹ďŕ4\$A
00000380  3A 40 7C 51 60 C3 6B B6 A3 F4 DE 39 D3 D4 F5 60  :@|Q`ĂkŁŢ9ő`
00000390  C9 EB 09 64 36 5E 12 71 ED 6C C0 53 BF 58 28 8E  .d6^.qlŔSżX(Ž
000003A0  16 D5 68 24 1C 48 F8 A9 11 FF C6 0A 41 3A 02 23  .Őh$.Hř.˙Ć.A:.#
000003B0  37 A9 E7 9F C5 61 2E B5 49 D3 B4 B5 73 A9 02 01  7źĹa.IӴs..
000003C0  00 51 0B DB 77 B1 72 81 F9 B4 04 74 EE DE 1C 32  .Q.Űwr.ů.tŢ.2
000003D0  CD 98 22 05 27 35 83 0D 50 61 B3 34 3A 04 AB CF  .".'5..Pał4:.Ď
000003E0  25 CD 25 76 86 A9 4F EA AA D6 5A 83 3A 77 09 9B  %%v†OęŞZ.:w.›
000003F0  F7 D0 E5 27 28 83 20 4A A1 DD 88 E4 3C 69 12 CE  Đĺ'(. Jˇ.<i.
00000400  1E C1 69 24 92 C7 91 C9 2F 12 56 98 B4 05 4A B2  .i$’‘/.V..J˛
00000410  38 E0 9A C2 EC ED 4C CB F6 9C 53 F7 4E 3F D0 F6  8ŕšěLśSN?Đ
00000420  CB EF D2 7C B1 C8 A3 AC B1 5D 65 DA AE 8E 50 15  ďŇ|ČŁ]eڮŽP.
00000430  31 13 7C 78 56 5C 3E FC 3F 3D ED EF 12 24 20 A4  1.|xV\>?=ď.$ 
00000440  FF C6 76 21 D7 03 D7 85 5A EE 0D 53 D7 CD 0A 02  ˙Ćv!.…Z.S..
00000450  E7 0A F0 8D DB CC 58 8B 51 CD 85 A2 18 A3 90 D2  .đŤŰĚX‹Q…˘.Ł.Ň
00000460  5F 93 7A 71 81 B0 14 C5 B5 B4 77 CC BD D8 65 F2  _“zq..ĹwĚ˝Řeň
00000470  4C B8 4E D7 ED FA 01 C4 C2 D1 39 5D 95 D1 26 C5  LN.Ń9]•Ń&Ĺ
00000480  4E EB 22 48 03 BE 05 42 F6 48 46 8D E9 85 D6 1A  N"H.ľ.BHFŤ….
00000490  12 0B E6 8B 33 85 7B CD F2 AA 6E 5E 21 84 27 12  ..ć‹3…{ňŞn^!„'.
000004A0  4F F3 F7 55 FE 4F 33 1D BE C2 15 61 D7 F5 00 E0  OUţO3.ľ.aő.ŕ
000004B0  D6 8B 55 61 6B AA B6 C8 7D 23 4F 73 05 92 3C 6F  ‹UakŞČ}#Os.’<o
000004C0  AD D2 F1 06 11 8B 00 00 00 00 00 00 00 00 00 00  *Ňń..‹..........
000004D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Than you can hex compare stock kernel.elf and generated kernel.elf and you can see its ~the_same

And finaly revert these elf to sin by command:
./bin2sin kernel.elf 030000002200000000D0000000800000
Last edited by munjeni; 24th September 2012 at 04:14 PM.
The Following 2 Users Say Thank You to munjeni For This Useful Post: [ View ]
24th September 2012, 05:57 PM   |  #10  
Member
Thanks Meter: 13
 
91 posts
Join Date:Joined: Nov 2009
The files in the first post have been corrected whit battery drain issue?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes