Install Sailfish OS on Nokia N9

  • Tutorial
image

Not so long ago, Jolla began selling its new smartphone in Finland. As you know, official support for the N9 / N950 is not expected, but the community with maemo.org has already ported and created a wiki page with a detailed manual. It was he who I took as a basis during installation. Everything was done from under Ubuntu 64 bit, but any debian – based distribution is fine. It also takes some free time and patience.

1) We make a full backup of the system, documents, contacts and everything that seems necessary. We turn off the request for the pin code on the sim card and the security code on the phone itself. We make sure that the battery is at least 90% charged. We are aware that in case of erroneous actions or disconnecting the USB cable during firmware, you can get a completely defective phone, which will be problematic to restore at home.

2) Install the flasher from here . There is a version for Windows, but I do not recommend using it, because at a certain point, you cannot install Ubiboot – loader. At least it is advisable to have at least a Linux virtual machine on hand.

3) You need to look at the factory product code, written on the tray of the SIM card of the smartphone, and download herethe clean factory firmware you need with Meego Harmattan. (In my case, the factory product code is 059J228, which means the firmware version is RM – 696 NDT MEA1 MEA2 BLACK 64GB). There will be two files in the archive: DFL61_HARMATTAN_40.2012.21.21-3_PR_LEGACY_006 – OEM1–958_ARM.bin, 528DA068_DFL61_HARMATTAN_40.2012.13–7.MEA_EMMC_MEA.bin. Unpack and for convenience rename them to main.bin and emmc.bin, respectively.

4) We start the flasher in the mode of determining the ID of the connected device flasher –iand connect the switched off phone with a USB cable. If the flasher read the ID of the smartphone, then everything is in order and you can start the firmware process. We launch it with a team flasher –F main.bin –F emmc.bin –fIn case of error Error claiming USB interface: Device or resource busy, add the blacklist cdc_phonet, blacklist phonet, blacklist cdc_acm lines to /etc/modprobe.d/modprobe.conf

5) After successful firmware launch Meego, set the regional settings, time and date , enable developer mode. It is at this stage that I strongly advise you to run the command from the user’s terminal in the smartphone. disclaimer–cal remove View–openmodeIf you do not do this, each time you turn on the phone you will have to observe an annoying disclaimer for about 10 seconds, notifying that you have modified the system software and have lost the Nokia warranty .

6) Install the OpenMode kernel . This time we launch a flasher with parametersflasher –a main.bin –k zImage_2.6.32.54–openmode_l2fix ––flash–only=kernel –f –R

7) Run Meego again and make sure that the disclaimer does not appear at boot. I also recommend immediately installing the N9 / 50 QuickTweak . This is completely optional, but the tweak will enable ssh root access and install bash, wget, and other small amenities. Also, after installing the OpenMode kernel, Meego stops remembering account passwords. We can cure this by typing in the smartphone terminal:
rm –rf /home/user/.accounts
rm –rf /home/user/.aegis
mkdir –p /root/ssl
cp –Rf /etc/ssl/certs/* /root/ssl
rm –rf /etc/aegisfs.d
sync
/sbin/reboot
And after loading:
cp –Rf /root/ssl/* /etc/ssl/certs

8) Install the MOSLO kernel from nemomobile.org. We unzip the rpm package and as usual. flasher –k zImage–moslo –n initrd–moslo –l –bNow a new Alt_OS partition has appeared on the flash memory of the smartphone, which should be mounted in / media / Alt_OS on the PC.

9) Install Ubiboot. The option is optional, but it is a convenient bootloader with a GUI that will allow you to switch between SailfishOS and Meego Harmattan at boot. For these purposes, there is already a pre-configured version , which I used. But if you plan to run more FirefoxOS and / or Nitroid, then install a clean version. Download the archive to the folder with the flasher and unpack. tar –xvf ubiboot–02_0.3.5_131213_SFOS.tarConnect the phone in Storage Mode and copy the extracted ubiboot_035_sailfishos.tar to the MyDocs directory. Now go to the Meego Teminal, get root rights, unpack. We turn off the smartphone, from the desktop terminal we again start the flasher with the Bootloader settings installed.
devel–su
cd /home/user/MyDocs/
tar –xvf ubiboot_035_sailfishos.tar –C /

sudo flasher –a main.bin –k zImage_2.6.32.54–ubiboot–02_301013 ––flash–only=kernel –f –R

10) Finally, proceed directly to the installation of Sailfish. There are several ready-made images, one of which I used. If you have the desire and time to experiment, then having studied the documentation of the MerSDK project , you can prepare your own. Rename the downloaded image to sailfish.tar.bz2, unpack it into the mounted directory / media / Alt_OS on the desktop. tar ––numeric–owner –xvjf sailfish.tar.bz2 –C /media/Alt_OS/This is enough to run SailfishOS, but there are a couple of things that it is desirable to make the right, is the inclusion of root-access to ssh nano /media/Alt_OS/etc/ssh/sshd_configrasskomentiruem PermitRootLogin yesand procedures to change after loading the root-password, edit the file nano /media/Alt_OS/etc/shadowthere will be a line such as root:$1$00Z6Bfjc$vlIKUOMHIavIABL1gNuy6/:16049:0:99999:7:::to the form root::16049:0:99999:7:::Do not forget to set the root password in the SailfishOS terminal after starting.

In general, the installation is somewhat complicated, and there are some bugs, for example, I still could not start the camera and install the cards. But I would like to hope that in the near future the Finnish smartphone will appear on the domestic market. Moreover, Jolla began to cooperate with Yandex.

Also popular now: