i.MX31 PDK Board V4L tests

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

i.MX31 PDK Board V4L tests

i.MX31 PDK Board V4L tests

Video Unit Test

The BSP provides a package that allows testing of several i.MX 31 peripherals on the PDK. The name of this package is 'imx-test'.

  The name of the package may vary according to SDK release, at the time of the writing SDK 1.4 was used, on SDK 1.2 the name of a similar package was 'mxc-misc'

  For more information on the imx-test package refer to the SDK 1.4 manual, imx31_Linux_RM.pdf, chapter 49 - Unit Tests. This file is available on BSP tarball


Testing

To test the image sensor and the display on the PDK follow the steps below:

  • Enable imx-test and util-linux packages:
$ ./ltib -c

Imxtest.png

Util-linux.png

  • Once "ltib" finishes boot the system. On the target board:
$ modprobe mxc_v4l2_capture 
  • Check if /dev/video0 was created
$ ll /dev/video* 
lrwxrwxrwx  1 root root            6 Jan 1 20:47 /dev/video -> video0 
crw-rw----     1 root root    81,   0 Jan 1 20:47 /dev/video0 
crw-rw----     1 root root    81, 16 Jan 1 20:46 /dev/video16
  • Now run the unit tests:
$./mxc_v4l2_overlay.out -iw 640 -ih 480 -ow 480 -oh 640 -r 4 -fr 30 -t 10 

- capture images with the sensor and display on the LCD

$./mxc_v4l2_capture.out -w 640 -h 480 -r 0 -c 150 -fr 30 test3.yuv 

- capture images and save on /unit-tests/test3.yuv

$./mxc_v4l2_output.out -iw 640 -ih 480 -ow 480 -oh 640 -d 4 -fr 60 test3.yuv 

- capture images and save on /unit-tests/test3.yuv

  For usage syntax type: command -help. ./mxc_v4l2_output.out -help

Source Code

If you want to check the source code, on the host machine "ltib" install path type:

$./ltib -m prep -p imx-tests 

Then, go to <ltib install path>/rpm/BUILD/imx-test-2.3.2/test/mxc_v4l2_test

V4l-unit-tests_files.png


%3CLINGO-SUB%20id%3D%22lingo-sub-1102709%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX31%20PDK%20Board%20V4L%20tests%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102709%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-380551293%22%20id%3D%22toc-hId-380551293%22%20id%3D%22toc-hId-1297631825%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%20Video%20Unit%20Test%20%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3EThe%20BSP%20provides%20a%20package%20that%20allows%20testing%20of%20several%20i.MX%2031%20peripherals%20on%20the%20PDK.%20The%20name%20of%20this%20package%20is%20'imx-test'.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23eeeeff%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22note%22%3E%26nbsp%3B%20The%20name%20of%20the%20package%20may%20vary%20according%20to%20SDK%20release%2C%20at%20the%20time%20of%20the%20writing%20SDK%201.4%20was%20used%2C%20on%20SDK%201.2%20the%20name%20of%20a%20similar%20package%20was%20'mxc-misc'%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3E%26nbsp%3B%20For%20more%20information%20on%20the%20imx-test%20package%20refer%20to%20the%20SDK%201.4%20manual%2C%20imx31_Linux_RM.pdf%2C%20chapter%2049%20-%20Unit%20Tests.%20This%20file%20is%20available%20on%20BSP%20tarball%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CH1%20id%3D%22toc-hId--1426903170%22%20id%3D%22toc-hId--1426903170%22%20id%3D%22toc-hId--509822638%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ETesting%20%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3ETo%20test%20the%20image%20sensor%20and%20the%20display%20on%20the%20PDK%20follow%20the%20steps%20below%3A%3C%2FP%3E%3CUL%3E%3CLI%3EEnable%20imx-test%20and%20util-linux%20packages%3A%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20.%2Fltib%20-c%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Imxtest.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Imxtest.png%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37850i58538EF6A1FF94B9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Imxtest.png%22%20alt%3D%22Imxtest.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Util-linux.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Util-linux.png%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37859i7A6C8B1EBABBCD37%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Util-linux.png%22%20alt%3D%22Util-linux.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CUL%3E%3CLI%3EOnce%20%22ltib%22%20finishes%20boot%20the%20system.%20On%20the%20target%20board%3A%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20modprobe%20mxc_v4l2_capture%20%3C%2FPRE%3E%3CUL%3E%3CLI%3ECheck%20if%20%2Fdev%2Fvideo0%20was%20created%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20ll%20%2Fdev%2Fvideo*%20%0Alrwxrwxrwx%26nbsp%3B%201%20root%20root%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%206%20Jan%201%2020%3A47%20%2Fdev%2Fvideo%20-%26gt%3B%20video0%20%0Acrw-rw----%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%20root%20root%26nbsp%3B%26nbsp%3B%26nbsp%3B%2081%2C%26nbsp%3B%26nbsp%3B%200%20Jan%201%2020%3A47%20%2Fdev%2Fvideo0%20%0Acrw-rw----%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%20root%20root%26nbsp%3B%26nbsp%3B%26nbsp%3B%2081%2C%2016%20Jan%201%2020%3A46%20%2Fdev%2Fvideo16%0A%3C%2FPRE%3E%3CUL%3E%3CLI%3ENow%20run%20the%20unit%20tests%3A%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20class%3D%22jive-pre%22%3E%24.%2Fmxc_v4l2_overlay.out%20-iw%20640%20-ih%20480%20-ow%20480%20-oh%20640%20-r%204%20-fr%2030%20-t%2010%20%3C%2FPRE%3E%3CP%3E-%20capture%20images%20with%20the%20sensor%20and%20display%20on%20the%20LCD%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24.%2Fmxc_v4l2_capture.out%20-w%20640%20-h%20480%20-r%200%20-c%20150%20-fr%2030%20test3.yuv%20%3C%2FPRE%3E%3CP%3E-%20capture%20images%20and%20save%20on%20%2Funit-tests%2Ftest3.yuv%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24.%2Fmxc_v4l2_output.out%20-iw%20640%20-ih%20480%20-ow%20480%20-oh%20640%20-d%204%20-fr%2060%20test3.yuv%20%3C%2FPRE%3E%3CP%3E-%20capture%20images%20and%20save%20on%20%2Funit-tests%2Ftest3.yuv%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3E%26nbsp%3B%20For%20usage%20syntax%20type%3A%20command%20-help.%20.%2Fmxc_v4l2_output.out%20-help%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH1%20id%3D%22toc-hId-1060609663%22%20id%3D%22toc-hId-1060609663%22%20id%3D%22toc-hId-1977690195%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%20Source%20Code%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3EIf%20you%20want%20to%20check%20the%20source%20code%2C%20on%20the%20host%20machine%20%22ltib%22%20install%20path%20type%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24.%2Fltib%20-m%20prep%20-p%20imx-tests%20%3C%2FPRE%3E%3CP%3EThen%2C%20go%20to%20%3CLTIB%20install%3D%22%22%20path%3D%22%22%3E%2Frpm%2FBUILD%2Fimx-test-2.3.2%2Ftest%2Fmxc_v4l2_test%3C%2FLTIB%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22V4l-unit-tests_files.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22V4l-unit-tests_files.png%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37863i363D93E4436B8D51%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22V4l-unit-tests_files.png%22%20alt%3D%22V4l-unit-tests_files.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 01:46 AM
Updated by: