We have moved to a new Sailfish OS Forum. Please start new discussions there.
17

[Question] xperia recovery mode?

asked 2017-10-13 04:29:47 +0200

XFish gravatar image

updated 2018-01-06 18:10:43 +0200

ralooyar gravatar image

How do you enter recovery mode on the Sony Xperia X. I tried the turn off remove all cable, push the power, plus and minus volume until three vibrates, then only the plus volume button, then reconnect USB, but when connecting in terminal with telnet 10.42.66.66 i get:

Escape character is '^]' so basically it doesn't let me connect to telnet. I am trying get to the recover menu.

Just installed the release 8 of the HORNDIS driver needed for MacOSX to make it work (this is something Jolla really should be developing and providing in my book)

I had to run the following command to get the phone to go into telnet mode:

sudo fastboot boot hybris-recovery.img

within the computer terminal with phone in (volume plus button down, then connect to USB mode) and being in the folder with the hybris file.

Will Jolla make it easier to enter that mode without the hybris-recovery.img file being on an off computer disk?

edit retag flag offensive close delete

Comments

It would be great to have the Jolla recovery available to boot into with certain button presses and not having to first execute it via fastboot. I haven't found any official Jolla instructions about the recovery on the Xperia X on a quick search though.

ghling ( 2017-10-13 09:45:28 +0200 )edit
4

@XFish: Thanks a lot for showing up a way to enter recovery mode on Sailfish X. :)

See also: https://sailfishos.org/wiki/Sailfish_X_Build_and_Flash#Recovery_Mode


If someone is asking, where to get the file hybris-recovery.img from: It is contained in SailfishOS-2.1.3.5-1-f5121-0.0.1.16.zip, which you can download from https://shop.jolla.com/downloads/ after you have purchased Sailfish X.


The nice thing about this approach: Using fastboot boot ... will not alter your flash memory (If I understood correctly). After rebooting your device, everything is back to normal. See:

ralooyar ( 2018-01-06 18:26:30 +0200 )edit
1

Hi. There aren't any clear instructions nor an answer to this problem. I need to boot into recovery to uninstall mazelock patch on my Xperia and have those instructions. Can someone please help? ..._Flash#Recovery... isn't much help either. Thanks.

rmitchell ( 2018-01-08 08:02:00 +0200 )edit

@XFish, the answer to your question is "No", see details and background.

olf ( 2020-03-13 13:30:40 +0200 )edit

3 Answers

Sort by » oldest newest most voted
14

answered 2018-01-10 23:53:09 +0200

ralooyar gravatar image

updated 2018-07-07 21:08:28 +0200

This is no answer for @XFish, but for @rmitchell and other Xperia owner, wondering how to enter recovery mode on a SailfishX device. (There is not enough space in a comment, so I use an answer for this set of information)

(!) Please be careful! Some of those commands might disturb your PC or SailfishX device, if not used properly. Also device names or IP addresses might be different in your situation!

One-Time preperations

Enter recovery mode on SailfishX (with fastboot):

entering fastboot mode

  • (from SailfishX install instructions)
  • turn off your device
  • wait 15 seconds
  • connect the USB cable to your PC
  • press and hold volume up and plug the USB cable in your SailfishX device
  • the LED lights up red (wait a bit more, while still holding volume up)
  • the LED lights up blue
  • you can release volume up

(!) The rest of this How-To is linux specific. Sorry for this, but I do not know, how to do this on Windows/Max. Maybe you can get some useful information from: Jolla instructions for Recovery Mode on Jolla1

(!) If you are not root, you may need to prefix some commands with sudo.

  • OPTIONAL: typing lsusb | grep "0fce" should now list: ... ID 0fce:0dde Sony Ericsson Mobile Communications AB Xperia Mini Pro Bootloader

booting to recovery mode

  • change to the directory, where you unzipped SailfishOS-2.1.3.7-f5121-0.0.1.18.zip
  • type fastboot boot hybris-recovery.img (this is from SailfishX build instructions)

you should see something like:

downloading 'boot.img'...
OKAY [  0.381s]
booting...
OKAY [  0.541s]
finished. total time: 0.923s

=> Your SailfishX device should now be in recovery mode and you can see the following text on the display:

RECOVERY: Connect USB calbe and open telnet to address 10.42.66.66

connecting to your device in recovery mode

  • older Linux (e.g. Debian Jessie):
    • typing ifconfig -a should list a new device usb0 (or a greater number, if you had other usb devices before)
    • configure this device with: dhclient usb0
  • new Linux (e.g. Debian Stretch):
    • typing ip address list should list a new device without ip-address. In my case: enp0s20u1
    • configure this device with: dhclient enp0s20u1
  • type telnet 10.42.66.66 to connect to your SailfishX device

You should now see:

-----------------------------
 Jolla Recovery v2.0
-----------------------------
Welcome to the recovery tool!
The available options are:
1) Reset device to factory state
2) Reboot device
3) Shell
4) Perform file system check
5) Run sshd
6) Exit
Type the number of the desired action and press [Enter]:

You can select option 3 to get a shell on your SailfishX device.

(!) Please be careful about what you are doing and respect the warranty warning!

Hint: "devicelock code" is the code you have to enter to unlock your device in normal operation mode (after your display was off for 10 minutes or longer).

