http://wiki.maemo.org/Sailfish- Wiki article is a work in progress, you can find helpful!
Piratepad, rzr, souran, Martin Brook, vgrade, mikecomputing, TMavica, krnlyng (liar), max83, flotron, folklore (who I don’t know of!), Trying to make sailfish happen for the n9, people jolla phones, jolla, nemo
Read all before starting! No warranty! Assumes some basic Linux knowledge.
NB: I use Debian 7.2 x64, root terminal on a virtual machine (vmware, should work fine too,
https://www.virtualbox.org/). Any distro will do. I strongly recommend that you use Internet connectivity on your linux machine). For windows only, follow the guide then use Step W (thanks mikecomputing)
NB: Completely turn off the power button for ~ 8 seconds.
NB: When extracting a tarball with "tar --numeric-owner -xvf", it is probably .tar.bz2 -xvjf "
NB: Lack of jolla-xt9 means no engine and no pinyin>hanzi conversion for Chinese speakers.
Resources
Firmwares:
http://skeiron.org/firmware/N9/40.2012.21.3/or
http://mrcrab.net/nokia/Nokia_N9.htm...uctType=RM-696openmode kernel:
http://www.swagman.org/juice/ubiboot...openmode_l2fixMOSLO kernel:
http://releases.nemomobile.org/snaps...xx.armv7hl.rpmubiboot:
http://wiki.maemo.org/Ubiboot,
http://www.swagman.org/juice/ubiboot/ubiboot-02/Souren's sailfish for n9:
http://n9.araya.su/images/mic_images...0.1.10/vgrade/ Additional reading materials / sources:
http://www.who.is.free.fr/wiki/doku.php?id=n950clubhttp://piratepad.net/nVuyI2uxrYStep 1 - Backup your N9
Backup your N9 (using the Nokia Suite or the phones in the utility) AND your emmc (connect you N9 in data storage mode) !!
1a - Connect your phone as you need the inbuilt utility.
1b - Close all your open applications. I would like to backup /home/.config, /home/.local and /home/.whatsup Use N9QuickTweak
http://talk.maemo.org/showthread.php?t=80600, option H, enable SSH for root. WinSCP / Filezilla
http://winscp.net/eng/index.php https://filezilla-project.org/1b - BACKUP YOUR BACKUPS
Step 2 - Re-flash the firmware to factory
Download firmwares from:
http://skeiron.org/firmware/N9/40.2012.21.3/or
http://mrcrab.net/nokia/Nokia_N9.htm...uctType=RM-6962a - Make sure the handset is charged. Disconnect from all cables and turn off completely.
2b - download it for your system and install it. You want v3.12.1.
http://skeiron.org/tablets-dev/maemo-dev-env-downloads/2c - Copy your firmware files to the directory where the flash files and emmc files respectively
http://wiki.maemo.org/Flashing_N9for more info if needed.
NB: It can be completely turned off by initiating a flasher command and connecting it.
"flasher -i" is the environment.
2d - fs cmd.exe / run cmd.exe as admin (win) or go to the directory where you are.
2e - Flash your firmware with the command "flasher -F main.bin -F emmc.bin -f" (no quotes)
2z - IF FLASHING FAILS (PARTITION MISMATCH, SIMLOCK ON: CANNOT FLASH UNSIGNED IMAGE, NO REPLY FROM PING ETC.) TRY THIS. I HAVE DONE IT MULTIPLE TIMES AND NOT NOTICED ANY CONSEQUENCES BUT I TAKE NO RESPONSIBILITY IF YOU PERMA-BRICK!
Completely turn off the handset.
Start flasher with the following command: "flasher -f -F main.bin --erase-user-data = secure -F emmc.bin --erase-mmc = secure" (no quotes)
It should take you time.
************************************************** **********************************
IF YOU ARE ABIT IMPATIENT (LIKE ME) FISHING THAN TURN OFF THE PHONE COMPLETELY.
GET A MESSAGE ASKING GOUT YOU TO INSTALL AN AUTHORIZED OPERATING SYSTEM.
TURN IT BACK OFF.
RUN: "flasher -F main.bin -F emmc.bin -f" (no quotes) AND IT SHOULD FLASH FINE
************************************************** **********************************
Step 3 - Give your handset freedom via openmode!
3a - Download the openmode kernel from
http://www.swagman.org/juice/ubiboot...openmode_l2fixand your firmware files.
3b - Flash the openmode kernel and reboot your phone with:
"flasher -a main.bin -k zImage_2.6.32.54-openmode_l2fix --flash-only = kernel -f -R" (without quotes)
Step 4 - Prepare Harmattan
4a - set up and it is fully functional.
4b - Install developer mode (it is useful later on).
4c - (Optional) Install N9QT
http://talk.maemo.org/showthread.php?t=80600, and enable option H (enable ssh for root). (Copy & paste easily)
Step 5 - Re-partition your handset
5a - Turn off your hand set. If you have not already been a linux machine / vm (you can download it on your host PC).
5b - Download the MOSLO kernel (
http://releases.nemomobile.org/snaps...xx.armv7hl.rpm)If you don’t want to download windows, download the kernel file from here:
http://www.multiupload.nl/WLLK09RF96flash it using "flasher -k zImage-moslo -n initrd-moslo -l -b" (no quotes), then jump to Step W
5c - Extract the .rpm with archive manager or:
"rpm2cpio moslo - *. armv7hl.rpm | cpio -vidu" (you may need to install rpm2cpio [apt-get install rpm2cpi]). Copy directory with eminc.bin and zImage_2.6.32.54-openmode_l2fix
5d - Flash the MOSLO kernel to your phone with:
"flasher -k zImage-moslo -n initrd-moslo -l -b" (no quotes)
After flashing, it will repartition you N9 and connect it to the PC.
You can nitdroid and firefox os.
Disconnect the phone.
Step 6 Install Ubiboot and Sailfish
6a - Download ubiboot from
http://www.swagman.org/juice/ubiboot/ubiboot-02/(ubiboot-02_0.3.5_301013.tar as of 2013-12-08) into the directory where flasher, main.bin and emmc.bin reside.
6b - Now install the ubiboot kernel with:
"flasher -a main.bin -k zImage_2.6.32.54-ubiboot-02_301013 --flash-only = kernel -f -R"
Ubiboot to enter maintenance mode.
Partitions are "rootfs" (Harmattan root filesystem) "Alt_OS" (where nemo / sailfish lives) "x767x676x7c6" (a random string of letters +/- numbers. OS if you want and is " / home / "in Harmattan but NOT" / home / user / MyDocs ") and" Nokia N9 "(THIS is" / home / user / MyDocs "on Harmattan [USB Mass Storage Mode]).
NB: If you format it, it will get a random string of letters and numbers, like the "/ home /" directory. It is the 4.2GB file system.
6c - Go to "/ media / Nokia N9" on your PC (Harmattans Mass Storage). Make a directory called "boot". Copy "ubiboot.conf" and "ubiboot-02.menus.cpio" from the extracted ubiboot-02_310513.tar into the newly created "boot" folder.
6c Go to "/ media / rootfs" Harmattans root file system. Go to the "boot" directory (/ media / rootfs / boot). Copy "zImage_2.6.32.54-openmode_l2fix" (which we flashed earlier) into "/ media / rootfs / boot").
6d - download the image of choice (or make one using the sdk and "sailfish2-armv7hl-n950.ks", but I don’t go into that. Check
http://martinbrook.blogspot.co.uk/20...-been.html?m=1,
https://wiki.merproject.org/wiki/Platform_SDKand
https://github.com/martinbrook/jolla-n950-kickstartfor more info if interested.
Download Sailfish from:
http://n9.araya.su/images/mic_images...0.1.10/vgrade/(vgrade-sailfish_proximity-workaround.tar.bz2) (no zypper v1.0.0.10)
Update: An image is also available from
http://www.mediafire.com/download/zj..._0_0_5.tar.bz2(please see
http://talk.maemo.org/showpost.php?p...&postcount=443)- Thanks max83 This image has been pre-installed and is sailfish v1.0.0.5
6e - Extract Sailfish to "/ media / Alt_OS" on your PC with:
"time tar --numeric-owner -xvjf vgrade-sailfish_proximity-workaround.tar.bz2 -C / media / Alt_OS /"
Step W - Install Sailfish using only Windows (thanks mikecomputing)
After installing your device. Disconnect and boot into Harmattan.
Wa - Download Sailfish image of choice
Wb - In Harmattan, install developer mode if you haven't already. Connect the phone as "Mass Storage Device"
Wc - Copy vgrade-sailfish_proximity-workaround.tar.bz2 to the root of your MMC.
Wd - Disconnect the phone from the PC.
We - Launch Terminal on Harmattan (or SSH in)
devel-su
rootme #or your root pass
cd / home / user / MyDocs /
ls
# you should see all your MyDocs and vgrade-sailfish_proximity-workaround.tar.bz2
mkdir / sailfish
mount / dev / mmcblk0p4 / sailfish
time tar --numeric-owner -xvjf vgrade-sailfish_proximity-workaround.tar.bz2 -C / sailfish /
# this will take a while
# SSH access on Sailfish, starting at "mount -o bind / proc / sailfish / proc"
Please read his post:
http://talk.maemo.org/showpost.php?p...&postcount=436Sync the disks and unmount all the filesystems:
"sync; sync; sync; umount / media / *"
(To upgrade to a new image, simply delete everything in / media / Alt_OS ("rm -frv / media / Alt_OS / *"). You will loose your data!
Disconnect your USB cable and turn off the handset completely. Turn it back on. This is where the bootmanager is available and you can download the OS 6, of which the sailfish and harmattan work.
If you do not select an OS, Harmattan will boot by default.
To tap into the Sailfish, tap the nemo icon and the tap "the latest 2.6.32" or "vmlinuz-2.6.63.20120129.1.1-n950". For Harmattan, it is "openmode + l2 fix"
Date / Time Fix
The date / time may not be set correctly in Sailfish. To fix this, boot into Harmattan and fire up terminal:
$ devel-su
# rootme # (or ur root root pass)
# date --set "2013-12-07 22:59"
Enable root ssh access on Sailfish
ZYPPER IS NOT INSTALLED ON SOURAN'S LATEST IMAGE SO IGNORE ATM, UNLESS YOU ARE USING MAX'S IMAGE!
To fix the proximity sensor (thanks to souran), you need to fix it. This is pretty easy to get (thanks to liar (krnlyng) on ​​piratepad):
Fire up a terminal Harmattan.
devel-su
cd /
mkdir sailfish
mount / dev / mmcblk0p4 / sailfish
mount -o bind / proc / sailfish / proc
mount -o bind / sys / sailfish / sys
mount -o bind / dev / sailfish / dev
/ usr / sbin / chroot / sailfish
su
passwd root
nemo #enter a root pass
nemo #confirm root pass
passwd nemo
nemo #enter pass for nemo
nemo #confirm nemo pass
# will be needed, some will use vi
# now lets enable root ssh in sailfish
#this also allows copying files to and from sailfish with winscp / filezilla
nano / etc / ssh / sshd_config
# add the following somewhere
PermitRootLogin yes
# exit: ctrl + x, y to save changes
# you can also install any additional packages such as terminal now as per
http://www.who.is.free.fr/wiki/doku.php?id=n950cluband
http://piratepad.net/nVuyI2uxrYe.g .:
zypper install \
jolla-alarm-ui jolla-calculator jolla-calendar jolla-clock jolla-configuration-n9 \
jolla-demo jolla-developer-mode jolla-development-tools jolla-email jolla-fileman \
jolla-mediaplayer jolla-notes jolla-rnd
exit
umount / sailfish / dev
umount / sailfish / proc
umount / sailfish / sys
umount / sailfish
exit #out of su
exit #out of chroot
reboot
Reboot you phone and enjoy ssh / terminal on your Sailfish!
Note: When in developer mode, DO NOT ENABLE FRAME RATE DISPLAY. It makes it impossible to disable it. To fix, delete everthing in /home/nemo/.gconf/*
It may be in:
/home/nemo/.gconf/desktop/lipstick-jolla-home/gconf.xml
or
/mnt/home/nemo/.gconf/desktop/gconf.xml
Proximity sensor fix
To fix the proximity sensor (thanks souran & eekkelund, must be done every boot)
In sailfish terminal:
su
nemo
echo 1>/sys/devices/platform/i2c_omap.2/i2c-2/2-0039/prox_enable