*** THIS CODE IS ARCHIVED AND NO LONGER MAINTAINED ***
This Arch Linux Package installs all needed scripts and services and configures a Raspberry Pi 3B/3B+ for Argon ONE Mini Computer Case. Raspberry Pi 4B is also supported, but you need use a different branch, which has been patched just for this SBC (scroll down to check out notes).
Here are some notes about the Raspberry Pi 3B/3B+ installation procedure.
- Clone the repository or just download PKGBUILD and argonone.install files
makepkg --install
These are the steps that the installation takes
Install:
pacman -S --needed i2c-tools lm_sensors
Edit /boot/config.txt
and add (if needed):
dtparam=i2c_arm=on
dtparam=i2c-1=on
Edit /etc/modules-load.d/raspberrypi.conf
and add (if needed):
i2c-dev
i2c-bcm2835
You must reboot for these changes to take effect.
Create a new Python virtual environment (version 3.3 or higher):
python -m venv --clear /opt/argonone
source /opt/argonone/bin/activate
pip install pysmbus RPi.GPIO
deactivate
Create and then add permissions:
chmod 755 /usr/bin/argonone-config
Create and then add permissions:
chmod 755 /lib/systemd/system-shutdown/argononed-poweroff.py
Create and then add permissions:
chmod 666 /etc/argononed.conf
Create and then add permissions:
chmod 755 /opt/argonone/bin/argononed.py
Create and then add permissions:
chmod 644 /lib/systemd/system/argononed.service
Enable to launch automatically:
systemctl daemon-reload
systemctl enable argononed.service
There's already a branch patched for Raspberry Pi 4 in this repository. Special thanks to @Elrondo46 for maintaining fork, which has been already merged to /feature/RaspberryPi4 branch.