Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
/ argonone Public archive

Argon One Service and Control Scripts por Raspberry Pi 3B/3B+

License

Notifications You must be signed in to change notification settings

kounch/argonone

Repository files navigation

ArgonOne

*** 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).

Raspberry Pi 3B/3B+ notes

Here are some notes about the Raspberry Pi 3B/3B+ installation procedure.

How to use

  1. Clone the repository or just download PKGBUILD and argonone.install files
  2. makepkg --install

What this package installer does

These are the steps that the installation takes

Packages needed

Install:

pacman -S --needed i2c-tools lm_sensors

System Configuration

Edit /boot/config.txt and add (if needed):

dtparam=i2c_arm=on
dtparam=i2c-1=on

Edit /etc/modules-load.d/raspberrypi.confand add (if needed):

i2c-dev
i2c-bcm2835

You must reboot for these changes to take effect.

Virtual Environment Configuration

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

Files

Config Script

Create and then add permissions:

chmod 755 /usr/bin/argonone-config

Shutdown Script

Create and then add permissions:

chmod 755 /lib/systemd/system-shutdown/argononed-poweroff.py
Daemon Config File

Create and then add permissions:

chmod 666 /etc/argononed.conf

Power Button Script

Create and then add permissions:

chmod 755 /opt/argonone/bin/argononed.py

Daemon Fan Service

Create and then add permissions:

chmod 644 /lib/systemd/system/argononed.service

Enable to launch automatically:

systemctl daemon-reload
systemctl enable argononed.service

Raspberry Pi 4 notes & support

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.