Rock Pi 4C+ with quad sata hat: Service won't start

I just bought this kit: https://shop.allnetchina.cn/collections/sata-hat/products/quad-sata-hat-case-for-raspberry-pi-4 but with a rock-pi 4c+ because currently there are no RPis available.
I followed this guide.
Unfortunately, I have an issue with starting the service and currently I am not sure where to proceed :frowning:

this is my /boot/armbianEnv

verbosity=1
bootlogo=false
fdtfile=rockchip/rk3399-rock-pi-4c-plus.dtb
rootdev=UUID=58156628-a1ec-48f7-971d-8c646a89e424
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
overlay_prefix=rockchip
user_overlays=rockpi-poe

This is my hw_intfc

intfc:pwm0=on
intfc:pwm1=on
intfc:uart2=off
intfc:uart4=off
intfc:spi1=off
intfc:spi2=off
intfc:i2c2=off
intfc:i2c6=off
intfc:i2c7=on

syslog:

May 4 21:04:49 rockpi-4c systemd[1]: Stopped Rockpi SATA Hat.
May 4 21:04:49 rockpi-4c systemd[1]: Started Rockpi SATA Hat.
May 4 21:04:49 rockpi-4c libmraa[1671]: libmraa version v2.1.0-24-gbd91964 initialised by user ‘root’ with EUID 0
May 4 21:04:49 rockpi-4c libmraa[1671]: gpio: platform doesn’t support chardev, falling back to sysfs
May 4 21:04:49 rockpi-4c libmraa[1671]: libmraa initialised for platform ‘ROCK Pi 4’ of type 20
May 4 21:04:49 rockpi-4c libmraa[1671]: pwm0 write_period: Failed to write to period: Invalid argument
May 4 21:04:49 rockpi-4c libmraa[1671]: pwm0 write_period: Failed to write to period: Invalid argument
May 4 21:04:50 rockpi-4c python3[1676]: /bin/sh: 1: cannot create /sys/devices/platform/usb0/dwc3_mode: Directory nonexistent
May 4 21:04:50 rockpi-4c python3[1671]: Traceback (most recent call last):
May 4 21:04:50 rockpi-4c python3[1671]: File “/usr/bin/rockpi-penta/main.py”, line 47, in
May 4 21:04:50 rockpi-4c python3[1671]: main()
May 4 21:04:50 rockpi-4c python3[1671]: File “/usr/bin/rockpi-penta/main.py”, line 34, in main
May 4 21:04:50 rockpi-4c python3[1671]: misc.check_call(‘echo host > /sys/devices/platform/usb0/dwc3_mode’)
May 4 21:04:50 rockpi-4c python3[1671]: File “/usr/bin/rockpi-penta/misc.py”, line 56, in check_call
May 4 21:04:50 rockpi-4c python3[1671]: return subprocess.check_call(cmd, shell=True)
May 4 21:04:50 rockpi-4c python3[1671]: File “/usr/lib/python3.9/subprocess.py”, line 373, in check_call
May 4 21:04:50 rockpi-4c python3[1671]: raise CalledProcessError(retcode, cmd)
May 4 21:04:50 rockpi-4c python3[1671]: subprocess.CalledProcessError: Command ‘echo host > /sys/devices/platform/usb0/dwc3_mode’ returned non-zero exit status 2.
May 4 21:04:50 rockpi-4c systemd[1]: rockpi-penta.service: Main process exited, code=exited, status=1/FAILURE
May 4 21:04:50 rockpi-4c systemd[1]: rockpi-penta.service: Failed with result ‘exit-code’.
May 4 21:04:50 rockpi-4c systemd[1]: rockpi-penta.service: Scheduled restart job, restart counter is at 5.
May 4 21:04:50 rockpi-4c systemd[1]: Stopped Rockpi SATA Hat.
May 4 21:04:50 rockpi-4c systemd[1]: rockpi-penta.service: Start request repeated too quickly.
May 4 21:04:50 rockpi-4c systemd[1]: rockpi-penta.service: Failed with result ‘exit-code’.
May 4 21:04:50 rockpi-4c systemd[1]: Failed to start Rockpi SATA Hat.

Which image did you use? if you have armbianEnv.txt, looks like an Armbian. Armbian has no hw_intfc.conf file.

Add this to your armbianEnv.txt instead:

overlays=i2c7 pwm0 pwm1

Moreover, it seems you installed the penta hat software. I’m not sure if it works with a quad sata hat, but probably yes, as it controls only the fan, the oled, and the switch of the top board. However, my penta-service does not. Try the overlays command.

Should be read “My penta service does not access pwm0, but yo might have a newer version”