Jolla Phone (jolla-sbj)

Contributors

 * MartijnBraam
 * PureTryOut
 * Postmarketeer

Backup the Jolla system
If you want to flash postmarketOS to your phone itself rather than an sdcard, it might be smart to first backup your system.

Backup:


 * 1) Shutdown the device and remove all cables and the battery
 * 2) Insert the battery while holding down the volume down button
 * 3) While still holding down the volume down button, press the power button till the phone shakes. If done correctly, the Jolla logo will be shown constantly in combination with the led lighting up white
 * 4) Plug in the phone to a PC with telnet installed
 * 5) On your PC, open a terminal and use telnet to get into the recovery
 * 6) A menu will be shown, press 4 and enter to get a shell. The device will ask for your devicelock code
 * 7) Insert a sdcard into your phone with a partition on it big enough to fit the system (make sure it isn't FAT32 formatted, as it can only store files up to 4GB big which might be too small). The sdcard will show up as "/dev/mmcblk1"
 * 8) Mount the sdcard partition to a directory.
 * 9) dd your system to an image file on the sdcard.
 * 10) When the disk image is made, unmount the sdcard.

Restore:


 * 1) Telnet to the device like before
 * 2) Mount the sdcard to a partition again
 * 3) dd the backup image to the device
 * 4) Reboot

Reverting back to stock w/o backup
To install latest stock version you need to flash an image, because the recovery image of factory reset is not updatable. A decent version can be found here.

Flashing mode
The Jolla phone uses fastboot from the Mer project rather than Android. To enter fastboot shut down the device, then while pressing.

USB connection
The USB connection works, but needs some manual configuration (as found here).

First, find the interface name using. Then, we have to assign the device a mac address (replace the interface name with what you found from the previous command).

After some seconds an IP address will be assigned automatically.

You can now use SSH to connect to the device on.

Install to SD-card only
Its possible to install to sdcard and boot via fastboot without flashing.


 * Install to sdcard
 * Enter fastboot mode
 * Boot via fastboot

If you see an error, it means that the bootloader is locked. You need to unlock the bootloader by going in the recovery mode (https://talk.maemo.org/showthread.php?p=1556497 / https://jolla.zendesk.com/hc/en-us/articles/204709607-Jolla-Phone-How-to-use-Recovery-Mode):

If you have a device lockcode, there could be an issue saying the code is incorrect even after typing the correct one (https://forum.sailfishos.org/t/jolla-recovery-v0-3-1-unlockable/8013/2) so you may need to disable the lockcode in Sailfish OS settings before unlocking the bootloader in recovery mode. If the bootloader is unlocked, it should display "Unlocked" in red on the top left when entering fastboot.

If your screen stays black after booting, it could mean that you have used an interface that is not supported: https://wiki.postmarketos.org/wiki/Category:Interface#Which_interfaces_work_where_.28and_which_interface_should_I_use.3F.29

You can reboot into fastboot again as root if  is installed. +

SIGILL in kernel log
Kernel log are flushed with these messages:

This is due to probing of processor capabilities in libcrypt of OpenSSL. Its reduced by changing debug level to.

This also blocks debugging with. Workaround can be found here .

Vendor Firmware
RPMs can't be downloaded directly, but exported from device with.

WiFi
WiFi works with firmware and the original proprietary, which depends on.

It must be activated in this order (these steps may not be necessary and could be ignored):

You can use  to connect to a Wi-Fi network (  can be used also: https://wiki.postmarketos.org/wiki/WiFi#Using_NetworkManager). You may see WiFi networks listed under 2 network interfaces, p2p0 and wlan0. The correct interface for WiFi is wlan0.

If you have problems to connect to a WiFi network with Network Manager (for example with a message "Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.)."), you can install  (by adding it when running   on your computer) and replace   with   below   in. Then you need to restart Network Manager with the command  (solution based on https://bbs.archlinux.org/viewtopic.php?id=232833 / https://forum.salixos.org/viewtopic.php?f=30&t=7284). Network Manager should then be connected to the WiFi network. If you still don't have access to Internet because there is no default route, you need to execute this command:.

Modem
Firmware loads, but modem can't be enabled. Might be fixable, because it works for similar samsung-i9195. To get more features working like the modem, the phone must be ported first to the mainline kernel (https://gitlab.com/postmarketOS/pmbootstrap/-/commit/2e30fa4281b43df769bd2546931fd63ba9857b53#note_846861351).

modem and modem_fw is loaded.

Photos

 * Jolla Phone.jpg

Links

 * Device package
 * Kernel package
 * Jolla sources
 * Mer project page