Rock Pi 4B - Penta Sata Hat top board problem. ROCKPI SATA HAT loading

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

More information:

  1. Replaced FAN and now FAN is at 100% max speed always
  2. OLED display still showing: ROCKPi SATA HAT Loading…

More info on I2C:

radxa@rock-pi-4b:~$ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – –
10: – – – – – – – – – – – UU – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: UU UU – – – – – – – – – – – – – –
50: 50 51 52 53 54 55 56 57 – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
radxa@rock-pi-4b:~$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – –
10: – UU – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –

In order for the Top Module to work using latest Debian Bookworm version you need to use rsetup utility and ENABLE I2C7 overlay !!

Regards

Mauricio

Hello guys

I managed to get most of the Penta SATA Hat working when running under the newest Debian Bookwork release. OLED panel and Fan are working as expected, but a few problems persist and I’d like some hints on how to troubleshoot them:

  1. The disk activity leds are not working. Diks are OK, configured in RAID5 but the disk activity LEDs are not lighting up. Am I missing any overlay that need to be enabled, besides IC27? Is there any way I can identify what is missing using commands such as i2cdetect or gpioinfo?

  2. The SATA TOP Board button is not working. Not a major issue, but I’d like to troubleshoot further. The error message is Button not available, running without button control: failed to configure GPIO pin as input: sysfs-gpio (GPIO18): doesn’t support pull-up/pull-down. Env file is configured with BUTTON_CHIP=4 and BUTTON_LINE=18. Is there any way to identify via commands the correct Chip/Line associated with the top button? Any overlay I’m missing?

  3. Is there any command sequence we can use to properly map and populate the rockpi-penta.env file?

Thanks and Regards
Mauricio