Help. I can’t get my Penta SATA HAT Top board working correctly on my PI5 w/Bookworm. No fan/display.
I2C is enabled. and it can see it.
But it looks like something is wrong with it running in Python.
Could use some help.
pi@zomv:~ $ 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: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
pi@zomv:~ $ sudo systemctl status rockpi-penta.service
○ rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; preset: enabled)
Active: inactive (dead) since Thu 2024-09-05 20:45:37 CDT; 9min ago
Duration: 1.847s
Process: 1215 ExecStart=/usr/bin/python3 /usr/bin/rockpi-penta/main.py (code=exited, status=0/SUCCESS)
Main PID: 1215 (code=exited, status=0/SUCCESS)
CPU: 132ms
Sep 05 20:45:37 zomv python3[1215]: File “/usr/lib/python3.11/threading.py”, line 975, in run
Sep 05 20:45:37 zomv python3[1215]: self._target(*self._args, **self._kwargs)
Sep 05 20:45:37 zomv python3[1215]: File “/usr/bin/rockpi-penta/fan.py”, line 101, in running
Sep 05 20:45:37 zomv python3[1215]: pin = Gpio(0.025)
Sep 05 20:45:37 zomv python3[1215]: ^^^^^^^^^^^
Sep 05 20:45:37 zomv python3[1215]: File “/usr/bin/rockpi-penta/fan.py”, line 58, in init
Sep 05 20:45:37 zomv python3[1215]: self.line = gpiod.Chip(os.environ[‘FAN_CHIP’]).get_line(int(os.environ[‘FAN_LINE’]))
Sep 05 20:45:37 zomv python3[1215]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep 05 20:45:37 zomv python3[1215]: FileNotFoundError: [Errno 2] No such file or directory
Sep 05 20:45:37 zomv systemd[1]: rockpi-penta.service: Deactivated successfully.