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


No ratings
Version history
Last update:
‎09-10-2020 01:46 AM
Updated by: