Skip to content
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

Raspberry Pi 4 Model B Rev 1.5: Hardware revision is not supported #130

Open
dimzeta opened this issue Sep 20, 2022 · 4 comments
Open

Raspberry Pi 4 Model B Rev 1.5: Hardware revision is not supported #130

dimzeta opened this issue Sep 20, 2022 · 4 comments

Comments

@dimzeta
Copy link

dimzeta commented Sep 20, 2022

I am running successfully my node app on Raspberry 3 and Raspberry Pi 4 Rev 1.4, but I have this error on Raspberry Pi 4 Rev 1.5:

/var/app/node_modules/rpi-ws281x-native/lib/ws281x-native.js:160
  bindings.init();
           ^

Error: Hardware revision is not supported
    at init (/var/app/node_modules/rpi-ws281x-native/lib/ws281x-native.js:160:12)
    at module.exports (/var/app/node_modules/rpi-ws281x-native/lib/ws281x-native.js:206:21)
    at Object.<anonymous> (/var/app/ws281x.js:27:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
@dimzeta
Copy link
Author

dimzeta commented Sep 21, 2022

I followed the steps from #127 and now it is working well.

I didn't have to use @gbkwiatt's fork, so I just did:

git clone https://github.com/jgarff/rpi_ws281x.git
rm -rf /var/app/node_modules/rpi-ws281x-native/src/rpi_ws281x
cp -r rpi_ws281x /var/app/node_modules/rpi-ws281x-native/src
cd /var/app/node_modules/rpi-ws281x-native
sudo node-gyp rebuild

@djipco
Copy link

djipco commented Dec 29, 2022

Is there an ETA for a fix to this issue? The solution from @dimzeta worked for me too so it should be fairly straightforward to implement.

By the way, thanks for the library!

@HarrisZeng0631
Copy link

I followed the steps from #127 and now it is working well.

I didn't have to use @gbkwiatt's fork, so I just did:

git clone https://github.com/jgarff/rpi_ws281x.git
rm -rf /var/app/node_modules/rpi-ws281x-native/src/rpi_ws281x
cp -r rpi_ws281x /var/app/node_modules/rpi-ws281x-native/src
cd /var/app/node_modules/rpi-ws281x-native
sudo node-gyp rebuild

@dimzeta It works for me. Big helpful. Thanks.

@Teslafly
Copy link

I was unable to get this to work and spent several hours trying things. Unfortunately I am not much into the node ecosystem and only am trying to do this to get https://github.com/bbx10/node-opc-server working. and that's just so I can write to it using a python program that I can't use sudo with. All this just to not need sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants