RK3128-CFW / m17-cfw

Firmware resources for the M17 Handheld
3 stars 0 forks source link

Initial M17 issue tracker #1

Open acmeplus opened 1 year ago

acmeplus commented 1 year ago
acmeplus commented 1 year ago

New branches created:

https://github.com/RK3128-CFW/buildroot/tree/m17_wip

https://github.com/RK3128-CFW/batocera.linux/tree/m17_wip

acmeplus commented 1 year ago

Buildroot configuration for m17 committed here: https://github.com/RK3128-CFW/buildroot/commit/5ce29d0ccef4be6b000e0fbe016ae9e1ade327a4

New branch m17_wip created

acmeplus commented 1 year ago

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.

octathorp commented 1 year ago

ADB is now fixed: https://github.com/RK3128-CFW/buildroot/commit/f9cd345bee3eb3e818f84a68d0144c5a38485254

octathorp commented 1 year ago

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

octathorp commented 1 year ago

Brightness control from userspace added: https://github.com/RK3128-CFW/buildroot/commit/38b5975b093b9a67850f26c35d524bbef72d54d9