Skip to content

Installing P4Pi

Sandor Laki edited this page Aug 25, 2022 · 13 revisions

Installing P4Pi

Notice: Always install a P4Pi image and not the official Raspberry Pi image.

Preparing the SD Card

Option 1: Using Raspberry Pi Imager (Recommended)

  1. Download the most recent P4Pi image from the P4Pi repository.

The latest release is available here. (Download the p4pi-image-...-lite.zip file from the list of assets.)

While released images are recommended, recent development images are available here. Choose the most recent workflow run, and download its artifact (bottom of the page). Note that after some time development images become unavailable.

You will need to extract the image, and about 5GB of free disk space:

a. First unzip the image (note that the latest Raspberry Pi Imager can directly burn the zipped imageand thus this step is not required):

  unzip p4pi-image-<version>.zip

b. Untar the unzipped, still compressed image (this stage may not be required in some releases):

  tar xf p4pi-image-<version>.tar.xz
  1. Install and run the Raspberry Pi Imager available here or here.

  2. If you are using a new microSD card, first format your microSD as follows:

    a. Under Operating System select Erase

    b. Under Storage select your microSD

    c. Select Write, and wait for the process to complete

  3. Then install on the microSD card the downloaded P4Pi image as follows:

a. Under Operating System, select Use custom, and point to the P4Pi image file

Select Custom Image

b. Under Storage select your microSD card

Select Storage

c. Select Write, and wait for the process to complete

Select Write

  1. plug the SD card into the Raspberry Pi

Option 2: Using dd (For experts)

Beware: If you choose the wrong device, you might overwrite important parts of your system. Double check it's the correct device!

  1. Plug an SD card which you would like to entirely overwrite into your SD card reader.

  2. Assuming your SD card reader provides the device /dev/mmcblk0, copy the image onto the SD card. Change the image name (if=) to the filename of your image.

    sudo dd if=p4pi-2021-07-22-dfc5edc3-lite.img of=/dev/mmcblk0 bs=64k oflag=dsync status=progress

  3. Plug the SD card into the Raspberry Pi.

Connecting Raspberry Pi

If you have a brand new Raspberry Pi, follow the setup instructions at the Raspberry Pi Website.

Clone this wiki locally