Title here
Summary here
Check whether you have these hardwares before getting start. Hardware Requirements:
- Raspberry Pi (the model used here is 4B)
- Raspberry Pi power supply
- Micro HDMI to HDMI cable
- A screen with HDMI interface
- Mouse
- Keyboard
- SD card
- SD card reader
Download Raspberry Pi Imager:
Write the OS to the SD Card:
Setting Up the Raspberry Pi:
This setup will get your Raspberry Pi up and running with the necessary hardware and software configurations.
Compile and Update RROS Kernel in a Container:
openssh-server
.linux-dovetail-v5.13-dovetail-rebase
directory. Check for successful compilation and then execute ./copy_to_raspberry.sh
.Transfer to Local Machine:
scp
to transfer files like modules.tar.bz2
, dtb.tar.bz2
, Image
, and overlays.tar.bz2
from the container to your local machine. #execute in your local machine
scp root@localhost:/data/bupt-rtos/modules.tar.bz2 ./
scp root@localhost:/data/bupt-rtos/dtb.tar.bz2 ./
scp root@localhost:/data/bupt-rtos/Image ./
scp root@localhost:/data/bupt-rtos/overlays.tar.bz2 ./
Transfer to Raspberry Pi:
scp
to transfer the files to the Raspberry Pi. #transmiss to yout raspi
scp .\Image rtos@192.168.200.16:/home/rtos/
scp .\dtb.tar.bz2 rtos@192.168.200.16:/home/rtos/
scp .\modules.tar.bz2 rtos@192.168.200.16:/home/rtos/
scp .\overlays.tar.bz2 rtos@192.168.200.16:/home/rtos/
Unpack and Reboot on Raspberry Pi:
/home/rtos
directory, run the untar_modules.sh
script to move and extract the necessary files. #!/bin/bash
sudo mv Image /boot/rros.img
rm -fr modules
tar -xvf modules.tar.bz2 modules
sudo cp -r modules/lib/modules/* /lib/modules/
rm -fr overlays
tar -xvf overlays.tar.bz2 overlays
sudo cp -r overlays/* /boot/overlays/
rm -fr dtb.tar boot_dtb
bunzip2 dtb.tar.bz2
tar -xvf dtb.tar
sudo cp -r boot_dtb/* /boot/
kernel=rros.img
to /boot/config.txt
.This process outlines the steps for compiling and deploying the RROS on a Raspberry Pi, including setting up the development environment, compiling the kernel, and transferring and installing the necessary files on the Raspberry Pi.