Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,065 Members 41,685 Now Online
XDA Developers Android and Mobile Development Forum

root 2.3.4,downgrade,and s-off

Tip us?
 
Shano56
Old
(Last edited by Shano56; 29th April 2012 at 08:16 AM.)
#221  
Shano56's Avatar
Senior Member
Thanks Meter 548
Posts: 1,382
Join Date: Oct 2011
Location: Seattle
Tried going on with the rest of the guide to get s-off and I receive error Main version is older when trying to downgrade. help anyone? Im wondering if my ICS rom has anything to do with it

./flash_image misc /sdcard/mtd0.img returns segmentation error
LG Nexus 5
 
tiny4579
Old
#222  
Recognized Developer
Thanks Meter 4112
Posts: 7,644
Join Date: Jan 2011
Try going back to gingerbread. That should allow you to run it.

Sent from my Galaxy Nexus using Tapatalk 2
 
scotty1223
Old
#223  
scotty1223's Avatar
Senior Member - OP
Thanks Meter 2231
Posts: 2,226
Join Date: Jan 2011
your ics rom does not change your main version,and shouldnt really be a factor.

the error youre getting means you didnt do something correctly with the adb commands,and the misc image didnt get rewritten with a lower main version number,to allow the "upgrade"(downgrade to froyo)

you need to start again with the adb steps,and provide a copy/paste of everything in the cmd window if it fails again.
 
Shano56
Old
#224  
Shano56's Avatar
Senior Member
Thanks Meter 548
Posts: 1,382
Join Date: Oct 2011
Location: Seattle
my steps: format sd card to FAT32. place place PB31IMG.zip sd:/PB31IMG.zip
eject sd card
turn off phone
insert sd card
boot phone normally
file browser on phone confirms its not .zip.zip or anything
plug in phone open cmd

Code:
C:\miniadb_inc>adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
HT********    device


C:\miniadb_inc>md5sums mtd0.img

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
Type md5sums -h for help

[Path] / filename                              MD5 sum
-------------------------------------------------------------------------------
[C:\miniadb_inc\]
mtd0.img                                       34307be744275f1db1dd16af04c37839

C:\miniadb_inc>md5sums flash_image

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
Type md5sums -h for help

[Path] / filename                              MD5 sum
-------------------------------------------------------------------------------
[C:\miniadb_inc\]
flash_image                                    0098a7dd6600b55fac34fc6645be5d7a

C:\miniadb_inc>adb push flash_image /data/local/
failed to copy 'flash_image' to '/data/local//flash_image': Permission denied

C:\miniadb_inc>adb root
restarting adbd as root

C:\miniadb_inc>adb push flash_image /data/local/
1237 KB/s (76044 bytes in 0.060s)

C:\miniadb_inc>adb push mtd0.img /sdcard/
1225 KB/s (655360 bytes in 0.522s)

C:\miniadb_inc>adb shell
root@android:/ # cd /data/local
cd /data/local
root@android:/data/local # chmod 0755 /data/local/flash_image
chmod 0755 /data/local/flash_image
root@android:/data/local # cd /data/local
cd /data/local
root@android:/data/local # ./flash_image misc /sdcard/mtd0.img
./flash_image misc /sdcard/mtd0.img
Segmentation fault
139|root@android:/data/local # exit
exit

C:\miniadb_inc>adb reboot bootloader

C:\miniadb_inc>
press power once once exits to bootloader

after some loading i get

Code:
Main Version is older!
Update Fail!
Do you want to reboot device?
LG Nexus 5
 
tiny4579
Old
#225  
Recognized Developer
Thanks Meter 4112
Posts: 7,644
Join Date: Jan 2011
Quote:
Originally Posted by scotty1223 View Post
your ics rom does not change your main version,and shouldnt really be a factor.

the error youre getting means you didnt do something correctly with the adb commands,and the misc image didnt get rewritten with a lower main version number,to allow the "upgrade"(downgrade to froyo)

you need to start again with the adb steps,and provide a copy/paste of everything in the cmd window if it fails again.
Actually that flash_image command does depend on the os version. The flash_image binary that works on gingerbread will not work on ics. The flash_image packed with a more recent rom manager might.

