The Mer Wiki now uses your Mer user account and password (create account on

Building Sailfish OS for Nexus 5

From Mer Wiki
Revision as of 11:34, 20 July 2014 by Siteshwar (Talk | contribs)

Jump to: navigation, search

Download the HADK documentation from

This document mentions configurations required to build Sailfish OS for Nexus 5 (hammerhead). HADK should be followed as it is and this document should be referred only to learn about build configurations specific to Nexus 5.

HADK mentions references to CM 10.1 while Nexus 5 is based on CM 11. All the steps carried out in HADK should be in context of CM 11 only.


Chapter 3

Install CM 11 instead of CM 10.1 on your device and test the functionality as mentioned in HADK.

Chapter 4

cat <<EOF > $HOME/.hadk.env
export MER_ROOT="[insert value of your choosing]"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="lge"
export DEVICE="hammerhead"
cat <<'EOF' >> $HOME/.mersdkubu.profile
function hadk() { source $HOME/.hadk.env${1:+.$1}; echo "Env setup for $DEVICE"; }
export PS1="HABUILD_SDK [\${DEVICE}] $PS1"
cat <<'EOF' >> $HOME/.mersdk.profile
function hadk() { source $HOME/.hadk.env${1:+.$1}; echo "Env setup for $DEVICE"; }

Chapter 5

sudo mkdir -p $ANDROID_ROOT
sudo chown -R $USER $ANDROID_ROOT
repo init -u git:// -b hybris-11.0
repo sync

Known Issues

  • dhcp assigns wrong ip address to host and it has to be fixed manually to be able to telnet to 2323 :
ifconfig -a and look for the interface name through which device is connected
sudo ifconfig <interface_name> broadcast
  • Lipstick crashes at startup if debugfs is mounted
    • TMP!workaround into your .ks %post section:
rm -f /lib/systemd/system/

Hardware Support

For current status of hardware support refer to


If you need any help join us on #sailfishos-porters on

Personal tools