Setup RPi on OBC

img

Setup Root Account

sudo -i
nano /etc/ssh/sshd_config
#PermitRootLogin without-password

PermitRootLogin yes
/etc/init.d/ssh restart
sudo -i
passwd root

Setup DTB and Config

cd /boot
wget https://github.com/UNEPG/unisat/raw/master/obc/dt-blob.bin
wget https://github.com/UNEPG/unisat/raw/master/obc/config.txt
reboot

I2C

Enable:

raspi-config nonint do_i2c 0 && cat /boot/cmdline.txt

Disable:

But wait, why do you want to disable I2C on OBC?

raspi-config nonint do_i2c 1 && cat /boot/cmdline.txt

Serial

Disable serial console, but enable serial hardware (/dev/serial0) OBC_DEFAULT

raspi-config nonint do_serial 2 && cat /boot/cmdline.txt

Disable serial console:

raspi-config nonint do_serial 1 && cat /boot/cmdline.txt

Enable serial console:

raspi-config nonint do_serial 0 && cat /boot/cmdline.txt

Camera

Enable Camera Interface:

raspi-config nonint do_camera 0 && cat /boot/cmdline.txt

Disable Camera Interface:

But wait, why do you want to disable Camera on OBC?

raspi-config nonint do_camera 1 && cat /boot/cmdline.txt

Hostname

NOTE: Sometimes this may makes your OBC useless.

Get Current Hostname

raspi-config nonint get_hostname

Change hostname (example : change to a11)

raspi-config nonint do_hostname a11 && cat /boot/cmdline.txt

Sync Date & Time

Note: this requires internet connection.

date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

This may work all linux based systems

GPIO

sudo apt install raspi-gpio