Installing postmarketOS (Mainline Linux)
postmarketOS (pmOS) is a Linux distribution based on Alpine Linux tailored specifically for smartphones and mobile embedded platforms. Because Snapdragon 410 (MSM8916) has exceptional upstream Linux kernel support, postmarketOS offers a lean, security-focused, and modern Linux environment.
Why postmarketOS?
Section titled “Why postmarketOS?”- Upstream Mainline Kernel: Runs bleeding-edge Linux (6.x+) without vendor Android hacks.
- Ultra-Lightweight Memory Footprint: Idle RAM usage is often under 40–60 MB, leaving over 400 MB of free memory on 512 MB devices!
- Fast Package Management:
apkpackage manager is lightning fast on eMMC storage. - Active Upstream Community: Maintained by the core mobile Linux developers.
Method 1: Using pmbootstrap (Recommended)
Section titled “Method 1: Using pmbootstrap (Recommended)”pmbootstrap is postmarketOS’s official Python deployment tool.
1. Install pmbootstrap
Section titled “1. Install pmbootstrap”# On your Linux/macOS host machinepip install --user pmbootstrap2. Initialize the Device Profile
Section titled “2. Initialize the Device Profile”pmbootstrap initDuring the prompt:
- Work path: Keep default (
~/.local/var/pmbootstrap) - Channel:
edge(orv24.06+) - Vendor:
generic(orqualcomm) - Device: Select
generic-msm8916or your specific board model (msm8916-ufi001b,msm8916-ufi003) - User Interface:
none(headless server) - Extra packages:
networkmanager,modemmanager,openssh
3. Build & Flash
Section titled “3. Build & Flash”Put your dongle into fastboot mode:
# Build the imagespmbootstrap install
# Flash kernel and bootloaderpmbootstrap flasher flash_kernel
# Flash the root filesystempmbootstrap flasher flash_rootfsReboot the dongle:
fastboot rebootConnecting & First Boot
Section titled “Connecting & First Boot”postmarketOS brings up USB networking with CDC-ECM:
- Host PC IP:
172.16.42.2 - Dongle IP:
172.16.42.1
Connect via SSH:
ssh user@172.16.42.1Once connected, update packages and install your needed software:
sudo apk updatesudo apk upgradesudo apk add htop curl nano docker