-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ws2811_init fails with error code -3 on RPi 3B+ with ArchLinuxARM aarch64 #350
Comments
PS: I think #183 may fix the problem I have (and somebody else may have at some time) |
I think I found the issue with this. see line number 419/420 - 419 size_t read = fread(&rev, sizeof(uint32_t), 1, f); should be 419 size_t read = fread(&rev, sizeof(uint32_t), 1, f); |
I have the same problem even with #395 applied (which does exactly what was mentioned in #350 (comment)). The problem is still that the file I'm running on Some maybe helpful thing i found:
|
I believe the issues discussed here are likely to be invalidated by #183 as both Raspberry Pi OS/debian derivatives and aarch64 will converge on detecting ranges from Since these issues are related, I'm closing this one in favour of focusing discussion on the PR. It would be useful for have an aarch64 user weigh in on #183 |
I am using the python library at rpi-ws281x/rpi-ws281x-python and I recently switched from raspbian to ArchLinuxARM aarch64 on my RPi.
After the upgrade, when I tried to run my code, I got
As I wanted to know what happened, I traced the calls back to the C library in which
ws2811_init
was the function called and the error code was thrown at line 886.Apparently, the return value of
rpi_hw_detect
was wrong. I later found that it was trying to read/proc/device-tree/system/linux,revision
from my system (code at line 343 of rpihw.c) and that that file does not exist on my Pi.How may I get it to work ?
The text was updated successfully, but these errors were encountered: