-
Notifications
You must be signed in to change notification settings - Fork 101
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
support for RPI 4 #99
Comments
Hi @jimbotel, I'd love to help, but I currently have neither a working setup of a LED-strip nor do I have a raspberry pi 4 around. I am happy to accept a pull-request though. Are you already using the new version ( There are some candidates for things that depend on the actual hardware, and as I didn't update this library for some time (the rpi4 wasn't released back then) it might be that something needs to get a well-deserved update :D
Would you be comfortable checking out this repo and hacking around to see if you can fix it? I'm happy to assist if you like... |
Hi @usefulthink , |
Oh that sounds very promising. Please let me know when you have the PR ready, I will then update the upstream-dependency and publish it to npm. |
Hi @usefulthink , Thanks, |
Hi @usefulthink , |
@jimbotel do you know when your PR will be in? In the mean time could you upload your compiled Thanks! |
Hi Jeff, |
@jimbotel It looks like yours was #371 - which I believe shows as merged into master and closed. However, I'm not really sure how to pull it down and build it locally - though I can try. If I can get that working should rpi-ws281x-native@next work as expected? Thanks for the quick response! |
Hi @JeffJassky ,
Finally, as I pointed before, both versions of rpi_ws281x still interfere with the audio jack in the rpi4, so you still have to blacklist the corresponding modules. I'm going to open an issue in jgarff's hoping they can have that fixed. Note: if you want to try my changes, you can do an "npm install node-rpi-ws281x-native" to get all the code, then replace the files from: https://github.com/jimbotel/rpi_ws281x/tree/raspi4support Regards, |
@jimbotel Thanks for the detailed clarification. I got everything to build - though still getting this error.
I ran these steps which are slightly modified from the steps you outlined, but I believe are still correct:
Source copies over. Confirmed that your edits made it in there. build runs clean. I also created a
I also tried using Lastly, I notice that you're using a Suggestions or corrections are appreciated. Thanks! |
Hi @JeffJassky , I'm using rpi-ws281x-native indirectly. There's another module that invokes this one and probably is not using all the functions. I touched the underlying rpi_ws281x module, but If I understand correctly, what you found is something that has to be updated in the "parent" pi-ws281x-native. To be more precise, I see in
Raspberry Pi 4 has a bcm2711, so I guess a line like:
has to be added after line 46 above. Regards, |
I was able to hack through the However, using BalenaOS like I am I imagine this is an oversight on the part of Balena, considering the clear documentation here: https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md. I posted the issue on the Balena forums: https://forums.balena.io/t/rpi4-proc-cpuinfo-missing-hardware-and-model-name/29080 BalenaOS Raspberry Pi 4
|
Hi @JeffJassky , It's great that you managed to get it working, congratulations!
So, as the doc you pointed out mentions:
Even if rpi 4 has a BCM2711, the "Hardware" section says In any case, the right thing to do (as the doc mentions) is to use the Regards, |
It looks like this method of determining cpu/hardware is not supported by ARM64 architecture. We may need to update these packages to officially support the ARM64 standards note: raspberrypi/linux#2110 It seems we should be using something like these instead:
|
Hi there, sorry for the delay, I didn't find the time to have a look and write a response. A few things to note here:
|
Hi @usefulthink |
I just tried to run some code using my pi4(8Gb) (the same code ran fine yesterday on a pi2B+) and got the following error [rpi-ws281x-native] Could not verify raspberry-pi version. If this is wrong and you are running this on a raspberry-pi, please file a bug-report at https://github.com/beyondscreen/node-rpi-ws281x-native/issues A non-functional stub of this modules interface will be returned.' after a bit of a poke around it looks like what is listed in the hardware field in the cpuInfo file on my pi (BCM2711), is not in the list in the switch in node-rpi-ws281x-native/blob/master/lib/ws281x-native.js |
Hi @MrBim , Can you please try with this one and let me know if it works fine on your pi4(8GB) ? git clone --single-branch --branch raspi4support https://github.com/jimbotel/rpi_ws281x.git If it does, I'll do a PR to beyondscreen main branch with the changes. Thanks! |
Thank you for such a quick response, I pulled the repo, but I am using js to do everything in my current project. I am super rusty with my python so it may take me a couple of days to get this tested. In the meantime, I have managed to resurrect my work by adding the board as an extra case to https://github.com/beyondscreen/node-rpi-ws281x-native/blob/master/lib/ws281x-native.js (line 46/47) |
Hi @MrBim , |
Hello,
I'm trying to use a NeoPixel Diffused 8mm Through-Hole LED: https://www.adafruit.com/product/1734 on a raspberry 4.
I tested some basic functionality ( brightness.js https://github.com/beyondscreen/node-rp ... r/examples ) and it gets stuck upon init() step, providing no clue of what's going on.
However, using the same SD card from the RPI4 in a RPI3B+, everything works fine, so the problem seems to be related to the change in HW, but I cannot determine where it is.
Can you please give me a hand with that?
Thanks,
Jaime-
The text was updated successfully, but these errors were encountered: