Sata hat top board on armbian

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?

Same on rock-3a_debian_bullseye_cli_b25

any ideas how to fix it?

I solved this issue just by removing top board :smiley:
therefore I don’t need this service.

I just don’t need it. OLED screen will burn itself, it’s also soldered to board so You can’t easily replace it. Also I found out that nothing important is displayed on that tiny screen.
Fan is another problem, it will not keep right temperature, it’s noisy. Few changes are required to got some airflow inside original case (if You are using that).

Do You plan to use original case? can you please post photo of Your setup?
Mine does not fit in 3A well. Also I need to modify it for different fan and additional 2.5G ethernet.
If You really need that top board it should be possible to solve those deps.

I have raid 1 with two 3.5 hard drives and one spare. I use DC12 60W power adapter. I plan to move it to raid 10. I don’t really need the hat board but I want to cool the setup. I don’t use the case. It feels like the top board it too hot without cooling and the cpu temperature is around 60 degrees or above. I’m currently using a cooler from a PC box and I have cpu temperature from 35 to 40 degrees, but I supply it with pc power supply it’s not the best decision. I would like the nas to work independently.

I’d got kernel panic with my first atempt to initialize raid 5 before I started using the fan.

Mine is working stable, the only problem I had with it was cpu governor set to fixed 408MHz with Armbian, this of course ruined any performance and cause high cpu load (therefore heat). Double check that.

Rock 3A has 5V PWM fan header but i’m not sure if it’s still anyhow supported because I haven’t seen that on newer releases, but maybe You can copy right dtbo and try. There was no official accessory, just heat sink.
Also there is 12V header on HAT and it can be used for fixed variable fan.
Top board PWM 5V fan is yet another option, it should work when correctly installed, but as You could see there are some old dependencies to solve in newer systems.