hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.71k stars 1.17k forks source link

Raspberry Pi 3 64 bit support #613

Open vifino opened 6 years ago

vifino commented 6 years ago

Hi! There is a Gentoo 64 bit image floating around here. The library does not seem to work when run there. There is simply no error message or output of any kind.

I've booted the kernel with iomem=relaxed (i think).

Perhaps you can look into this to get an additional bit of performance on the Pi 3?

hzeller commented 6 years ago

Exciting to see that there finally is a 64Bit version.

With regard to thie library, I suspect the Pi detection will be off there.

Can you try to modify the IsRaspberryPi2() function in the lib/gpio.cc file to simply return true; in the body ? https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/lib/gpio.cc#L187

If that then still not works, I suspect they shifted around the memory mapping addresses.

vifino commented 6 years ago

I'll try that in a few hours, will report back.

vifino commented 6 years ago

Sorry for the long wait, the Pi 3 I intended to test it with is lost somewhere. Got the alternative and set it up, testing it with the Pi 2 detection routine patched revealed that, unfortunately, it's not that:

See http://0x0.st/seJB.txt for the kernel log.

Hoping you can extract some use out of that.