Sent from my Galaxy Nexus using Tapatalk 2
The Following User Says Thank You to tiny4579 For This Useful Post: [ Click to Expand ]
 
Shano56
Old
#226  
Shano56's Avatar
Senior Member
Thanks Meter 548
Posts: 1,382
Join Date: Oct 2011
Location: Seattle
Quote:
Originally Posted by tiny4579 View Post
Actually that flash_image command does depend on the os version. The flash_image binary that works on gingerbread will not work on ics. The flash_image packed with a more recent rom manager might.

Sent from my Galaxy Nexus using Tapatalk 2
so what do you suggest? should I install a gingerbread rom? or is there a flash_image that will work with ICS?
LG Nexus 5
 
tiny4579
Old
#227  
Recognized Developer
Thanks Meter 4112
Posts: 7,644
Join Date: Jan 2011
Quote:
Originally Posted by Shano56 View Post
so what do you suggest? should I install a gingerbread rom? or is there a flash_image that will work with ICS?
Either works. If you don't want to flash a new ROM try:

cd /data/data/com.koushikdutta.rommanager/files instead of the cd /data/local line. And then continue the instructions with the ./flash_image.

Otherwise flashing a gb rom should work.

Sent from my Galaxy Nexus using Tapatalk 2
 
Shano56
Old
#228  
Shano56's Avatar
Senior Member
Thanks Meter 548
Posts: 1,382
Join Date: Oct 2011
Location: Seattle
Quote:
Originally Posted by tiny4579 View Post
Either works. If you don't want to flash a new ROM try:

cd /data/data/com.koushikdutta.rommanager/files instead of the cd /data/local line. And then continue the instructions with the ./flash_image.

Otherwise flashing a gb rom should work.

Sent from my Galaxy Nexus using Tapatalk 2
so do i do

Code:
cd /data/data/com.koushikdutta.rommanager/
chmod 0755 /data/local/flash_image

cd /data/data/com.koushikdutta.rommanager/
./flash_image misc /sdcard/mtd0.img
or

Code:
cd /data/data/com.koushikdutta.rommanager/
chmod 0755 /data/local/flash_image

cd /data/local
./flash_image misc /sdcard/mtd0.img
or what?
LG Nexus 5
 
tiny4579
Old
#229  
Recognized Developer
Thanks Meter 4112
Posts: 7,644
Join Date: Jan 2011
Quote:
Originally Posted by Shano56 View Post
so do i do

Code:
cd /data/data/com.koushikdutta.rommanager/
chmod 0755 /data/local/flash_image

cd /data/data/com.koushikdutta.rommanager/
./flash_image misc /sdcard/mtd0.img
or

Code:
cd /data/data/com.koushikdutta.rommanager/
chmod 0755 /data/local/flash_image

cd /data/local
./flash_image misc /sdcard/mtd0.img
or what?
Just:

cd /data/data/com.koushikdutta.rommanager/files
./flash_image misc /sdcard/mtd0.img

Sent from my Galaxy Nexus using Tapatalk 2
 
Shano56
Old
#230  
Shano56's Avatar
Senior Member
Thanks Meter 548
Posts: 1,382
Join Date: Oct 2011
Location: Seattle
Quote:
Originally Posted by tiny4579 View Post
Just:

cd /data/data/com.koushikdutta.rommanager/files
./flash_image misc /sdcard/mtd0.img

Sent from my Galaxy Nexus using Tapatalk 2
i get

Code:
C:\miniadb_inc>adb shell
root@android:/ # cd /data/local
cd /data/local
root@android:/data/local # chmod 0755 /data/local/flash_image
chmod 0755 /data/local/flash_image
root@android:/data/local # cd /data/data/com.koushikdutta.rommanager/
cd /data/data/com.koushikdutta.rommanager/
root@android:/data/data/com.koushikdutta.rommanager # ./flash_image misc /sdcard
/mtd0.img
e misc /sdcard/mtd0.img                                                       <
/system/bin/sh: ./flash_image: not found
127|root@android:/data/data/com.koushikdutta.rommanager #
LG Nexus 5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes