Wednesday, 16 July 2014

mmal: mmal_vc_component_enable: failed to enable component: ENOSPC

This is a nasty bug with the Raspberry Pi camera module, which has not been resolved. Although I cannot guarantee that my solution will work for you, it fortunately did the trick for me.
  1. sudo apt-get update && sudo apt-get dist-upgrade  
  2. sudo rpi-update  

Make sure your  /etc/modprobe.d/raspi-blacklist.conf looks like this.


  1. sudo nano /etc/modprobe.d/raspi-blacklist.conf  
# blacklist spi and i2c by default (many users don't need them)

#blacklist spi-bcm2708
blacklist i2c-bcm2708

My /etc/modules config

  1. sudo nano /etc/modules

 # /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.


w1-gpio pullup=1
w1-therm
i2c-bcm2708
i2c-dev
spi-bcm2708
snd-bcm2835
lirc_dev
lirc_rpi gpio_out_pin=7

Test

  1. sudo reboot  
  2. raspistill -v -o image.jpg  

Sample output

raspistill Camera App v1.3.8

Width 2592, Height 1944, quality 85, filename image.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 image.jpg
Enabling encoder output port
Starting capture 0
Finished capture 0
Closing down
Close down completed, all components disconnected, disabled and destroyed

4 comments:

  1. Hello Mike M,

    Thank you so much this sharing! I tried to resolve the same problem for several days. I was sure the camera module was "fried" but then... I found your small tutorial : ). I'm so grateful for that!!

    Best greetings from Poland,
    Michał M.

    ReplyDelete
  2. I fuck*d up the operative system! Now I'll have the opportunity to get more experience installing everything over again! Thank you...

    ReplyDelete
  3. Nothing changed.Planning to install a fresh OS. Do you think that it will help ?

    ReplyDelete