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

1wire breaks camera module #228

Closed
deejot opened this issue Nov 14, 2013 · 6 comments
Closed

1wire breaks camera module #228

deejot opened this issue Nov 14, 2013 · 6 comments

Comments

@deejot
Copy link

deejot commented Nov 14, 2013

Hi there,

I recently did an update from

$ vcgencmd version
Oct 2 2013 19:02:03
Copyright (c) 2012 Broadcom
version 27c5a63b0c74c287a4cfa24ebdfd5aa5051a8d7d (clean) (release)
$ uname -a
Linux raspicam 3.6.11+ #557 PREEMPT Wed Oct 2 18:49:09 BST 2013 armv6l GNU/Linux

to

$ vcgencmd version
Nov 7 2013 16:45:47
Copyright (c) 2012 Broadcom
version 8573b0747a17baf22e97e08254737a13d80430dd (clean) (release)
$ uname -a
Linux campi 3.10.18+ #585 Thu Nov 7 15:16:15 GMT 2013 armv6l GNU/Linux

and after that camera didn't work anymore.

Error message:

pi@raspberrypi ~ $ raspistill -v -o test_w1_gpio.jpg

raspistill Camera App v1.3.5

Width 2592, Height 1944, quality 85, filename test_w1_gpio.jpg
[...lines omitted...]
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
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

pi@raspberrypi ~ $

Tracking down possible reasons (see http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=60518) showed that this seems to be an issue with 1wire. Camera works fine until the 1wire module w1-gpio is being loaded. Then by issuing the raspistill command, the cam starts up, takes its time (metering evaluation? I don't see if there is a preview while having the Rpi in a headless configuration ) and then the mentioned error message appears, cam LED stays on.

With the newest version now the error message appears instantly after a short flashing of the cam LED.

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.10.18+ #594 PREEMPT Wed Nov 13 17:59:34 GMT 2013 armv6l GNU/Linux
pi@raspberrypi ~ $ vcgencmd version
Nov 12 2013 23:39:45
Copyright (c) 2012 Broadcom
version 4aee5454c7955e7bc0bbb152ca4c0e26e75376e1 (clean) (release)
pi@raspberrypi ~ $

@philcrump
Copy link

Also experienced this issue with:

pi@proto-pi ~ $ uname -a
Linux proto-hab-pi 3.10.18+ #596 PREEMPT Fri Nov 15 13:57:24 GMT 2013 armv6l GNU/Linux
pi@proto-pi ~ $ vcgencmd version
Nov 15 2013 14:13:47
Copyright (c) 2012 Broadcom
version 162026b1448f491e97e3b3b57cdca29be6a1d61a (tainted) (release)
pi@proto-pi ~ $

Downgrading to the latest 3.6.11+ git id fixed it:

pi@proto-pi ~ $ uname -a
Linux proto-hab-pi 3.6.11+ #557 PREEMPT Wed Oct 2 18:49:09 BST 2013 armv6l GNU/Linux
pi@proto-pi ~ $ vcgencmd version
Oct 18 2013 16:04:29
Copyright (c) 2012 Broadcom
version dbda126981820ea5681263042435388dddf65131 (tainted) (release)
pi@proto-pi ~ $

Command to used to downgrade:

sudo rpi-update 8234d5148aded657760e9ecd622f324d140ae89

@SorX14
Copy link

SorX14 commented Nov 28, 2013

I have the same issue: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=61922&p=460723

root@rpi:~# raspistill -v -o /mnt/server/images/image912.jpg

raspistill Camera App v1.3.5

Width 2592, Height 1944, quality 85, filename /mnt/server/images/image912.jpg
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
Camera component done
Encoder component done
Starting component connection stage
Connecting camera preview port to video render.
Connecting camera stills port to encoder input port
Opening output file /mnt/server/images/image912.jpg
Enabling encoder output port
Starting capture 0
Finished capture 0
Closing down
Close down completed, all components disconnected, disabled and destroyed

root@rpi:~# modprobe w1-gpio
root@rpi:~# modprobe w1-therm
root@rpi:~# raspistill -v -o /mnt/server/images/image9123.jpg

raspistill Camera App v1.3.5

Width 2592, Height 1944, quality 85, filename /mnt/server/images/image9123.jpg
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
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

@popcornmix
Copy link
Contributor

Duplicate of raspberrypi/linux#435

@herman5
Copy link

herman5 commented Apr 4, 2014

Had the same issue and was able to resolve it with @Elucidation's post

@sibujacob
Copy link

Can you please elaborate [Elucidation)'s post

@pelwell
Copy link
Contributor

pelwell commented May 3, 2022

This thread was last posted to 8 years ago - your chances of getting an answer and the answer being relevant today is vanishingly small.

Locking.

@raspberrypi raspberrypi locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants