Post Go back to editing

Cannot identify /dev/video0errno: 2error: No such file or directory

Category: Software

Hello,

So, here's the setup. We have custom platform that basically copies the AD-96TOF1-EBZ board but a couple of minor changes: smaller size; single laser diode; proprietary laser diode driver circuit. We have successfully loaded the latest Raspberry Pi SD card image as well as implemented the Raspberry Pi Build instructions as described on GitHub. We have, or at least I hope so, successfully compiled and installed the Tools. The goal is to write a firmware located in /aditof_sdk/misc/ad-96tof1-ebz via eeprom-tool to the memory.

Scanning the I2C bus returns the following:

pi@raspberrypi:~ $ lsmod | grep i2c
regmap_i2c 16384 2 at24,addi9036
i2c_mux_pinctrl 16384 0
i2c_mux 16384 1 i2c_mux_pinctrl
i2c_bcm2835 16384 0
i2c_dev 20480 0

pi@raspberrypi:~ $ i2cdetect -l
i2c-1 i2c bcm2835 (i2c@7e804000) I2C adapter
i2c-11 i2c bcm2835 (i2c@7e205000) I2C adapter
i2c-0 i2c i2c-11-mux (chan_id 0) I2C adapter
i2c-10 i2c i2c-11-mux (chan_id 1) I2C adapter

pi@raspberrypi:~ $ i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
40: -- -- -- -- -- 45 -- -- -- -- -- -- -- -- 4e --
50: -- -- -- -- -- -- 56 57 -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --

When we try to write to the memory, the following happens:

pi@raspberrypi:~/workspace/github/aditof_sdk/build/tools/eeprom-tool $ ./eeprom-tool -m -w /workspace/github/aditof_sdk/misc/ad-96tof1-ebz/ad96tof1_eeprom.bin
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0808 10:38:14.983278 5165 eeprom_tool.cpp:89] Setting connection via ON_TARGET
I0808 10:38:14.983879 5165 sensor_enumerator_raspberrypi.cpp:53] Looking for sensors on the target: Raspberry PI
I0808 10:38:14.985337 5165 addi9036_sensor.cpp:155] Opening device
I0808 10:38:14.985611 5165 addi9036_sensor.cpp:173] Looking for the following cards:
I0808 10:38:14.985694 5165 addi9036_sensor.cpp:175] unicam
W0808 10:38:14.985895 5165 addi9036_sensor.cpp:191] Cannot identify /dev/video0errno: 2error: No such file or directory
W0808 10:38:14.986016 5165 eeprom_tool.cpp:144] Failed to open depth sensor
E0808 10:38:14.986196 5165 main.cpp:76] Cannot set connection
I0808 10:38:14.986259 5165 eeprom_tool.cpp:269] Destroyed connection
W0808 10:38:14.986449 5165 addi9036_sensor.cpp:137] close m_implData->fd error errno: 9 error: Bad file descriptor
W0808 10:38:14.986522 5165 addi9036_sensor.cpp:143] close m_implData->sfd error errno: 9 error: Bad file descriptor

Any feedback would be highly appreciated.

Martin

Parents Reply
  • Hi Septimiu,

    I can confirm that /dev/i2c-11 exists.

    However, /sys/bus/i2c/devices/10-0056 does not contain eeprom. Here's the directory listing:

    pi@raspberrypi:/sys/bus/i2c/devices/10-0056 $ ls
    modalias name of_node power subsystem uevent

    Here are all available video devices:

    pi@raspberrypi:/ $ ls /dev/video*
    /dev/video10 /dev/video11 /dev/video12 /dev/video13 /dev/video14 /dev/video15 /dev/video16

    pi@raspberrypi:/ $ v4l2-ctl --list-devices
    bcm2835-codec-decode (platform:bcm2835-codec):
    /dev/video10
    /dev/video11
    /dev/video12

    bcm2835-isp (platform:bcm2835-isp):
    /dev/video13
    /dev/video14
    /dev/video15
    /dev/video16

    Cannot open device /dev/video0, exiting.

    Any feedback would be highly appreciated.

    Martin

Children