Module Integration Guides
...
Device Setup
Raspberry Pi
7 min
selecting the os 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 https //drive google com/file/d/1fdh88is wuuvqt6spsit7vmy3tzezecw/view?usp=sharing link install the rpi imager software by following the instructions in https //www raspberrypi com/software/ 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 sudo rpi imager 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 flashing the image to the sd card 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 partition schema 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 https //emteria com/kb/connect uart rpi link on how to connect the pi to the system via uart sdk setup once the pi is up run the below one time setup script this script installs bytebeam's linux agent https //github com/bytebeamio/uplink as well as scripts required for over the air updates sudo curl proto '=https' tlsv1 2 ssf https //raw\ githubusercontent com/bytebeamio/uplink/main/scripts/one time setup sh | sudo bash
