Comments (30)
- What power source are you using? Make sure its a good power supply and usb cable, thats the number 1 cause
- @foosel , have you tried the pi camera with the B+?
from octopi.
I am using a 2 amp power supply with a working cable.
Using the same card, camera, cable and B+ raspberry pi it work correctly with the plain Raspian 6-20-14 image, if I down power swap to the Octopi image I get errors.
I did try it with a lab grade bench power supply, same problems.
Chuck
from octopi.
@guysoft Yes, I did. LED didn't come on, but I got an image in OctoPrint and timelapsing worked too
from octopi.
@carbuthn: have you enabled the pi cam in the basic config menu at first start? I think no, because your error message is: "camera component could not be enabled"
from octopi.
@floville That is not required, OctoPi comes with camera enabled out of the box (this line takes care of it https://github.com/guysoft/OctoPi/blob/devel/src/chroot_script#L109)
from octopi.
@carbuthn Have you rebooted a to make sure it keeps happening? In this forum post someone is reporting exactly these errors, and claims it happens because the camera or board are in a 'dodgy state', and rebooting fixed the issue: http://www.raspberrypi.org/forums/viewtopic.php?p=360945#p360945
from octopi.
Ok, it´s my first experience with raspberry and linux, but i have the new raspberry b+ und with connected raspberry pi cam and it works fine with octopi 0.9.0.
Is it possible a connection error? the ribbon cable can be easily wrong assembled.
from octopi.
@floville
I did not understand your last reply.
- You wrote "but I have a new raspberrypi b+" - that's 'but' is not contradicting anything in the sentence.
- Guessing the ribbon cable is at fault, or any hardware matter for that sake, is just a wild guess. @carbuthn wrote already the camera works on plain raspbian, ruling out most hardware problems, including the camera connection.
Please be more clear.
from octopi.
@guysoft: Please take a little considerate, my english is not the best. I just wanted to say that it has nothing to do with the new pi b+.
from octopi.
Thanks for the responses, I have a second B+ with different camera and power supply. I will download the Octopi image again to make sure that I get a good download and try it later tonight.
from octopi.
Unless you have any updates, I am closing this
from octopi.
I have 2 separate cards and cameras but haven’t been able to get the PI Camera to work. I must be doing something wrong. Will try again once my printer arrives. Thanks for the help.
Chuck
From: Guy Sheffer [mailto:[email protected]]
Sent: Sunday, August 10, 2014 9:56 AM
To: guysoft/OctoPi
Cc: carbuthn
Subject: Re: [OctoPi] Problem with Octopi on Raspberry Pi B+ and Pi Camera (#31)
Unless you have any updates, I am closing this
—
Reply to this email directly or view it on GitHub #31 (comment) . https://github.com/notifications/beacon/3123351__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzI5ODEzMiwiZGF0YSI6eyJpZCI6MzgwNzgwMjF9fQ==--667d969e16e45278a8c90f2d0d844feca99c96a0.gif
from octopi.
I have an PiCam and both RPi models and neither the camera or the serial port connection seems to work in the B+. Running dmesg confirms the USB is connected to ttyACM0, and I tried adding the user "pi" to the dialout etc... and nothing would work. When I used the MicroSD card from the B+ in an adapter, I was able to run the same image in the older RPi for which both the camera and serial connection worked without issue.
from octopi.
Hello Guy,
Just wanted to add my voice to this. I'm having exactly the same problem as carbuthn. The camera module works just fine with latest Raspian image (tested using raspistill). However, when I instead load the lasted Octopi distro, I get the error messages listed above. I've tried both on a model B, and also a B+, and both have the same issue. I have a 2 amp power supply. The led on the camera module comes on (and it works on Raspian), so I don't think the problem is with the cable.
from octopi.
Hey @jmpattillo and @carbuthn ,
I have two other things you can try.
It seems like someone reported a similar issue on Stack Exchange.
- You can try setting to memory from 128 to 256. And see if that helps.
You can do this by changinggpu_mem=128
togpu_mem=256
at/boot/config.txt
- You can add
bcm2708.w1_gpio_pin=18
at the end of the line of boot.txt as shown in the stack exchange link.
Please update if that helps, if so we can introduce changes to the upcoming version of OctoPi.
from octopi.
Hey @guysoft
Unfortunately, neither one of these solutions worked. A little bit more detail about how I tested this in case it will help. I first loaded Raspbian and Octopi (both 6-20 versions) on two different microSD cards (same brand and 4gb capacity). I confirmed that the camera was working by booting a B+ pi with Raspbian and taking a picture with raspistill from the command line. I then shutdown and switched to Octopi and repeated the same raspistill test. I got the same error sequence that @carbuthn mentioned. Other than the changes you suggested, the only other change I made was to expand the disk system on each card.
Thanks for you help. -John
P.S. I added the gpio pin change to the end of /boot/cmdline.txt I assumed that is what you meant.
from octopi.
@guysoft I forgot to mention another possible clue. During the bootup of Octopi, the bootup verbose output "hangs" after the last line indicating the startup of mjpg_streamer:
DBG(/home/pi/mjpg_streamer/plugins/input_raspicam/input_raspicam.c, worker_thread(), 880): Starting video output
That line will just sit there. The login will not come up unless I hit Enter. This may be significant, or I could just be displaying my ignorance.
from octopi.
@jmpattillo Did you try other solution of increasing the memory to 256? You will need to change part of the line at cmdline.txt
from octopi.
@guysoft I changed the GPU memory to 256 by editing config.txt, and added bcm2708.w1_gpio_pin=18 to the end of cmdline.txt. I rebooted (of course), but neither solution worked. This seems pretty strange to me, exact same hardware and software, but different results. I would suspect that there is maybe something very strange wrong with my camera module, but @carbuthn indicated that he had tried two different camera modules.
from octopi.
I'll see if I can reproduce this tomorrow. Just to make sure, used image is
OctoPi 0.9.0 (from june 20th)?
from octopi.
Yes @foosel I used OctoPi 0.9.0 The raspbian image I used on the other card was also from June 20th. Thanks for your help.
from octopi.
I figured it out I think. There is a conflict between mjpg_streamer and raspistill. I was using raspistill to test that my camera was properly installed. If I kill mjpg_streamer, the raspistill will work. mjpg_streamer then restarts itself after a couple of minutes.
Update: Yep, that was it. Everything works now. Sorry for the confusion, and thanks for the help.
from octopi.
I was just going to post this I quickly whipped up (fresh install of vanilla octopi 0.9.0, B+ board and RaspiCam, all default settings, nothing modified at all) but apparently you found your issue ;)
In general: That camera is not something that can have shared access -- it's either the mjpg_streamer daemon that ships per default with OctoPi and gets automatically started on bootup, or it's something else like raspistill. If you run one, the other will fail. To test if your setup works, simply switch to the control tab in OctoPrint - it will show the camera's image if it could be properly detected, no need to fiddle around on the command line.
@guysoft I assume you can close this now since after rereading the initial issue up above it sounds like that is the same trap @carbuthn ran into.
from octopi.
Thanks Guy, Gina & jmpattillo,
I will try this also as soon I find the right box of stuff (moving and everything is packed up). Sound like that should fix my setup as well. Will also change the memory setting and add bcm2708.w1_gpio_pin=18.
Chuck
From: Gina Häußge [mailto:[email protected]]
Sent: August 29, 2014 3:16 AM
To: guysoft/OctoPi
Cc: carbuthn
Subject: Re: [OctoPi] Problem with Octopi on Raspberry Pi B+ and Pi Camera (#31)
I was just going to post this https://www.youtube.com/watch?v=EIs7uMK-Ng0 I quickly whipped up (fresh install of vanilla octopi 0.9.0, B+ board and RaspiCam, all default settings, nothing modified at all) but apparently you found your issue ;)
In general: That camera is not something that can have shared access -- it's either the mjpg_streamer daemon that ships per default with OctoPi and gets automatically started on bootup, or it's something else like raspistill. If you run one, the other will fail. To test if your setup works, simply switch to the control tab in OctoPrint - it will show the camera's image if it could be properly detected, no need to fiddle around on the command line.
@guysoft https://github.com/guysoft I assume you can close this now since after rereading the initial issue up above it sounds like that is the same trap @carbuthn https://github.com/carbuthn ran into.
—
Reply to this email directly or view it on GitHub #31 (comment) .Image removed by sender.
from octopi.
@foosel what would be the next step if when you boot up the fresh install of octopi 0.10.0,switch to the control tab and do not have video. The red light on the raspberry camera is lit but i am getting no video.
from octopi.
@nkdurrett Not sure about B+, but did you check your powers supply is 2A and you are using a GOOD usb cable (just because it says 2A on it does not mean it is). That tends to be the common problem.
from octopi.
yeah ive checked all of that and i am still getting error messages. I have
been doing searches for over a week now and cant find a solution.
On Sun, Nov 23, 2014 at 2:59 AM, Guy Sheffer [email protected]
wrote:
@nkdurrett https://github.com/nkdurrett Not sure about B+, but did you
check your powers supply is 2A and you are using a GOOD usb cable (just
because it says 2A on it does not mean it is). That tends to be the common
problem.—
Reply to this email directly or view it on GitHub
#31 (comment).
from octopi.
There is a small connector between the actual camera and the PCB its
mounted on. Check this!
I have a housing for the camera what's permanently tilling this connector.
Am 23.11.2014 06:54, schrieb nkdurrett:
@foosel https://github.com/foosel what would be the next step if when
you boot up the fresh install of octopi 0.10.0,switch to the control tab
and do not have video. The red light on the raspberry camera is lit but
i am getting no video.—
Reply to this email directly or view it on GitHub
#31 (comment).
from octopi.
Hello brother, finally i can solve this problem after a lot of hours troubleshooting.
I already share it in my YouTube (https://youtu.be/on8UlkRvLok)
This problem only occur in camera raspberry pi V2.1 (IMX219) from Element14. But in camera raspberry pi V2.1 from OKdo, i don't get this error
So, the solution when error
"mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates"
You need some initialization with a works camera (me camera from OKdo).
So, the step is
- Plug your works camera to Raspberry Pi (me using Raspberry Pi 4B)
- Turn on your Raspberry Pi
- check
vcgencmd get_camera
to make sure your hardware is detected the camera - capture image using
raspistill -v
and camera will capture the image - Then replace the works camera with ENOSPC Error Camera (from Element14)
- then try to capture the image
raspistill -v
and the ENOSPC Error will not occur
Notes:
- But, after the ENOSPC Error Camera works, and then you restart/shutdown the raspberry pi, the error will occur again :(
OS Raspberry Pi 4 Model B (4GB)
- Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
from octopi.
Hey @hanifizzudinrahman this issue is from 2014. The RaspberryPi 2.1 was released in 2016 source: https://www.raspberrypi.org/documentation/accessories/camera.html
from octopi.
Related Issues (20)
- Unable to setup wifi on Octopi Bullseye arm64 lite 1.0.0 HOT 26
- sudo /home/pi/scripts/install-desktop on OctoPi 1.0.0 doesn't install everything necessary HOT 6
- Raspberry Pi Camera v2 Not Working HOT 3
- Offical RPI 7" Touchscreen does not working with OctiPi 1.0 HOT 3
- Trying to build Armbian for Cubieboard 1 HOT 9
- userconf not working on 25 March 64bits nightly HOT 4
- Configured in Raspberry Pi Imager WiFi country "US" is ignored and instead "GB" is used. HOT 2
- Have a big disclaimer - this will wipe your Pi HOT 3
- Webcamd restart in loops then lost video stream HOT 5
- Cancel print shuts down marlin 2 totally HOT 3
- 'src/build_dist' has a 'jq' dependency, but that is not specified in 'README.rst'. HOT 1
- Use 'performance' CPU frequency scaling governor instead of 'ondemand' HOT 11
- Official 7 Inch touchscreen not detected HOT 3
- OctoPi doesn't allow AP mode WiFi change anymore HOT 2
- Debian 12 Bookworm / Raspberry Pi 5 support HOT 47
- netboot pxe boot issues with nightly image HOT 8
- libcamera-hello --list-cameras returns ERROR: rpicam-apps currently only supports the Raspberry Pi platforms on nightly build HOT 5
- Swap size of 100MB to small to render Timelapse on Pi Zero 2 HOT 4
- Add brokenfps Camera model HOT 2
- [BUG] public key is not available HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octopi.