# Pi compute module 3 with two cams : unable to make it work

**URL:** <https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988>\
**Category:** Product support\
**Created:** [May 20, 2017, 1:26pm UTC](https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988 "2017-05-20T13:26:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christophe](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Christophe](https://forums.balena.io/u/Christophe)\
**Post date:** [May 20, 2017, 1:26pm UTC](https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988/1 "2017-05-20T13:26:53Z")

</div>

Hello,  
I use a board ([www.embeddedpi.com](http://www.embeddedpi.com)) with a pi compute module 3 and two cameras.  
I fail to make the cameras work with resinOS. However it works with Raspbian.

Camera 0 uses gpio 4 for shutdown, gpio 22 for led and pins 0/1 for I2C SDA/SCL.  
Camera 1 uses gpio 5 for shutdown, gpio 21 for led and pins 28/29 for I2C SDA/SCL

I changed config.txt to gpu\_mem=192 and start\_x=1, and did a “modprobe bcm2835-v4l2”, hoping it was enough, but when calling raspistill, I have message :

mmal: Cannot read camera info, keeping the defaults for OV5647  
mmal: mmal\_vc\_component\_create: failed to create component ‘vc.ril.camera’ (1:ENOMEM)  
mmal: mmal\_component\_create\_core: could not create component ‘vc.ril.camera’ (1)  
mmal: Failed to create camera component  
mmal: main: Failed to create camera component  
mmal: Camera is not enabled in this build. Try running “sudo raspi-config” and ensure that “camera” has been enabled

Any idea ?

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [May 21, 2017, 4:51pm UTC](https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988/4 "2017-05-21T16:51:20Z")

</div>

Hi there. I don’t have any experience with using the dual interface with the rpi compute module, but the system that sets this up is in the boot loader and resinOS uses the exact same boot loader as raspbian, so I think it must be a minor configuration issue.

One thing I would check is the `/boot/config.txt` in the raspbian image that works and copy all those values over into the resinOS image. This should ensure that all the correct settings are enabled. Another thing to double check is that you are using `resinOS 2.0.3` because that will have the most recent kernel and bootloader inline with what ships on `raspbian jessie`.

let me know how things progress.

---

<div class="post-metadata">

**Author:** ![Christophe](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Christophe](https://forums.balena.io/u/Christophe)\
**Post date:** [May 22, 2017, 3:13pm UTC](https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988/5 "2017-05-22T15:13:43Z")

</div>

Hi Shaun.  
I am using Resin OS 2.0.3+rev1.  
I checked /boot/config.txt and used RESIN\_HOST\_CONFIG variables to adjust.  
It seems not enough.

Maybe this is linked to device tree that I’ll have to migrate to resin, but I don’t know how to do exactly…  
Can you help a little bit on chat ?

---

<div class="post-metadata">

**Author:** ![sqweelygig](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sqweelygig/32/150_2.png) [@sqweelygig](https://forums.balena.io/u/sqweelygig)\
**Post date:** [May 22, 2017, 5:18pm UTC](https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988/6 "2017-05-22T17:18:07Z")

</div>

This went back-and-forth a little bit on our premium support channels.  
The resolution was to put the camera configuration files within the `resin-boot` partition on the disk, either after the etch or by mounting the image. This sort of modification is on our roadmap to be able to achieve in a much more managed fashion.

---

<div class="post-metadata">

**Author:** ![Christophe](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Christophe](https://forums.balena.io/u/Christophe)\
**Post date:** [May 22, 2017, 5:19pm UTC](https://forums.balena.io/t/pi-compute-module-3-with-two-cams-unable-to-make-it-work/988/7 "2017-05-22T17:19:07Z")

</div>

By copying dt-blob.bin from a working raspbian to resin boot partition, it now works.  
It was a problem of device tree.
