PinePhone with postmarketOS

PinePhone with postmarketOS

PinePhone with postmarketOS, image # 1

pmOS installation guide (firmware)

If you have a device that has been ported to the postmarket, this page will help you to obtain, build and install postmarketOS on this device. All commands must be entered in the terminal are prefixed with $. You don’t have to insert the character, it just means that the following commands are used to enter / run in the terminal. For example, the following command to list the contents of the current working directory, ls will be listed on the page as:

$ ls

System requirements

We assume you are using Gnu/Linux. If you haven’t installed Gnu/Linux first, set up a virtual machine using VirtualBox.
Python 3.4+ and git must be installed (see the documentation of your distribution for installing packages)
Several gigabytes of free space in the ROM

The preparatory phase

Run the following commands in the Linux terminal to work with.

$ git clone
$ cd pmbootstrap
$ ./ init

Enter the device manufacturer and then the code name of your device.

The list of supported devices can be found here:

If you are a programmer, you can help us with porting the system to a new device!

Choose your target device vendor (either an existing one, or a new one for porting).
Available vendors (45): amazon, asus, bq, chuwi, fairphone, finepower, fujitsu, google, gp, hisense, htc, huawei, infocus, jolla, leeco, lenovo, lg, medion, meizu, motorola, nextbit, nobby, nokia, oneplus, oppo, ouya, pine64, planet, purism, qemu, raspberry, samsung, semc, sony, surftab, t2m, tablet, teclast, wiko, wileyfox, wingtech, xiaomi, yu, zte, zuk

Vendor [nokia]: samsung
Available codenames (43): a3ulte, a5ulte, a5y17lte, apexq, ariesve, espresso10, expressatt, golden, gt510wifi, gts210velte, gts210vewifi, hero2lte, herolte, i747m, i8200, i9003, i9070, i9100, i9195, i927, i9305, j1mini3g, j3nxlte, jflte, klte, kminilte, kylepro, kylessopen, kylevess, lt01wifi, lt023g, maguro, manta, matissewifi, n5110, n7100, nevisp, p4wifi, royss, s6500d, serranodsdd, serranovelte, zanin

И имя пользователя. Username [user]: имяпользователя

User interface

Carefully choose the user interface that you want to install. Check the wiki page of your device for the presence of interfaces that are known to work with your device. Weston and XFCE4 can be used on devices that do not have 3D hardware acceleration (most of them!), other noticeable slow down. Please read the relevant article of the user interface for information about how to use each interface, and keep in mind that most of them can’t be used.

Доступные пользовательские интерфейсы (5):
* none: нет графической среды
* hildon: (X11) легкий интерфейс GTK+2 (оптимизирован для сенсорных экранов с одним касанием)
* luna: (Wayland) webOS UI, портированный из проекта LuneOS (пока не работает)
* plasma-mobile: (Wayland) мобильный вариант KDE Plasma, оптимизированный для сенсорного экрана
* weston: (Wayland) Reference compositor (демо, не телефонный интерфейс)
* xfce4: (X11) легкая ГТК+2 СРС (рекомендуется)
User interface [weston значение по-умолчанию]:Здесь введите название среды, например mate

If You don’t know what you want to change something, you can respond to the default values, just press Enter.

Working directory

Make sure the location has several GB of free space, and that’s a relatively standard Linux file system (so it supports device nodes and symbolic links). In particular, supported several: eCryptFS, encfs, fat, ntfs, nfs shares, tmpvs, VirtualBox shared folders.

Расположение рабочей папки. Несколько chroot-окружении (родные, телефона, устройства файловых систем) будут созданы там.
Work path [/home/user/.local/var/pmbootstrap]:

Other options

Параметры сборки: количество потоков сборки (число ядер процессора +1): 3, кэш на ccache: 5Гб
Менять их? (y/ n) [n]:
Дополнительные пакеты, которые будут установлены в корневой ФС. Укажите их в списке через запятую (например: vim, file) или " none"
Дополнительные пакеты [нет]:
Часовой пояс хоста: Азия / Екатеринбург
Использовать этот Часовой пояс вместо GMT? (y/ n) [y]:

Installation and firmware