How to get back to normal

  • to exit the shell, type exit
  • choosing option 2 in "Jolla Recovery v2.0"-menu closes to reboot your SailfishX device back to normal mode
  • you close the telnet session via: "CTRL + 5" and type quit after "telnet> "

Hint: If your SailfishX device hangs at the "Sony" bootscreen for serveral minutes, it helped in my case to press and hold the power-button for several seconds. The LED turned red and the device shut down, so I could boot it again. Doing this 3 times brought up the correct Sailfish GUI, again.

GOOD LUCK

Additional information:

edit flag offensive delete publish link more

Comments

1

Thank you @ralooyar. I got impatient and flashed the image again using fastboot and re-updating the Sony drivers in Windows Device Manager then skipping down to #6 on instructions. Was a pain installing all the apps again but had original backup of user data. Seems like updating the Sony driver with the one d/loaded in the original instructions would be a good idea before booting into Recovery. Will give this a try in Win10 and report back. Thanks for your help.

rmitchell ( 2018-01-11 00:10:59 +0200 )edit

Is this How-To still valid? Are there any updates?

Just before executing fastboot boot hybris-recovery.img I can successfully lsusb | grep "0fce". After fast-booting, ```

sudo fastboot boot hybris-boot.img downloading 'boot.img'... OKAY [ 0.342s] booting... OKAY [ 0.536s] finished. total time: 0.879s ```

lsusb... does not see the device anymore.

What else can I try to enter into recovery mode?

NikosAlexandris ( 2019-12-02 11:56:36 +0200 )edit

It worked finally. I was wrongly trying to boot in recovery mode by using the hybris-boot.img instead of hybris-recovery.img.

NikosAlexandris ( 2019-12-02 12:42:58 +0200 )edit
6

answered 2018-01-14 17:13:09 +0200

deprecated gravatar image

updated 2018-01-14 17:15:29 +0200

You can sudo fastboot flash recovery hybris-recovery.imgto flash the recovery image to the device so that you don't need adb to boot it into recovery. Whenever you need to boot into recovery, power the device off then hold Vol Down + Power. To exit recovery mode without plugging it into a computer, hold Vol Down + Vol Up + Power.

edit flag offensive delete publish link more

Comments

2

@deprecated thank you for this tip! I did not know there was an extra recovery partition, one could use. And how to enter / exit it.

Question 1: Do you know what this recovery partition contains before overwriting it with this command?

Question 2: Will the "fastboot system", you can reach via holgin volume up + USB cable plugin, remain after overwriting the recovery partition? Or does "hybris-recovery.img" provide a fastboot service, too?

ralooyar ( 2018-01-14 19:35:05 +0200 )edit
2

@ralooyar

1) As far as I know, there is nothing on the recovery partition after flashing Sailfish X the first time round. Jolla expects you to just boot the recovery image over adb for whatever reason.

2) Yes. that fastboot mechanism is retained. You can still press the appropriate volume key and plug in the USB cable with the device off until the blue LED lights up, just as you did previously. I haven't tested to see if there's fastboot functionality within the recovery after flashing, but I do know that you can still get the device into fastboot mode as normal.

deprecated ( 2018-01-15 04:10:41 +0200 )edit

@deprecated Thanks a lot for your answers! :)

ralooyar ( 2018-01-15 23:22:01 +0200 )edit

@deprecated, you shall not flash an SailfishOS recovery image to a device reflashed from Android, see details and background.

olf ( 2020-03-13 13:28:41 +0200 )edit
0

answered 2018-01-14 14:31:00 +0200

makarch gravatar image

updated 2018-01-14 17:01:06 +0200

Thank you @ralooyar for your very understandable guide.

I think you have left out

sudo fastboot flash recovery hybris-recovery.img

before you can boot

sudo fastboot boot hybris-recovery.img
edit flag offensive delete publish link more

Comments

5

Doing a

sudo fastboot flash recovery ...

is not necessary before you do

sudo fastboot boot hybris-recovery.img

The last command will pick the file hybris-recovery.img from your PC and download it via USB cable to your smartphone, where this file is booted. There will happen no flashing in this process and flashing is not needed.

(See post by @deprecated, which explains what "fastboot flash recovery ..." does.)

ralooyar ( 2018-01-14 19:23:20 +0200 )edit

@ralooyar: I know that it isnt the same, but without flashing it didnt work for me. Maybe I did something wrong but after I flashed it on the device it worked quite fine.

Nevertheless, thanks for the guide, I helped me quite a lot!

makarch ( 2018-01-14 23:25:39 +0200 )edit

Just to confirm, will flashing the hybris-recovery.img touch any data (partitions) at all?

NikosAlexandris ( 2019-12-02 11:52:04 +0200 )edit

OK, no flashing needed. I was blindly trying to fastboot boot hybris-boot.img which is not hybrid-recovery.img!

NikosAlexandris ( 2019-12-02 12:41:55 +0200 )edit

@makarch, you shall not flash an SailfishOS recovery image to a device reflashed from Android, see details and background.

olf ( 2020-03-13 13:27:42 +0200 )edit
Login/Signup to Answer

Question tools

Follow
12 followers

Stats

Asked: 2017-10-13 04:29:47 +0200

Seen: 4,497 times

Last updated: Mar 13 '20