Continuing the discussion from Quad SATA-kit Top Hat install script missing
Installation script failed for me. Raspberry Pi 4 with the Quad Sata NAS kit installed. Thanks for any guidance! I’m booting Ubuntu 22.04 arm64 LTS (fully-up-to-date) directly off of SSD over usb 3.0
$ curl -sL https://rock.sh/get-rockpi-sata | sudo -E bash -
Here is the output. Also emailed in to the listed support email address.
$ curl -sL https://rock.sh/get-rockpi-sata | sudo -E bash -
*** Quad SATA Hat Install for Raspberry Pi 3B+/4B+
*** Tested distributions:
*** Raspbian buster 32-bit/64-bit(testing)
*** Ubuntu Server 20.04 armhf and arm64
*** Please report problems to setq@radxa.com and we will try to fix.
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
running bdist_egg
running egg_info
creating Adafruit_SSD1306.egg-info
writing Adafruit_SSD1306.egg-info/PKG-INFO
writing dependency_links to Adafruit_SSD1306.egg-info/dependency_links.txt
writing requirements to Adafruit_SSD1306.egg-info/requires.txt
writing top-level names to Adafruit_SSD1306.egg-info/top_level.txt
writing manifest file ‘Adafruit_SSD1306.egg-info/SOURCES.txt’
listing git files failed - pretending there aren’t any
reading manifest file ‘Adafruit_SSD1306.egg-info/SOURCES.txt’
adding license file ‘LICENSE’
writing manifest file ‘Adafruit_SSD1306.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/Adafruit_SSD1306
copying Adafruit_SSD1306/init.py -> build/lib/Adafruit_SSD1306
copying Adafruit_SSD1306/SSD1306.py -> build/lib/Adafruit_SSD1306
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/egg
creating build/bdist.linux-aarch64/egg/Adafruit_SSD1306
copying build/lib/Adafruit_SSD1306/init.py -> build/bdist.linux-aarch64/egg/Adafruit_SSD1306
copying build/lib/Adafruit_SSD1306/SSD1306.py -> build/bdist.linux-aarch64/egg/Adafruit_SSD1306
byte-compiling build/bdist.linux-aarch64/egg/Adafruit_SSD1306/init.py to init.cpython-310.pyc
byte-compiling build/bdist.linux-aarch64/egg/Adafruit_SSD1306/SSD1306.py to SSD1306.cpython-310.pyc
creating build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/PKG-INFO -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/SOURCES.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/dependency_links.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/requires.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/top_level.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents…
creating dist
creating ‘dist/Adafruit_SSD1306-1.6.2-py3.10.egg’ and adding ‘build/bdist.linux-aarch64/egg’ to it
removing ‘build/bdist.linux-aarch64/egg’ (and everything under it)
Processing Adafruit_SSD1306-1.6.2-py3.10.egg
Removing /usr/local/lib/python3.10/dist-packages/Adafruit_SSD1306-1.6.2-py3.10.egg
Copying Adafruit_SSD1306-1.6.2-py3.10.egg to /usr/local/lib/python3.10/dist-packages
Adafruit-SSD1306 1.6.2 is already the active version in easy-install.pth
Installed /usr/local/lib/python3.10/dist-packages/Adafruit_SSD1306-1.6.2-py3.10.egg
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: GPIO-v1.0.6 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release
warnings.warn(
Processing dependencies for Adafruit-SSD1306==1.6.2
Searching for Adafruit-GPIO==1.0.6
Best match: Adafruit-GPIO 1.0.6
Processing Adafruit_GPIO-1.0.6-py3.10.egg
Adafruit-GPIO 1.0.6 is already the active version in easy-install.pth
Using /usr/local/lib/python3.10/dist-packages/Adafruit_GPIO-1.0.6-py3.10.egg
Searching for spidev==3.5
Best match: spidev 3.5
Processing spidev-3.5-py3.10-linux-aarch64.egg
spidev 3.5 is already the active version in easy-install.pth
Using /usr/local/lib/python3.10/dist-packages/spidev-3.5-py3.10-linux-aarch64.egg
Searching for Adafruit-PureIO==1.1.5
Best match: Adafruit-PureIO 1.1.5
Processing Adafruit_PureIO-1.1.5-py3.10.egg
Adafruit-PureIO 1.1.5 is already the active version in easy-install.pth
Using /usr/local/lib/python3.10/dist-packages/Adafruit_PureIO-1.1.5-py3.10.egg
Finished processing dependencies for Adafruit-SSD1306==1.6.2
/home/ubuntu
make: Entering directory ‘/tmp/tmp.XIlG2tfeQc/pigpio-v77’
gcc -O3 -Wall -pthread -fpic -c -o pigpio.o pigpio.c
gcc -O3 -Wall -pthread -fpic -c -o command.o command.c
gcc -shared -pthread -Wl,-soname,libpigpio.so.1 -o libpigpio.so.1 pigpio.o command.o
ln -fs libpigpio.so.1 libpigpio.so
strip --strip-unneeded libpigpio.so
size libpigpio.so
text data bss dec hex filename
309886 10688 611640 932214 e3976 libpigpio.so
gcc -O3 -Wall -pthread -fpic -c -o pigpiod_if.o pigpiod_if.c
gcc -shared -pthread -Wl,-soname,libpigpiod_if.so.1 -o libpigpiod_if.so.1 pigpiod_if.o command.o
ln -fs libpigpiod_if.so.1 libpigpiod_if.so
strip --strip-unneeded libpigpiod_if.so
size libpigpiod_if.so
text data bss dec hex filename
67054 8728 49304 125086 1e89e libpigpiod_if.so
gcc -O3 -Wall -pthread -fpic -c -o pigpiod_if2.o pigpiod_if2.c
gcc -shared -pthread -Wl,-soname,libpigpiod_if2.so.1 -o libpigpiod_if2.so.1 pigpiod_if2.o command.o
ln -fs libpigpiod_if2.so.1 libpigpiod_if2.so
strip --strip-unneeded libpigpiod_if2.so
size libpigpiod_if2.so
text data bss dec hex filename
90188 8736 2936 101860 18de4 libpigpiod_if2.so
gcc -O3 -Wall -pthread -c -o x_pigpio.o x_pigpio.c
gcc -o x_pigpio x_pigpio.o -L. -lpigpio -pthread -lrt
gcc -O3 -Wall -pthread -c -o x_pigpiod_if.o x_pigpiod_if.c
gcc -o x_pigpiod_if x_pigpiod_if.o -L. -lpigpiod_if -pthread -lrt
gcc -O3 -Wall -pthread -c -o x_pigpiod_if2.o x_pigpiod_if2.c
gcc -o x_pigpiod_if2 x_pigpiod_if2.o -L. -lpigpiod_if2 -pthread -lrt
gcc -O3 -Wall -pthread -c -o pig2vcd.o pig2vcd.c
gcc -o pig2vcd pig2vcd.o
strip pig2vcd
gcc -O3 -Wall -pthread -c -o pigpiod.o pigpiod.c
gcc -o pigpiod pigpiod.o -L. -lpigpio -pthread -lrt
strip pigpiod
gcc -O3 -Wall -pthread -c -o pigs.o pigs.c
gcc -o pigs pigs.o command.o
strip pigs
make: Leaving directory ‘/tmp/tmp.XIlG2tfeQc/pigpio-v77’
make: Entering directory ‘/tmp/tmp.XIlG2tfeQc/pigpio-v77’
install -m 0755 -d /opt/pigpio/cgi
install -m 0755 -d /usr/local/include
install -m 0644 pigpio.h /usr/local/include
install -m 0644 pigpiod_if.h /usr/local/include
install -m 0644 pigpiod_if2.h /usr/local/include
install -m 0755 -d /usr/local/lib
install -m 0755 libpigpio.so.1 /usr/local/lib
install -m 0755 libpigpiod_if.so.1 /usr/local/lib
install -m 0755 libpigpiod_if2.so.1 /usr/local/lib
cd /usr/local/lib && ln -fs libpigpio.so.1 libpigpio.so
cd /usr/local/lib && ln -fs libpigpiod_if.so.1 libpigpiod_if.so
cd /usr/local/lib && ln -fs libpigpiod_if2.so.1 libpigpiod_if2.so
install -m 0755 -d /usr/local/bin
install -m 0755 pig2vcd /usr/local/bin
install -m 0755 pigpiod /usr/local/bin
install -m 0755 pigs /usr/local/bin
if which python2; then python2 setup.py install ; fi
if which python3; then python3 setup.py install ; fi
/usr/bin/python3
/tmp/tmp.XIlG2tfeQc/pigpio-v77/setup.py:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import setup
running install
running build
running build_py
creating build
creating build/lib
copying pigpio.py -> build/lib
running install_lib
running install_egg_info
Removing /usr/local/lib/python3.10/dist-packages/pigpio-1.46.egg-info
Writing /usr/local/lib/python3.10/dist-packages/pigpio-1.46.egg-info
install -m 0755 -d /usr/local/man/man1
install -m 0644 p*.1 /usr/local/man/man1
install -m 0755 -d /usr/local/man/man3
install -m 0644 p*.3 /usr/local/man/man3
ldconfig
make: Leaving directory ‘/tmp/tmp.XIlG2tfeQc/pigpio-v77’
(Reading database … 131551 files and directories currently installed.)
Preparing to unpack /tmp/tmp.qTmUhCALpC …
Removed /etc/systemd/system/multi-user.target.wants/rockpi-sata.service.
Unpacking rockpi-sata (0.14) over (0.14) …
Setting up rockpi-sata (0.14) …
Created symlink /etc/systemd/system/multi-user.target.wants/rockpi-sata.service → /lib/systemd/system/rockpi-sata.service.
Traceback (most recent call last):
File “/usr/bin/rockpi-sata/misc.py”, line 226, in
open_w1_i2c()
File “/usr/bin/rockpi-sata/misc.py”, line 204, in open_w1_i2c
with open(’/boot/config.txt’, ‘r’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/boot/config.txt’
$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – --
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- 3c – -- –
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – 51 – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
$ uname -r
5.15.0-1014-raspi
$ sudo systemctl status rockpi-sata.service
● rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2022-09-18 10:51:38 PDT; 18s ago
Main PID: 27991 (python3)
Tasks: 6 (limit: 9236)
Memory: 19.2M
CPU: 3.808s
CGroup: /system.slice/rockpi-sata.service
├─27991 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─28472 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─28473 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─28474 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
└─28475 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
Sep 18 10:51:38 scott systemd[1]: Started Rockpi SATA Hat.