Skip to content

Two small scripts to make control of compute nodes on a TuringPi easier

License

Notifications You must be signed in to change notification settings

pmhausen/turingpi-i2c-scripts

Repository files navigation

Two small scripts to make control of compute nodes on a TuringPi easier

Installation on control node

Linux (Raspberry Pi OS)

  1. Enable the I2C bus by adding this line to /boot/config.txt in section all:

    dtoverlay=i2c1,pins_44_45
  2. Install i2c-tools:

    sudo apt-get install i2c-tools

FreeBSD

  1. Enable the I2C bus by adding this line to /boot/efi/config.txt in section all:

    dtoverlay=i2c1,pins_44_45
  2. Install required packages

    pkg install rpi-firmware xxd
  3. Copy the overlay for the I2C bus to the boot partiton:

    cp /usr/local/share/rpi-firmware/overlays/i2c1.dtbo /boot/efi/overlays/

OS independent

  1. Reboot the control node

  2. Install scripts:

    git clone https://github.com/pmhausen/turingpi-i2c-scripts.git
    cd turingpi-i2c-scripts
    make install

Usage

root@pi1:~# nodectl
usage: nodectl <node> on|off
root@pi1:~# nodectl 2 off
root@pi1:~# nodestat
NODE STATE
 1    on
 2    off
 3    on
 4    on
 5    on
 6    on
 7    on
root@pi1:~# nodectl 2 on
root@pi1:~# nodestat
NODE STATE
 1    on
 2    on
 3    on
 4    on
 5    on
 6    on
 7    on

About

Two small scripts to make control of compute nodes on a TuringPi easier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published