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
Troubles when using hypriot images and docker #27
Comments
It looks like this is an issue with I2C, which is initialized as soon as raspi-io is initialized. Can you try running |
This happens then. |
Hmm, |
Its weird though because the image is very functional otherwise. And it works calling this on the root image that is on the SDcard, but not inside the docker container. |
I think @fivdi is right. Can you try redownloading the hypriot image and reflashing your SD card? If that doesn't fix it, I would bring it up with the Hypriot folks that |
But again, its not the image on the SD card that is broken, when running this command on the image it works. Its the container im trying to run inside. But il ask the hypriot guys and see what might result in that. |
What solved this problem was this blogpost: http://dummdida.tumblr.com/post/117157045170/modprobe-in-a-docker-container I had to give access to that part of the kernel. They way I ran the docker container for full access was: docker run --device /dev/mem:/dev/mem --device /lib/modules:/lib/modules --cap-add=ALL --privileged -ti snorlock/node-gpio /bin/bash |
Glad you got it working! |
And thanks for describing the solution 👍 |
Im trying to use Johnny Five as a base for my project. We are going to have a lot of raspberry Pi's so its also based on using docker with raspbian pi, by using the images from http://blog.hypriot.com/.
Unfortunalty raspi-io doesnt work even if i use an image with wiringPi and everything inside.
Its worth telling that using raspi and raspi-gpio inside the same image and top of the same stack, works perfectly. I have gotten my led to light up with these libraries.
But when i use JohnnyFive and raspi-io i recieve this error:
My Johnny-Five code is:
And my working raspi code is:
If there is anything more I can do to aid let me know. The reason we are using Johnny-Five is because we are going to have more different modules and want to try to keep the codebase very similar.
The text was updated successfully, but these errors were encountered: