deluded
Posts: 3
Joined: Fri Sep 12, 2014 5:16 pm

Cameras not available or working

Fri Sep 12, 2014 5:37 pm

I've just received the compute dev kit from Farnell, and got raspian up and running fairly quickly. However, I'm having no luck with the cameras.

The board is telling me that the cameras are not supported (doesn't matter if any are attached or not)

Code: Select all

[email protected] ~ $ vcgencmd get_camera
supported=-1 detected=0
If I run a model B board with same software, and no camera, it says supported = 1 detected = 0 as expected.

I've updated the firmware, checked the connections, tried original + new wiring, tried changing dt-blob.bin as per instructions.. Tried reflashing several times (did notice that vcgencmd wont run with older images without updating FW).

Nothing can get it out of this state.

config.txt appears to have the correct details as well:

Code: Select all

start_x=1
gpu_mem=128
I've tried googling the supported=-1 state but don't get any hits. Also tried to look at the source code but I'm assuming this comes from the closed source blob.


Any ideas?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5677
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Cameras not available or working

Fri Sep 12, 2014 9:22 pm

https://github.com/raspberrypi/document ... -camera.md

Let me know if you have any questions.

deluded
Posts: 3
Joined: Fri Sep 12, 2014 5:16 pm

Re: Cameras not available or working

Sat Sep 13, 2014 7:48 pm

Hi, unfortunately I've already gone through connecting the pins and changing the pin states. I've also tried the original version of that doc that wired cam1 up as per a normal pi.

What's confusing me is the -1 result for supported, as this should be 1 even if a camera is not connected.

If I knew what -1 indicated then I may have more luck fixing it :)


I'll retry from scratch again next week as maybe I've missed something...

deluded
Posts: 3
Joined: Fri Sep 12, 2014 5:16 pm

Re: Cameras not available or working

Mon Sep 15, 2014 3:40 pm

Ok - it was me being an idiot...

I was editing the dts file in nano, and didn't realise there was different sections for different hardware.

Once I added the new definitions into pins_cm section (especially the NUM_CAMERAS value) it all started to work. I now have one camera working, and hopefully get the second one running once Farnell get stock of the interface.

Thanks for the help!

Rich.

edzieba
Posts: 25
Joined: Fri Jul 29, 2011 6:59 pm

Re: Cameras not available or working

Mon Nov 10, 2014 5:19 pm

I'm having a vaguely similar issue. Edited dt-blob.dts to add NUM_CAMERAS and the other pin settings into the pins_cm section, ran sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob.dts, but even after rebooting vcgencmd get_camera will only report "supported=0 detected=0", even with two cameras attached.
Is there an extra step once the dt-blob.bin is created in /boot to get it to actually apply?
Current pins_cm:

Code: Select all

            pins_cm {
               pin_config {
                  [email protected] {
                     polarity = "active_high";
                     termination = "pull_down";
                     startup_state = "inactive";
                     function = "input";
                  }; // pin
                  [email protected]  { function = "output"; termination = "no_pulling";};
                  [email protected]  { function = "output"; termination = "no_pulling";};
                  [email protected] { function = "uart0";  termination = "no_pulling";    }; // TX uart0
                  [email protected] { function = "uart0";  termination = "pull_up"; }; // RX uart0
                  [email protected] { function = "output"; termination = "no_pulling";};
                  [email protected] { function = "output"; termination = "no_pulling";};
                  [email protected] { function = "sdcard"; termination = "pull_up";    drive_strength_mA = < 8 >; }; // SD CLK
                  [email protected] { function = "sdcard"; termination = "pull_up";    drive_strength_mA = < 8 >; }; // SD CMD
                  [email protected] { function = "sdcard"; termination = "pull_up";    drive_strength_mA = < 8 >; }; // SD D0
                  [email protected] { function = "sdcard"; termination = "pull_up";    drive_strength_mA = < 8 >; }; // SD D1
                  [email protected] { function = "sdcard"; termination = "pull_up";    drive_strength_mA = < 8 >; }; // SD D2
                  [email protected] { function = "sdcard"; termination = "pull_up";    drive_strength_mA = < 8 >; }; // SD D3

               }; // pin_config
               pin_defines {
                  [email protected]_CAMERAS {
                     type = "internal";
                     number = <2>;
                  };
                  [email protected]_0_LED {
                     type = "internal";
                     number = <2>;
                  };
                  [email protected]_0_SHUTDOWN {
                     type = "internal";
                     number = <3>;
                  };
                  [email protected]_0_UNICAM_PORT {
                     type = "internal";
                     number = <1>;
                  };
                  [email protected]_0_I2C_PORT {
                     type = "internal";
                     number = <0>;
                  };
                  [email protected]_0_SDA_PIN {
                     type = "internal";
                     number = <0>;
                  };
                  [email protected]_0_SCL_PIN {
                     type = "internal";
                     number = <1>;
                  };
                  [email protected]_1_LED {
                     type = "internal";
                     number = <30>;
                  };
                  [email protected]_1_SHUTDOWN {
                     type = "internal";
                     number = <31>;
                  };
                  [email protected]_1_UNICAM_PORT {
                     type = "internal";
                     number = <0>;
                  };
                  [email protected]_1_I2C_PORT {
                     type = "internal";
                     number = <0>;
                  };
                  [email protected]_1_SDA_PIN {
                     type = "internal";
                     number = <28>;
                  };
                  [email protected]_1_SCL_PIN {
                     type = "internal";
                     number = <29>;
                  };
               }; // pin_defines
            }; // pins_cm

edzieba
Posts: 25
Joined: Fri Jul 29, 2011 6:59 pm

Re: Cameras not available or working

Thu Nov 13, 2014 8:49 pm

Slight improvement: using m.furukawa's dts-blob.dts, vcgencmd get_camera now returns "supported=2 detected=0". Both cameras (Pi NoIR) have been tested and confirmed working on a regular Pi, I've definitely got the 1.1 adapter boards, and have connected the pins as in the documentation.

Whoops, PEBKAC. Cam board FFC end is inserted contacts-to-board, cam adapter board FFC end is inserted contacts AWAY from board.

Return to “Compute Module”