I’m installing a Penta SATA Hat kit using a Rock Pi 4B board running rock-pi-4b_bookworm_kde_r4.output_512 image. Sata disks appear OK under the OS but the TOP board does not work.Fan does not run and OLED displays only: ROCKPI SATA HAT loading…
Installed rockpi-penta-0.2.2.deb but I’m getting the following error when running it:
radxa@rock-pi-4b:~$ 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 Wed 2026-08-12 18:41:38 -03; 5min ago
Duration: 1.374s
Process: 717 ExecStart=/usr/bin/python3 /usr/bin/rockpi-penta/main.py (code=exited, status=0/SUCCESS)
Main PID: 717 (code=exited, status=0/SUCCESS)
CPU: 692ms
Aug 12 18:41:38 rock-pi-4b python3[717]: File “/usr/bin/rockpi-penta/fan.py”, line 98, in running
Aug 12 18:41:38 rock-pi-4b python3[717]: pin.period_us(40)
Aug 12 18:41:38 rock-pi-4b python3[717]: File “/usr/bin/rockpi-penta/fan.py”, line 36, in period_us
Aug 12 18:41:38 rock-pi-4b python3[717]: self.period(us * 1000)
Aug 12 18:41:38 rock-pi-4b python3[717]: File “/usr/bin/rockpi-penta/fan.py”, line 32, in period
Aug 12 18:41:38 rock-pi-4b python3[717]: with open(os.path.join(self.filepath, ‘period’), ‘w’) as f:
Aug 12 18:41:38 rock-pi-4b python3[717]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 12 18:41:38 rock-pi-4b python3[717]: FileNotFoundError: [Errno 2] No such file or directory: ‘ /sys/class/pwm/pwmchip1/pwm0/period’
Aug 12 18:41:38 rock-pi-4b python3[717]: Waring: init pwm error
Aug 12 18:41:38 rock-pi-4b systemd[1]: rockpi-penta.service: Deactivated successfully.
radxa@rock-pi-4b:~$
DIrectory /sys/class/pwm/pwmchip1/pwm0 does not exist on the OS ! Both subdirectories pwmchip0 and pwmchip1 do not have pwm0 subdirectory or file. Please see below:
radxa@rock-pi-4b:/sys/class/pwm/pwmchip1$ ls
device export npwm power subsystem uevent unexport
/etc/rockpi-penta.env contents:
SDA=I2C7_SDA
SCL=I2C7_SCL
OLED_RESET=GPIO4_D2
PWMCHIP=1
BUTTON_CHIP=4
BUTTON_LINE=18
HARDWARE_PWM=1
radxa@rock-pi-4b:/etc$ cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)”
NAME=“Debian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=debian
HOME_URL=“https://www.debian.org/”
SUPPORT_URL=“https://www.debian.org/support”
BUG_REPORT_URL=“ I Challenge Thee
radxa@rock-pi-4b:/etc$
radxa@rock-pi-4b:~$ sudo journalctl -u rockpi-penta.service
Aug 12 19:59:14 rock-pi-4b systemd[1]: Started rockpi-penta.service - Rockpi SATA Hat.
Aug 12 19:59:14 rock-pi-4b python3[2530]: OSError: [Errno 16] Device or resource busy
Aug 12 19:59:14 rock-pi-4b python3[2530]: During handling of the above exception, another exception occurred:
Aug 12 19:59:14 rock-pi-4b python3[2530]: Traceback (most recent call last):
Aug 12 19:59:14 rock-pi-4b python3[2530]: File “/usr/bin/rockpi-penta/fan.py”, line 24, in init
Aug 12 19:59:14 rock-pi-4b python3[2530]: with open(f"/sys/class/pwm/{chip}/export", ‘w’) as f:
Aug 12 19:59:14 rock-pi-4b python3[2530]: OSError: [Errno 16] Device or resource busy
Aug 12 19:59:14 rock-pi-4b python3[2530]: Exception in thread Thread-4 (running):
Aug 12 19:59:14 rock-pi-4b python3[2530]: Traceback (most recent call last):
Aug 12 19:59:14 rock-pi-4b python3[2530]: File “/usr/lib/python3.11/threading.py”, line 1038, in _bootstrap_inner
Aug 12 19:59:14 rock-pi-4b python3[2530]: self.run()
Aug 12 19:59:14 rock-pi-4b python3[2530]: File “/usr/lib/python3.11/threading.py”, line 975, in run
Aug 12 19:59:14 rock-pi-4b python3[2530]: self._target(*self._args, **self._kwargs)
Aug 12 19:59:14 rock-pi-4b python3[2530]: File “/usr/bin/rockpi-penta/fan.py”, line 98, in running
Aug 12 19:59:14 rock-pi-4b python3[2530]: pin.period_us(40)
Aug 12 19:59:14 rock-pi-4b python3[2530]: File “/usr/bin/rockpi-penta/fan.py”, line 36, in period_us
Aug 12 19:59:14 rock-pi-4b python3[2530]: self.period(us * 1000)
Aug 12 19:59:14 rock-pi-4b python3[2530]: File “/usr/bin/rockpi-penta/fan.py”, line 32, in period
Aug 12 19:59:14 rock-pi-4b python3[2530]: with open(os.path.join(self.filepath, ‘period’), ‘w’) as f:
Aug 12 19:59:14 rock-pi-4b python3[2530]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 12 19:59:14 rock-pi-4b python3[2530]: FileNotFoundError: [Errno 2] No such file or directory: ‘/sys/class/pwm/pwmchip1/pwm0/period’
Aug 12 19:59:14 rock-pi-4b python3[2530]: Waring: init pwm error
Aug 12 19:59:14 rock-pi-4b systemd[1]: rockpi-penta.service: Deactivated successfully.
Any hints how to fix this problem? Any overlay I’m missing?
Thanks for any help.
MH