The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Adaptations/libhybris/Install SailfishOS for hammerhead

From Mer Wiki
< Adaptations | libhybris(Difference between revisions)
Jump to: navigation, search
m (WIP Over-the-Air updates (OTA): retain variable expansion)
(WIP Over-the-Air updates (OTA): nowiki - SUPER USEFUL!)
Line 20: Line 20:
 
=== WIP Over-the-Air updates (OTA) ===
 
=== WIP Over-the-Air updates (OTA) ===
 
* device lock seems to break after OTA, please help debugging/fixing that: https://bugs.nemomobile.org/show_bug.cgi?id=860
 
* device lock seems to break after OTA, please help debugging/fixing that: https://bugs.nemomobile.org/show_bug.cgi?id=860
  # open shell with normal nemo user
+
 
# you need to be on at least 1.1.6 (alpha12)
+
  <nowiki>
+
# open shell with normal nemo user
# if you want to OTA to 1.1.7 (alpha13), do this:
+
# you need to be on at least 1.1.6 (alpha12)
RELEASE=1.1.7.28
+
 
REPO=sailfish_latest_armv7hl
+
# if you want to OTA to 1.1.7 (alpha13), do this:
+
RELEASE=1.1.7.28
# if you want to OTA to 1.1.9 (alpha14 WIP!) instead, do this:
+
REPO=sailfish_latest_armv7hl
RELEASE=1.1.9.28
+
 
REPO=sailfishos_1.1.9.28
+
# if you want to OTA to 1.1.9 (alpha14 WIP!) instead, do this:
+
RELEASE=1.1.9.28
devel-su sed -i -e "s|^adaptation=.*$|adaptation=http://repo.merproject.org/obs/nemo:/devel:/hw:/lge:/hammerhead/$REPO/|" /usr/share/ssu/repos.ini
+
REPO=sailfishos_1.1.9.28
+
 
ssu dr adaptation0
+
devel-su sed -i -e "s|^adaptation=.*$|adaptation=http://repo.merproject.org/obs/nemo:/devel:/hw:/lge:/hammerhead/$REPO/|" /usr/share/ssu/repos.ini
+
 
ssu release $RELEASE
+
ssu dr adaptation0
ssu dr extra
+
 
ssu dr mw
+
ssu release $RELEASE
ssu ar mw http://repo.merproject.org/obs/nemo:/devel:/hw:/common/$REPO/
+
ssu dr extra
ssu er mw
+
ssu dr mw
ssu ar dhd http://repo.merproject.org/obs/nemo:/devel:/hw:/lge:/hammerhead/$REPO/
+
ssu ar mw http://repo.merproject.org/obs/nemo:/devel:/hw:/common/$REPO/
+
ssu er mw
# Because Jolla Store started working only recently, you may have
+
ssu ar dhd http://repo.merproject.org/obs/nemo:/devel:/hw:/lge:/hammerhead/$REPO/
# many of OpenRepos enabled. It's recommended to disable them, even
+
 
# though version --dup will do  best-effort to isolate repositories:
+
# Because Jolla Store started working only recently, you may have
ssu lr | grep openrepos
+
# many of OpenRepos enabled. It's recommended to disable them, even
+
# though version --dup will do  best-effort to isolate repositories:
devel-su zypper clean -a
+
ssu lr | grep openrepos
devel-su zypper ref -f
+
 
+
devel-su zypper clean -a
version --dup
+
devel-su zypper ref -f
# if above fails, try again
+
 
version --dup
+
version --dup
+
# if above fails, try again
# In 1.1.9 this line is no longer needed:
+
version --dup
devel-su zypper rm jolla-camera
+
 
+
# In 1.1.9 this line is no longer needed:
sync
+
devel-su zypper rm jolla-camera
devel-su reboot
+
 
 +
sync
 +
devel-su reboot
 +
</nowiki>
  
 
=== How to Build Image ===
 
=== How to Build Image ===

Revision as of 15:24, 14 September 2015

Nexus5.jpg

Contents

Steps to install

  • Install adb and fastboot on your workstation :
    • Debian/Ubuntu: apt-get install android-tools-adb android-tools-fastboot
    • Fedora: yum install android-tools
    • Mageia: urpmi android-tools (included in upcoming relase of Mageia 5).
    • OpenSUSE: zypper in android-tools
    • Mac OS X: Install Homebrew from http://brew.sh/, then: brew install android-platform-tools
    • Windows: See http://wiki.cyanogenmod.org/w/Doc:_fastboot_intro for instructions
  • Reboot the device and it should boot to Sailfish OS. If the device shows Google logo for 4-5 minutes, do a reboot using power button.
  • See below for MultiROM instructions

WIP Over-the-Air updates (OTA)

# open shell with normal nemo user
# you need to be on at least 1.1.6 (alpha12)

# if you want to OTA to 1.1.7 (alpha13), do this:
RELEASE=1.1.7.28
REPO=sailfish_latest_armv7hl

# if you want to OTA to 1.1.9 (alpha14 WIP!) instead, do this:
RELEASE=1.1.9.28
REPO=sailfishos_1.1.9.28

devel-su sed -i -e "s|^adaptation=.*$|adaptation=http://repo.merproject.org/obs/nemo:/devel:/hw:/lge:/hammerhead/$REPO/|" /usr/share/ssu/repos.ini

ssu dr adaptation0

ssu release $RELEASE
ssu dr extra
ssu dr mw
ssu ar mw http://repo.merproject.org/obs/nemo:/devel:/hw:/common/$REPO/
ssu er mw
ssu ar dhd http://repo.merproject.org/obs/nemo:/devel:/hw:/lge:/hammerhead/$REPO/

# Because Jolla Store started working only recently, you may have
# many of OpenRepos enabled. It's recommended to disable them, even
# though version --dup will do  best-effort to isolate repositories:
ssu lr | grep openrepos

devel-su zypper clean -a
devel-su zypper ref -f

version --dup
# if above fails, try again
version --dup

# In 1.1.9 this line is no longer needed:
devel-su zypper rm jolla-camera

sync
devel-su reboot
 

How to Build Image

Hardware Support

For current status of hardware support refer to https://wiki.merproject.org/wiki/Adaptations/libhybris

Play Android OpenGL Classic Games

devel-su zypper in apkenv

Find a game's APK on the Internet that matches _exact version_ from this list: http://wiki.maemo.org/Apkenv/Game_Compatibility

Once downloaded, perform in Terminal as normal user, e.g.:

apkenv Angry_Birds_2_3_0.apk

Enjoy!

You're welcome to help us by writing a small UI app that manages/launches those, or provides .desktop files.

Games tested on Nexus 5 successfully:

Amazing Alex
Angry Birds
Cut the Rope
Fruit Ninja
Petals Redux
Plants vs. Zombies (no sound, WIP)
Rabit Game 2
Super Hexagon
World of Goo

To join the effort (or request a game), join #apkenv IRC channel on Freenode

Android Dalvik/Art apps are _not_ supported by apkenv.

MultiROM

Known Issues

Refer to bugzilla for list of known issues.

Personal tools