answered
2018-01-10 23:53:09 +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:
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@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 inSailfishOS-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:- https://stackoverflow.com/questions/34667656/how-does-fastboot-boot-kernel-works-internally.
- https://forum.fairphone.com/t/howto-use-twrp-without-flashing-it-e-g-for-backup/23747
- or the fastboot man page
ralooyar ( 2018-01-06 18:26:30 +0200 )editHi. 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