Jump to content

Porting to a new device/Installation

From postmarketOS Wiki
TODO TODO: Merge with Pmbootstrap/Using pmbootstrap#Installing postmarketOS.
TODO TODO: Explain better what happens when you run the command.
Note If you get a "no space left on device" error, please report in #928.
Notice With !2426 pmboostrap moved to using GPT as a default parititon table, if the device does not support GPT (e.g. legacy u-boot), then add
deviceinfo_partition_type="msdos"
to the deviceinfo file.

To install to the system partition of an image file, run the following:

$ pmbootstrap install

If you want to install to a SD card, insert it into your PC and run the following. Replace mmcblk0 with the actual device name (lsblk is handy to find out the correct device name). You don't need to format or partition it beforehand, pmbootstrap will take care of that.

$ pmbootstrap install --sdcard=/dev/mmcblk0