-
Notifications
You must be signed in to change notification settings - Fork 622
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
Solution for RuntimeError: "ws2811_init failed with code -3 (Hardware revision is not supported)" | For Raspberry Pi 4 Model B Rev 1.5 and later #483
Comments
Thank you! This worked like a charm. One modification - since Easy Install is deprecated, running Instead, I needed to run |
If you find a new, unsupported revision you should also raise a PR to support it 😄 |
That didn't even occur to me while I was looking for a solution. Now it seems quite silly not to! :D PR opened - #484 |
Thank you! 🎉 |
Heya, i believe i have a new unsupported revision: I'm sadly completely new to this (using a rgb ring, wiring and low level code) but what can i give of information to support this board aswell for my wrgb ring 16 led? |
I've opened a PR for you using the details you provided #492 |
Yes sir! |
I think I have a new unsupported version as well. I tried doing the steps above with no success. Any suggestions or help? |
Pho’s much memory?
Met vriendelijke groet,
Wesley de Vree
…________________________________
Van: michaelacosta-rpi ***@***.***>
Verzonden: Wednesday, March 2, 2022 11:22:06 PM
Aan: jgarff/rpi_ws281x ***@***.***>
CC: Macley ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [jgarff/rpi_ws281x] Solution for RuntimeError: "ws2811_init failed with code -3 (Hardware revision is not supported)" | For Raspberry Pi 4 Model B Rev 1.5 and later (Issue #483)
I think I have a new unsupported version as well.
Hardware : BCM2835
Revision : a03115
Serial : 10000000c35ef311
Model : Raspberry Pi 4 Model B Rev 1.5
I tried doing the steps above with no success. Any suggestions or help?
—
Reply to this email directly, view it on GitHub<#483 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGJIY42DULEIHEZNZYTZFXDU57SY5ANCNFSM5MKGX4IQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID: ***@***.***>
|
1GB RAM, sorry I left that out |
@michaelacosta-rpi follow the above quote and ya should be able to open a pr here (so everyone can use it it’s that revision!) |
Unfortunately I followed those steps and get the same error |
sorry for the late reply
put it in this line: https://github.com/bbeesley/rpi_ws281x/blob/e1df895b7d816a7b0352ca267dc210bf8dbe5752/rpihw.c#L138 so that you get:
and doing a recompile and then running with sudo the test script again still gives the error? |
If it is helpful, another config data for the 8gb... Hardware : BCM2711 |
This adds support for more Raspberry Pi 4 Revisions. See https://github.com/rpi-ws281x/rpi-ws281x-python/releases for changelog and jgarff/rpi_ws281x#483.
All 4 versions of Raspberry Pi 4 Model B Rev 1.5 -- 1gb 2gb 4gb 8gb:
|
@Macleykun or @michaelacosta-rpi , were you able to solve this issue for the RPi 4 Model B 1 GB? I have the same issue and have tried to use this method to solve the problem, but have not succeeded. I would appreciate if anyone could point out what I've missed so that I can start playing with my set of NeoPixels. I started with this guide to use NeoPixels with a Raspberry Pi (though I have repeatedly uninstalled and installed since then):
I have performed OS updates listed as prerequisites here: Code I'm trying to run:
My stack trace:
My output of cat /proc/cpuinfo: (Raspberry Pi 4 Model B 1 GB - a03115)
I ran the github command to download code to this directory:
Inside rpihw.c on lines 138-144 I already see the appropriate values for my hardware model:
So, I navigated to the \library directory and ran the command
This appeared to compile & install, but the issue was not resolved I also tried the top commenter's command saying easy install is deprecated with no effect:
This also appeared to run properly, but did not solve the issue. So, I wanted to make sure the version I had pulled was the one being installed, so I tried uninstalling with this command:
I believe this worked, because my stack trace changes to being unable to import NeoPixel:
I then try the above python install again:
Is there any way to look through the /site-packages/ and /dist-packages/ to find the rpihw.c file and make sure I've have an appropriate setup? I tried poking through the .py files in the stack trace but I'm not particularly experienced in python, or how it interacts with c. Also, since the code imported from github apparently required no modifications, I would expect the command
to install a functioning version, but it does not. What else am I missing? |
I'd like to contribute to the resolution of this issue, but I am not a C/compiled code developer. I've gathered the needed json code #483 (comment) for https://github.com/jgarff/rpi_ws281x/blob/master/rpihw.c I can also DEV/UAT test for an 8GB v1.5 Pi. Also willing to hire an existing contributor to get this resolved. Would hire a fiver person to make the code change and compile, but I would rather compensate an existing contributor. (@navrocky @Gadgetoid @arcturis @timonsku @flokli @Tirenoth I see you all are recent contributors.) Thanks all |
For dependent libraries, although the issues remains open, this appears to be updated in the code. Raspberry Pi 4 Model B Rev 1.5: |
Any update on this one :) ? |
This issue should be closed out. I can confirm I had someone compile the library and I've tested on Raspberry Pi 4 Model B Rev 1.5 8gb & 4gb. If you are still having an issue, you are either 1) using an older build, 2) using a library which is dependent on this with an older build (they need to update their dependency on this), or 3) did not compile the library properly or with the most recent build. |
Hi all, The board I have is LibreComputer LePotato,
Can anyone advise on what would be the parameters for Is there a way to debug Thanks |
Hello,
if u try to run a Script from the Repo and you get the RuntimeError: "ws2811_init failed with code -3 (Hardware revision is not supported)" I found a solution for u =D
First open your shell, type in:
cat /proc/cpuinfo
or go to the Explorer, into "home/proc/cpuinfo" and open the File. At the Bottom will be a Part which looks like:Now open the shell, type in
nano (or vim) rpi-ws281x/library/lib/rpihw.c
and search for your Model.If you cant find it, we will follow this Guide: rpi-ws281x/rpi-ws281x-python#56 (comment)
Open the shell,
first you uninstall the repo with
sudo pip3 uninstall rpi_ws281x
,next you clone the git with
git clone --recurse-submodules https://github.com/rpi-ws281x/rpi-ws281x-python
,after that you run
nano (or vim) rpi-ws281x-python/library/lib/rpihw.c
,then you add:
after you made the changes, you change the Directory with
cd rpi-ws281x-python/library/
,the last Command will be:
sudo python3 setup.py install
I hope that helped, have a nice Day or Night =D
The text was updated successfully, but these errors were encountered: