Raspberry Pi
This section explains how to do an initial setup, for an off-the-shelf Raspberry Pi. To get started, the following things are needed.
- Raspberry Pi Board (In this example we use Raspberry Pi Model 3B+).
- An SD Card (of size 64GB)
- An adapter for power supply (with at least 15W of power)
- ByteBeam RPI image
ByteBeam RPI image can be downloaded from this link.
Install the RPI-imager software by following the instructions in this link.
Once the installation is done, connect the SD card to the Linux machine and launch the RPI-imager software. To do so, simply type in rpi-imager on the terminal.
Then click on Choose OS. A new window will open up, that has the list of all available Operating Systems for the Raspberry Pi.
Select the Custom Image option.
Select the downloaded ByteBeam RPI image.
Using RPI-imager, it’s possible to enable SSH, set a username and password for the Pi, and also input the WiFi credentials. Click on the settings icon on the rpi-imager GUI.
Setup the necessary configurations.
Save the configuration and click on Write, for the image to be flashed on the SD Card.
The SD Card is now setup to contain 4 partitions.
- Partition 1 - Boot partition (/dev/mmcblk0p1)
- Partition 2 - Root partition 1 (/dev/mmcblk0p2)
- Partition 3 - Root partition 2 (/dev/mmcblk0p3)
- Partition 4 - Download partition (/dev/mmcblk0p4)
At any given point in time either "Partition 2" or "Partition 3" will be the active rootfs partition, and the other partition is referred to as the inactive partition. The download partition is where application data is stored. During kernel & rootfs updates, the contents of inactive partitions are replaced with the new rootfs.
Once the flashing is complete, insert the SD card into the Pi and power on the Pi. If everything is alright, the Pi can be accessed either through SSH or via UART. Refer to this link on how to connect the Pi to the system via UART.
Once the Pi is up run the below one-time setup script. This script installs Bytebeam's Linux agent uplink as well as scripts required for over-the-air updates