VADC failed - i.MXSoloX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VADC failed - i.MXSoloX

Jump to solution
2,094 Views
osmarfrisonjun1
Contributor III

Hi,

I am trying to use the VADC at the MX6SX SDB. (i.MX L3.14.52_1.1.0 GA)

I connected the camera input at the VADC_IN0, and I checked the signal after the C353 using the oscilloscope, and it is okay.

Captura de tela de 2016-02-22 09_48_18.png

The imx6sx-sdb.dts says:

&vadc {

    vadc_in = <0>;

    csi_id = <1>;

    status = "okay";

    port {

        vadc_ep: endpoint {

            remote-endpoint = <&csi2_ep>;

        };

    };

};

The i.MX_Linux_Reference_Manual says:

Captura de tela de 2016-02-22 10_01_17.png

My unit_tests doesn't have "csi_v4l2_tvin.out"

root@imx6sxsabresd:/unit_tests# ls

all-suite.txt           check_mixer.out            mxc_l2switch_test.out

audio8k16S.wav          check_recording.out        mxc_mcc_tty_test.out

autorun-asrc.sh         check_synchronization.out  mxc_mlb_test.out

autorun-ata.sh          check_volume2.out          mxc_sdma_test.out

autorun-fb.sh           csi_v4l2_overlay.out       mxc_spdc_fb_test.out

autorun-firi.sh         daisy-640x480-565.rgb      mxc_spi_test1.out

autorun-hantro.sh       dbg_monitor.sh             mxc_tuner_test.out

autorun-keypad.sh       desk240x180-565.rgb        mxc_tuner_test.sh

autorun-mmc-blockrw.sh  dryice.sh                  mxc_tve_test.sh

autorun-mmc-fdisk.sh    dump-clocks-dot.sh         mxc_uart_stress_test.out

autorun-mmc-fs.sh       dump-clocks.sh             mxc_uart_test.out

autorun-mmc-mkfs.sh     etm                        mxc_uart_xmit_test.out

autorun-mmc.sh          gpu.sh                     mxc_v4l2_output.out

autorun-mxc_uart.sh     gpuinfo.sh                 mxc_v4l2_still.out

autorun-oprofile.sh     memtool                    mxc_v4l2_tvin.out

autorun-owire.sh        mmdc2                      pansy-1280x720-565.rgb

autorun-pxp.sh          mx6s_v4l2_capture.out      plumbago-1280x1024-565.rgb

autorun-rtc.sh          mxc_asrc_test.out          pxp_test.out

autorun-sound.sh        mxc_dcic_test.out          pxp_v4l2_out_test.sh

autorun-usb-gadget.sh   mxc_epdc_fb_test.out       pxp_v4l2_test.out

autorun-usb-host.sh     mxc_epdc_v2_fb_test.out    rose-800x600-565.rgb

autorun-v4l2.sh         mxc_epdc_x11_fb_test.out   rtctest.out

autorun-wdog.sh         mxc_fb_test.out            rtcwakeup.out

autorun.sh              mxc_fb_vsync_test.out      suspend_quick_auto.sh

cam2mpeg4.out           mxc_i2c_slave_test.out     suspend_random_auto.sh

check_2w1r.out          mxc_iim_test.out           test-utils.sh

check_audio.out         mxc_irlan_test.sh          wall-1024x768-565.rgb

check_ioctls.out        mxc_isl29023.out           wdt_driver_test.out

check_minor_open.out    mxc_keyb_test.sh           x11_overlay.out

Some debugs:

/**********************************************************************************************/

root@imx6sxsabresd:/unit_tests# lsmod

Module                  Size  Used by

mx6s_capture           14549  0

mxc_dcic                6569  0

ov5640_camera          20096  0

evbug                   1875  0

/**********************************************************************************************/

root@imx6sxsabresd:/unit_tests# ./mx6s_v4l2_capture.out -l

open video device /dev/video0

Video device /dev/video0 not support v4l2 capture

open video device /dev/video1

Found v4l2 capture device /dev/video1

open video device /dev/video2

Found v4l2 capture device /dev/video2

unable to open /dev/video3 for capture device.

unable to open /dev/video4 for capture device.

/**********************************************************************************************/

root@imx6sxsabresd:/unit_tests# ./mxc_v4l2_tvin.out -ow 1024 -oh 768

Unable to open /dev/video17

/**********************************************************************************************/

How can I test the camera input?

Thanks.

Labels (1)
0 Kudos
Reply
1 Solution
1,082 Views
osmarfrisonjun1
Contributor III

Answering my own question.

Using i.MX L3.14.52_1.1.0 GA

$ insmod /lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/media/platform/mxc/subdev/mxc_vadc.ko

$ lsmod

Module                  Size  Used by

mxc_vadc                6511  1

mx6s_capture           14549  0

ov5640_camera          20096  0

mxc_dcic                6569  0

evbug                   1875  0

$ /unit_tests/mx6s_v4l2_capture.out -ow 720 -oh 576 -d /dev/video2 -t 50 -fr 30

it should work

View solution in original post

0 Kudos
Reply
2 Replies
1,083 Views
osmarfrisonjun1
Contributor III

Answering my own question.

Using i.MX L3.14.52_1.1.0 GA

$ insmod /lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/media/platform/mxc/subdev/mxc_vadc.ko

$ lsmod

Module                  Size  Used by

mxc_vadc                6511  1

mx6s_capture           14549  0

ov5640_camera          20096  0

mxc_dcic                6569  0

evbug                   1875  0

$ /unit_tests/mx6s_v4l2_capture.out -ow 720 -oh 576 -d /dev/video2 -t 50 -fr 30

it should work

0 Kudos
Reply
1,082 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi,

Thanks a lot for sharing your solution with the Community.

Best regards!

/Carlos

0 Kudos
Reply