Commit 6e526f7f authored by Ivan Tyagov's avatar Ivan Tyagov

Add notes for slapos / re6stnet setup for debian 10.

parent 06d8f00a
#!/usr/bin/python3 #!/usr/bin/python3
""" """
This is an example of connecting LIME2 + LIME2-SHIELD + MOD-IO (over UEXT) and controlling a relay (on / off). This is an example of connecting LIME2 + LIME2-SHIELD + MOD-IO (over UEXT) and controlling a relay (on / off).
It's mixed with slapos / re6stnet install.
I. prepare lime2 + lime2's shield + MOD-IO I. prepare lime2 + lime2's shield + MOD-IO
# install packages # install packages at your laptop
root@t470:~/tmp$ apt install minicom root@t470:~/tmp$ apt install minicom
ivan@t470:~/tmp$ wget http://images.olimex.com/release/a20/A20-OLinuXino-bionic-minimal-20200601-122736.img.7z # XXX: currently nexedi suports fro armhf only debian (slapos + re6stnet packages)
ivan@t470:~/tmp$ 7z e A20-OLinuXino-bionic-minimal-20200601-122736.img.7z ivan@t470:~/tmp$ wget http://images.olimex.com/release/a20/A20-OLinuXino-buster-minimal-20200601-122725.img.7z
ivan@t470:~/tmp$ 7z e A20-OLinuXino-buster-minimal-20200601-122725.img.7z
# download from https://www.balena.io/etcher/ # download from https://www.balena.io/etcher/
ivan@t470:~/tmp$ unzip ../balena-etcher-electron-1.5.95-linux-x64.zip ivan@t470:~/tmp$ unzip ../balena-etcher-electron-1.5.95-linux-x64.zip
ivan@t470:~/tmp$ chmod o+x balenaEtcher-1.5.95-x64.AppImage ivan@t470:~/tmp$ chmod o+x balenaEtcher-1.5.95-x64.AppImage
...@@ -58,6 +61,22 @@ root@a20-olinuxino:~# i2cdetect -r 1 # should show 0х58 is available ...@@ -58,6 +61,22 @@ root@a20-olinuxino:~# i2cdetect -r 1 # should show 0х58 is available
II. finally run this script as root, you should see RELAY1's led showing green color. II. finally run this script as root, you should see RELAY1's led showing green color.
III. Integration with Nexedi's toolset for Wendelin
# re6snet
root@a20-olinuxino:~# apt install htop tig git etckeeper vim
root@a20-olinuxino:~# wget https://deploy.erp5.net/gnet/re6st && bash re6st # get re6stnet token from slapos.vifib.com
root@a20-olinuxino:~# echo "default" >> /etc/re6stnet/re6stnet.conf
root@a20-olinuxino:~# /etc/init.d/re6stnet restart
# slapos
root@a20-olinuxino:~# wget https://deploy.erp5.net/slapos && bash slapos # get slapos token from slapos.vifib.com
# fluentd
ivan@t470:~$ slapos console
>>> release="https://lab.nexedi.com/nexedi/slapos/raw/master/software/fluentd/software.cfg"
>>> supply(release, "COMP-3217")
""" """
from pyA20Lime2 import i2c from pyA20Lime2 import i2c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment