radxa / rockpi-penta

Penta SATA HAT
MIT License
5 stars 4 forks source link

Invalid default env for Rock 5C #4

Open MatLegat opened 1 month ago

MatLegat commented 1 month ago

When trying to install this module on Rock 5C, the application will always crash during boot due to a misconfigured PWM chip number.

It looks like the board is being identified as a Rock 5A, then the rockpi-penta/usr/bin/rockpi-penta/env/rock_5a.env is loaded after installation.

The fix to make it work was to just edit the file /etc/rockpi-penta.env and change the PWMCHIP value to 1

Reporting as an issue so maybe someone updates the detection to differentiate between Rock 5A and Rock 5C, or maybe update the docs so users know to manually change this value

jardelhnascimento commented 2 weeks ago

Thanks, my LED was stuck with "Loading..." , the button was not working and the fan speed was not changing. I tried the changes you mentioned and now it seems to work properly.

BitTim commented 3 days ago

Thank you! I can confirm that this fixed the issue for me as well