Converting a standard Raspberry Pi image to PINN format #871
Replies: 2 comments
-
It's probably "better" to grab those ancillary files from https://downloads.raspberrypi.com/raspios_armhf/ rather than http://downloads.raspberrypi.org/raspbian/ 🙂 (although please be aware that the |
Beta Was this translation helpful? Give feedback.
-
I think it would be cool to |
Beta Was this translation helpful? Give feedback.
-
The following procedure allows converting a specific Raspberry Pi OS image (in the form ".img.xz"), so that it can be installed via PINN. The description also covers the O.S. installation process using a standard PINN setup via a local web server.
The procedure can be run with Linux or with Windows on WSL (Ubuntu O.S.; for instance Ubuntu 22.04.5 LTS).
It can be used if a specific Raspberry Pi O.S. version has to be installed instead of the ones already covered by the set of preconfigured repositories in PINN (e.g., an old legacy kernel version).
It is tested with images in https://downloads.raspberrypi.com/ and specifically with https://downloads.raspberrypi.com/raspios_armhf/images/raspios_armhf-2022-04-07/2022-04-04-raspios-bullseye-armhf.img.xz.
It is recommended to run it manually, step by step.
At this step, the installation package is completed.
Now we need to run a web server to serve the content of the previously created
os
directory. There are various methods to do this, and the following is one of the simplest.Avoid running a web server on WSL, unless you configure bridging in order to allow outbound access from other devices; use Windows instead: install Python from the Microsoft Store. Then run a Windows CMD.
Check with a browser that the web server can serve the URLs included in os_list_v3.json. Use a browser in LAN (e.g., a smartphone) to verify that the web server can be accessed via LAN.
The subsequent process is standard PINN administration.
forcetrigger vncinstall ssh provision=...
at the end of cmdline.txt, so that you can use VNC and you can also login to the rescue shell via ssh.Set PINN to boot to VNC and to the resque shell (set
forcetrigger vncinstall ssh
at the end of cmdline.txt).At the end of the installation, from the rescue shell change the password of the
pi
user (generally required to allow login via ssh) and optionally set the wifi network (for recent OS versions which do not use wpa_supplicant.conf). To perform this, at the "OS(es) Installed Successfully" message, do the following:root
user, passwordraspberry
After the OS boot, you can then ssh with
pi
user and with the previously added password.In order to perform an autoboot, if you added
forcetrigger
, you also need to create the autoboot.txt file in the RECOVERY FAT filesystem; from the rescue shell via SSH:You can also:
References:
Default repo_list.json:
Default ancillary downloads for raspbian:
Beta Was this translation helpful? Give feedback.
All reactions