postmarketOS is a touch-optimized and pre-configured Alpine Linux. It can be installed on smartphones and other devices. It is in a very early, experimental state and not usable for most people yet. pmbootstrap allows installation and development of pmOS.

The Flame device is the official reference device for developing, testing, and debugging Firefox OS and open web apps.



CPU ArchitectureARMv7 Cortex A7
ChipsetQualcomm MSM8210 Snapdragon 200
CPU1.2GHZ Dual core processor
GPUQualcomm Adreno 302
Internal Storage8 GiB
Display Size4.5 Inches
Display ResolutionFWVGA (480 × 864 Pixels)
Rear Camera5.0 Megapixels
Front Camera2.0 Megapixels
Camera FlashYes
WiFi802.11 b/g/n
Dual SIMYes
Band GSM850 / 900 / 1800 / 1900 MHz
Band UMTS850 / 900 / 1900 / 2100 MHz
MicroSD slotYes
Battery Capacity1,800 mAh
Dimensions132.0 × 68.0 × 10.0 mm
Weight120 g


USB networkAfter connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
FlashingIt is possible to flash the device with pmbootstrap flasher.
TouchTouching the screen is recognized properly.
ScreenThe device’s display is working.
WiFiConnecting to wireless network is possible.
XWaylandShowing X11 applications in a Wayland compositor works.
FDEFull disk encryption and unlocking with osk-sdl.
MainlineInstead of a Linux kernel fork, it is possible to run mainline.
BatteryCharging the battery is possible.
3D accelerationHardware accelerated 3D graphics.
AccelerometersThe sensor that measures proper acceleration works.
AudioUsing the device’s speakers/headphone jack works.
BluetoothIt’s possible to pair and use other devices via the bluetooth protocol.
CameraTaking photos and videos works.
GPSThe Global Positioning System sensor works.
Mobile DataConnecting to the Internet via cellular network.
SMSSending and receiving short messages works as intended.
CallsTalking to other people over the cellular network.


  • If you don’t have Linux installed, please set up a virtual machine with VirtualBox first.
  • Python 3.4+ and git must be installed.
  • A few gigabytes of free space.

Start by cloning the pmbootstrap git repo.

$ git clone
$ cd pmbootstrap

Initialize default configuration for your device. Make sure you specify t2m-flame when asked. Also, select the plasma-mobile user interface, unless you really want weston. If you want no GUI, select none.

$ ./ init
[2001] Location of the 'work' path. Multiple chroots (native, device arch, device rootfs) will be created in there.
[2001] Work path [/home/user/.local/var/pmbootstrap]: 
[2006] Target device (either an existing one, or a new one for porting).
[2006] Available (60): amazon-thor, asus-flo, asus-grouper, asus-t00f, asus-tf101, fairphone-fp2, google-glass, gp-peak, htc-ace, htc-bravo, huawei-angler, huawei-y530, leeco-s2, lenovo-karate, lg-d285, lg-d855, lg-dory, lg-h815, lg-hammerhead, lg-lenok, lg-mako, motorola-falcon, motorola-osprey, motorola-potter, motorola-shamu, motorola-titan, nextbit-robin, nokia-n9, nokia-n900, oneplus-bacon, oneplus-onyx, qemu-aarch64, qemu-amd64, qemu-vexpress, samsung-espresso10, samsung-i747m, samsung-i9003, samsung-i9070, samsung-i9100, samsung-i9195, samsung-i9305, samsung-i9505, samsung-klte, samsung-maguro, samsung-manta, samsung-n5110, samsung-n7100, samsung-s6500d, semc-anzu, sony-amami, sony-aries, sony-castor-windy, sony-honami, sony-scorpion, sony-yuga, t2m-flame, teclast-x80pro, wiko-lenny3, xiaomi-armani, xiaomi-ido
[2006] Device [samsung-i9100]: t2m-flame
[2011] Username [user]: 
[2013] Available user interfaces (6): 
[2013] * none: No graphical environment
[2013] * hildon: (X11) Lightweight GTK+2 UI (optimized for single-touch touchscreens)
[2013] * luna: (Wayland) webOS UI, ported from the LuneOS project (Not working yet)
[2013] * mate: (X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended)
[2013] * plasma-mobile: (Wayland) Mobile variant of KDE Plasma, optimized for touchscreen
[2013] * weston: (Wayland) Reference compositor (demo, not a phone interface)
[2013] * xfce4: (X11) Lightweight GTK+2 desktop (stylus recommended)
[2013] User interface [weston]: plasma-mobile
[2020] Build options: Parallel jobs: 2, ccache per arch: 5G
[2020] Change them? (y/n) [n]: 
[2023] Additional packages that will be installed to rootfs. Specify them in a comma separated list (e.g.: vim,file) or "none"
[2023] Extra packages [none]: 
[2026] Your host timezone: Pacific/FJT
[2026] Use this timezone instead of GMT? (y/n) [y]: 
[2028] WARNING: The applications in the chroots do not get updated automatically.
[2028] Run 'pmbootstrap zap' to delete all chroots once a day before working with pmbootstrap!
[2028] It only takes a few seconds, and all packages are cached.
[2028] Done!

Build postmarketOS and install to SD card. We’ll be using the --no-fde parameter since the FDE interface osk-sdl has not been ported to this device yet.

The install action essentially does the following:

  • build a chroot with the full installation as it will be placed on the device.
  • copy that to an encrypted system image file.
  • ask you for the user and encryption passwords.
