Open acmeplus opened 1 year ago
Buildroot configuration for m17 committed here: https://github.com/RK3128-CFW/buildroot/commit/5ce29d0ccef4be6b000e0fbe016ae9e1ade327a4
New branch m17_wip created
As @octathorp pointed out, the issue with the default batocera image is that is uses GPT partition table. The loads that partition table and expects the structure to follow the rockchip internal structure and gets confused. Using MBR partition table solves that issue.
Brightness control fixed using a soft-pwm on GPIO 65: https://github.com/RK3128-CFW/rockchip-linux/commit/122be324f19886b6f48ea12dd845539b5d6c9e31
Userspace control is still pending, an init.d script would be needed to initialize pwm-gpio, then increase/decrease brightness with system scripts. Max brightness is set by default while booting.
Export pwm echo 0 > sys/class/pwm/pwmchip0/export
Set period echo 10000000 > /sys/class/pwm/pwmchip0/pwm0/period
Set max brightness echo 100000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
Set min brightness echo 10000000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
Enable pwm echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
Brightness control from userspace added: https://github.com/RK3128-CFW/buildroot/commit/38b5975b093b9a67850f26c35d524bbef72d54d9