Not all installation methods and firmware work for all devices. Please check the wiki page of your device for further instructions! Below You will find a General explanation of what actions the installation and firmware, in case the installation instructions are missing for your device. If so, please expand the Wiki.

pmbootstrap install

The action “install”, in fact, performs the following actions:

building a chroot with a full install, as it will be available on the device
copying it to an encrypted file system image
asking user password encryption

You can disable the full disk encryption (FDE) option
–no-fde (perhaps interface fde osk-sdl have not yet been transferred to your device).
By default already off. On the contrary, to enable it add the key --fde

In addition, you can change the output Type (system image) to something else with the following parameters.

  • --sdcard: formatting and copying system on the SD card
  • --android-recovery-zip: creates a zip file that you can use with TWRP, CWM or other recovery systems Android.

Examples of commands (it makes sense to use only one):

$ ./ install
$ ./ install --sdcard=/dev/mmcblk
$ ./ install --android-recovery-zip
$ ./ install --help

pmbootstrap flash

$ ./ flasher flash_rootfs

This command wraps the different flash programs (such as fastboot and heimdall) General syntax and automatically fills in the path to the generated file. Usually you have to flash the system image (if You did not install the SD card or the zip recovery):

If your system partition is too small for the generated image, the system can be flashed to another section. Just don’t forget to erase all previous settings postmarketOS in other sections, because the boot script will start with the first one he faced. (To remove a previous version, use dd or just install it on a known working OS, for example Android).

./ flasher flash_rootfs --partition userdata

And then you need to load or flash the kernel (so only run one of the commands). Again, this is not necessarily when you used the restore zip. But it is necessary in most cases with an SD card (unless the device can’t load the kernel from the SD card, such as N900).

$ ./ flasher boot
# Запуск boot.img без прошивки $ ./ flasher flash_kernel
# Прошивка boot.img в бут-раздел

Like any team pmbootstrap, you can check the help page for details:

$ ./ flasher --help
$ ./ flasher flash_rootfs --help

This article is a translation of the original articles of the draft pmbootstrap

The original here:

PinePhone with postmarketOS, image # 2

Community Pine64 announced the imminent start of accepting pre-orders for the smartphone PinePhone postmarketOS Community Edition with IOS mobile platform postmarketOS based on Alpine Linux, Musl and BusyBox. Opening of pre-orders scheduled for the beginning of July 2020. The cost of the smartphone will amount to 149.99 dollars.

The default value is the user shell Phosh developed by the company for the Purism Librem 5 smartphone based on the technology of the GNOME and Wayland. If desired, the user can upload the firmware with the KDE Plasma Mobile, but in order not to duplicate the efforts at stabilization postmarketOS Community Edition primary environment selected Phosh. Of the features of the firmware it is noted that the application of new installer to support installation with encrypted all data on the drive (the password for access to encrypted partitions is set at first boot).

The firmware is still under beta testing and not all of the errors and omissions corrected (major problems they promise to solve it before the delivery devices on pre-order). However, the basic functionality of a smartphone works, including the means to make calls, send and receive SMS, access the network via the cellular network or Wi-Fi. The interface is optimized for touch screens of small size and is based on standard technologies GNOME or KDE, depending on the selected shell.

Hardware PinePhone is designed to use interchangeable components – most of the modules are not soldered and connected via detachable cables, allowing, for example, if you want to replace the default one mediocre camera to a higher quality. The device is built on a Quad-core SoC Allwinner A64 c ARM Mali 400 MP2 GPU, has 2 GB of RAM, 5.95-inch screen (1440×720 IPS), Micro SD (support boot from SD card), 16GB eMMC (internal), USB-C port with USB Host and a combined video output for monitor connection, Wi-Fi 802.11 b/g/n, Bluetooth 4.0 (A2DP), GPS, GPS-A, GLONASS, dual cameras (2 and is 5mpx), a 3000mAh battery, hardware components with switchable LTE/GNSS, Wi-Fi, microphone and speakers.

The aim of the project postmarketOS is the possibility of using a GNU/Linux distribution on a smartphone, independent of life-cycle support for the official firmware and not tied to the model solutions from major industry players, defining the vector of development.




0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments

Do NOT follow this link or you will be banned from the site!
Would love your thoughts, please comment.x

Spelling error report

The following text will be sent to our editors: