rpi-rgb-led-matrix
rpi-rgb-led-matrix copied to clipboard
is it possible to use with a rockpro64 from pine64 with a rk3399
i want to use this amazing library with the rockpro64 becaue all of my raspberries died
https://github.com/hzeller/rpi-rgb-led-matrix/issues/1460
so is it possible to run this code with a led panel on a rk3399? should i just try
@anandrajgupta i tried and there was a not a raspberry pi error and a premission error
@hannescam : At first glance, it may be possible. At minimum, you will need:
- new
HardwareMapping
- update gpio.cc / gpio.h to use rk3399 pin access registers -
- INP_GPIO/OUT_GPIO
- s_GPIO_registers (possibly gpio_*bits_low too)
- disable all code related to timer/pwm/input
Thinking of it, it may be relatively easy to do...
GPIO implementation is quite different on rk3399, there is no SET/CLEAR register and 3 IO blocks are connected to 40pin header. High-performace implementation will be more difficult and cooperation with other software using GPIO access will be problematic.
and what about the allwinner a64 or d1
Both have very similar GPIO implementations as Rockchip ...
what other options are ecxept than a raspberry pi that could work with this software with little/no modification
Seems that Broadcom has quite unique GPIO implementation, probably caused by CPU being far prom GPIO (GPU is first-class citizen). rk3399 should be possible, at least as proof-of-concept version. It should be quite easy to rewrite current code to unpack framebuffer data and write it into corresponding registers. Just check usage of other IO in used banks (only GPIO OUT mode is important)
cool it would be great if this project could be opend up to other platforms (not just these stupid expensive fast braking things i broke 5 allready) but i am not smart egnuth to implement this
There may be a way of working around the GPIO issues with a kernel module. However, the GPIO does work differently. This code base uses a kernel module to gain access to the GPIO or bypasses with /dev/mem.
Has anyone tried using /dev/mem with GPIO to see what the performance is on RockChip?
@bluelasers : this project does access GPIO directly, both in /dev/gpiomem and /dev/mem case. Problem is cooperating with kernel (or other) code that uses pins in GPIO mode. But is quite possible that no such pins are vital for this use case (pins that use other GPIO mux setting are fine).
i think with the kernel module it will be too slow i didnt ever develop any kernel modules so correct me if i am wrong
Hi @hannescam, any update on this 5 months later? I am running into the same issue using a pine64 OSQuartz. Would love to use a raspberry pi compute module but still, none are available :(
@ledvinap, did you ever try the proof of concept version for any rockchip CPU?
@andytheengineerguy : Sorry, I didn't even try, I have no use for RK boards.