$ ./ install --no-fde --sdcard /dev/mmcblkX

If you don’t have a SD card reader on your PC/laptop, use an USB adapter and adjust the device path accordingly.

$ ./ install --no-fde --sdcard /dev/sdb

Output should be similar to this.

$ ./ install --no-fde --sdcard=/dev/sdb
[2153] *** (1/5) PREPARE NATIVE CHROOT ***
[2154] (native) install alpine-base
[2156] (native) install cryptsetup util-linux e2fsprogs parted
[2156] *** (2/5) CREATE DEVICE ROOTFS ("t2m-flame") ***
[2157] (native) install qemu-user-static-repack qemu-user-static-repack-binfmt
[2159] Register qemu binfmt (arm)
[2159] (rootfs_t2m-flame) install alpine-base
[2109] (rootfs_t2m-flame) install postmarketos-base ttf-droid device-t2m-flame postmarketos-ui-plasma-mobile
[2133] (rootfs_t2m-flame) write /etc/os-release
[2135] (rootfs_t2m-flame) mkinitfs t2m-flame
[2141]  *** SET LOGIN PASSWORD FOR: 'user' ***
New password: 
Retype new password: 
passwd: password updated successfully
[2151] NOTE: No valid keymap specified for device
[2156] (native) mount /dev/install (host: /dev/sdb)
[2156] EVERYTHING ON /dev/sdb WILL BE ERASED! CONTINUE? (y/n) [n]: y
[2159] (native) partition /dev/install (boot: 37M, root: the rest)
[2101] (native) format /dev/installp2
[2144] (native) mount /dev/installp2 to /mnt/install
[2145] (native) format /dev/installp1 (boot, ext2), mount to /mnt/install/boot
[2147] *** (4/5) FILL INSTALL BLOCKDEVICE ***
[2147] (native) copy rootfs_t2m-flame to /mnt/install/
[2107] NOTE: Public SSH keys not found. Since no SSH keys were copied, you will need to use SSH password authentication!
[2104] *** (5/5) FLASHING TO DEVICE ***
[2104] Run the following to flash your installation to the target device:
[2104] * pmbootstrap flasher flash_kernel
[2104]   Flashes the kernel + initramfs to your device:
[2104]   /home/user/.local/var/pmbootstrap/chroot_rootfs_t2m-flame/boot
[2104]   (NOTE: fastboot also supports booting the kernel/initramfs directly without flashing. Use 'pmbootstrap flasher boot' to do that.)
[2104] * If the above steps do not work, you can also create symlinks to the generated files with 'pmbootstrap export' and flash outside of pmbootstrap.
[2104] Done

After that, boot the phone into fastboot mode (power + volume down) and flash the boot partition.

$ ./ flasher flash_kernel
[2112] (rootfs_t2m-flame) mkinitfs t2m-flame
[2119] (native) flash kernel t2m-flame
[2120] (native) install android-tools
target reported max download size of 301989888 bytes
sending 'boot' (8670 KB)...
OKAY [  1.804s]
writing 'boot'...
OKAY [  0.307s]
finished. total time: 2.111s
[2129] You will get an IP automatically assigned to your USB interface shortly.
[2129] Then you can connect to your device using ssh after pmOS has booted:
[2129] ssh user@
[2129] NOTE: If you enabled full disk encryption, you should make sure that osk-sdl has been properly configured for your device
[2129] Done

Place the SD card in your T2Mobile Flame device, reboot it and enjoy. You can also use ssh to your Flame device, by connecting the Flame with a microUSB cable to your PC/laptop.

$ ssh user@


Since WiFi doesn’t work yet on the Flame device, you will need to enable internet through the USB cable, thus setting the PC/laptop as the gateway and let it do address translation for the smartphone.

On your PC/laptop, you need to enable IPv4 forwarding and add an iptables rule that will perform masquerading (route traffic without disrupting the original traffic).

$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s

On the Flame device, add a default gateway and DNS server (replace with any DNS server you want).

$ sudo route add default gw
$ sudo echo nameserver | sudo tee /etc/resolv.conf
$ sudo echo 'route add default gw' > /etc/local.d/usb_internet.start
$ sudo chmod +x /etc/local.d/usb_internet.start
$ sudo rc-update add local


Takins screenshots is quite easy, just dump the contents of /dev/fb0 device to a raw file, pull it off the device using scp and convert it to png with ffmpeg.

On the device:

$ cat /dev/fb0 > ~/1.raw

On your PC/laptop:

$ scp user@ /tmp/flame-screenshots/
$ cd /tmp/flame-screenshots/
$ ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb24 -s 480x854 -i 1.raw -f image2 -vcodec png screenshot-1-%03d.png

And now, the screenshots.

Plasma Mobile

Plasma Mobile is a Plasma variant for smartphones. KDE Plasma 5 is the fifth and current generation of the desktop environment created by KDE primarily for Linux systems.


Weston is the reference implementation of a Wayland compositor also developed by the Wayland project. It is written in C and published under the MIT License. Weston only has official support for the Linux operating system due to its dependence on certain features of the Linux kernel, such as kernel mode-setting, Graphics Execution Manager (GEM), and udev, which have not been implemented in other Unix-like operating systems.


Hildon is an application framework originally developed for mobile devices (PDAs, mobile phones, etc.) running the Linux operating system as well as the Symbian operating system.

Currently not working.


MATE is a desktop environment forked from the now-unmaintained code base of GNOME 2.

Currently not working.