Hello.
I have a problem with starting rockpi-penta.service on Armbian 24.8.2 bookworm.
In a service log i see
rock-3a python3[1584]: File “/usr/bin/rockpi-penta/fan.py”, line 98, in running
rock-3a python3[1584]: pin.period_us(40)
rock-3a python3[1584]: File “/usr/bin/rockpi-penta/fan.py”, line 36, in period_us
rock-3a python3[1584]: self.period(us * 1000)
rock-3a python3[1584]: File “/usr/bin/rockpi-penta/fan.py”, line 32, in period
rock-3a python3[1584]: with open(os.path.join(self.filepath, ‘period’), ‘w’) as f:
rock-3a python3[1584]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rock-3a python3[1584]: FileNotFoundError: [Errno 2] No such file or directory: ‘/sys/class/pwm/pwmchip15/pwm0/period’
rock-3a python3[1584]: Waring: init pwm error
rock-3a systemd[1]: rockpi-penta.service: Deactivated successfully.
And if I run script directly
python3 /usr/bin/rockpi-penta/fan.py
Traceback (most recent call last):
File “/usr/bin/rockpi-penta/fan.py”, line 108, in
running()
File “/usr/bin/rockpi-penta/fan.py”, line 95, in running
if os.environ[‘HARDWARE_PWM’] == ‘1’:
~~~~~~~~~~^^^^^^^^^^^^^^^^
File “”, line 679, in getitem
KeyError: ‘HARDWARE_PWM’
if I run the oled script
python3 /usr/bin/rockpi-penta/oled.py
Traceback (most recent call last):
File “/usr/bin/rockpi-penta/oled.py”, line 33, in
disp = disp_init()
^^^^^^^^^^^
File “/usr/bin/rockpi-penta/oled.py”, line 25, in disp_init
RESET = getattr(board.pin, os.environ[‘OLED_RESET’])
~~~~~~~~~~^^^^^^^^^^^^^^
File “”, line 679, in getitem
KeyError: ‘OLED_RESET’
Do I need to install additional packages?