Hi !
I have start my BeagleboardXM Rev C by kernel 3.1.2
rootfs is Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2
patched the following two patches for mt9p031 sensor
add support for mt9p031 sensor
luckly it can drive mt9p031 well
v4l-subvideo0~v4l-subvideo8 video0~video8 appears under /dev/
get media-ctl and yavta from http://git.ideasonboard.org/media-ctl.git and http://git.ideasonboard.org/yavta.git
cross-compile them with angstrom tools successfully and move them to rootfs
but I can't use media-ctl and yavta get YUYV image data
the following serial output
root@beagleboard:~# media-ctl -v -r -l '"mt9p031 2-0048":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1], "OMAP3 ISP preview":1->"OMAP3 ISP resizer":0[1], "OMAP3 ISP resizer":1->"OMAP3 ISP resizer output": 0[1]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Resetting all links to inactive
Setting up link 16:0 -> 5:0 [1]
Setting up link 5:2 -> 7:0 [1]
Setting up link 7:1 -> 10:0 [1]
Setting up link 10:1 -> 12:0 [1]
root@beagleboard:~# media-ctl -v -f '"mt9p031 2-0048":0 [SGRBG12 1024x768], "OMAP3 ISP CCDC":2 [SGRBG10 1024x768], "OMAP3 ISP preview":1 [UYVY 10006x760], "OMAP3 ISP resizer":1 [UYVY 1024x768]'
Warning: the -f option is deprecated and has been replaced by -V.
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Setting up format SGRBG12 1024x768 on pad mt9p031 2-0048/0
Format set: SGRBG12 1024x768
Setting up format SGRBG12 1024x768 on pad OMAP3 ISP CCDC/0
Format set: SGRBG12 1024x768
Setting up format SGRBG10 1024x768 on pad OMAP3 ISP CCDC/2
Format set: SGRBG10 1024x767
Setting up format SGRBG10 1024x767 on pad OMAP3 ISP preview/0
Format set: SGRBG10 1024x767
Setting up format SGRBG10 1024x767 on pad OMAP3 ISP AEWB/0
Unable to set format: Invalid argument (-22)
Setting up format SGRBG10 1024x767 on pad OMAP3 ISP AF/0
Unable to set format: Invalid argument (-22)
Setting up format SGRBG10 1024x767 on pad OMAP3 ISP histogram/0
Unable to set format: Invalid argument (-22)
Setting up format UYVY 10006x760 on pad OMAP3 ISP preview/1
Format set: UYVY 1006x759
Setting up format UYVY 1006x759 on pad OMAP3 ISP resizer/0
Format set: UYVY 1006x759
Setting up format UYVY 1024x768 on pad OMAP3 ISP resizer/1
Format set: UYVY 1024x768
root@beagleboard:~# yavta -f UYVY -s 1024x768 -n 8 --skip 3 --capture=10 /dev/video6
Device /dev/video6 opened.
Device `OMAP3 ISP preview output' on `media' is a video capture device.
Video format set: UYVY (59565955) 1024x768 (stride 2048) buffer size 1572864
Video format: UYVY (59565955) 1024x768 (stride 2048) buffer size 1572864
8 buffers requested.
length: 1572864 offset: 0
Buffer 0 mapped at address 0x40276000.
length: 1572864 offset: 1572864
Buffer 1 mapped at address 0x404a2000.
length: 1572864 offset: 3145728
Buffer 2 mapped at address 0x40632000.
length: 1572864 offset: 4718592
Buffer 3 mapped at address 0x40815000.
length: 1572864 offset: 6291456
Buffer 4 mapped at address 0x40a22000.
length: 1572864 offset: 7864320
Buffer 5 mapped at address 0x40ba3000.
length: 1572864 offset: 9437184
Buffer 6 mapped at address 0x40dcd000.
length: 1572864 offset: 11010048
Buffer 7 mapped at address 0x4102b000.
Unable to start streaming: Invalid argument (22).
8 buffers released.
root@beagleboard:~#
when I config the ISP camera only SGRBG12, yavta works well, as follows
root@beagleboard:~# media-ctl -r -v -l '"mt9p031 2-0048":0->"OMAP3 ISP CCDC":0[1]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Resetting all links to inactive
Setting up link 16:0 -> 5:0 [1]
root@beagleboard:~# media-ctl -v -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Setting up link 5:1 -> 6:0 [1]
root@beagleboard:~# media-ctl -v -f '"mt9p031 2-0048":0 [SGRBG12 1024x768]'
Warning: the -f option is deprecated and has been replaced by -V.
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Setting up format SGRBG12 1024x768 on pad mt9p031 2-0048/0
Format set: SGRBG12 1024x768
Setting up format SGRBG12 1024x768 on pad OMAP3 ISP CCDC/0
Format set: SGRBG12 1024x768
root@beagleboard:~# media-ctl -v -f '"OMAP3 ISP CCDC":1 [SGRBG12 1024x768]'
Warning: the -f option is deprecated and has been replaced by -V.
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Setting up format SGRBG12 1024x768 on pad OMAP3 ISP CCDC/1
Format set: SGRBG12 1024x768
root@beagleboard:~# yavta -p -f SGRBG12 -s 1024x768 -n 4 --capture=10 --skip 3 $(media-ctl -e "OMAP3 ISP CCDC output") --file=capture-#.yuyv
Device /dev/video4 opened.
Device `OMAP3 ISP CCDC output' on `media' is a video capture device.
Video format set: SGRBG12 (32314142) 1024x768 (stride 2048) buffer size 1572864
Video format: SGRBG12 (32314142) 1024x768 (stride 2048) buffer size 1572864
4 buffers requested.
length: 1572864 offset: 0
Buffer 0 mapped at address 0x4030a000.
length: 1572864 offset: 1572864
Buffer 1 mapped at address 0x404d5000.
length: 1572864 offset: 3145728
Buffer 2 mapped at address 0x406af000.
length: 1572864 offset: 4718592
Buffer 3 mapped at address 0x408c5000.
Press enter to start capture
0 (0) [-] 4294967295 1572864 bytes 2926.805055 2926.805971 5.326 fps
1 (1) [-] 4294967295 1572864 bytes 2927.037874 2927.037966 4.295 fps
2 (2) [-] 4294967295 1572864 bytes 2927.142305 2927.142397 9.576 fps
3 (3) [-] 4294967295 1572864 bytes 2927.246736 2927.246828 9.576 fps
4 (0) [-] 4294967295 1572864 bytes 2927.351198 2927.351289 9.573 fps
5 (1) [-] 4294967295 1572864 bytes 2927.455629 2927.455690 9.576 fps
6 (2) [-] 4294967295 1572864 bytes 2927.560060 2927.560152 9.576 fps
7 (3) [-] 4294967295 1572864 bytes 2927.664491 2927.664583 9.576 fps
8 (0) [-] 4294967295 1572864 bytes 2927.768922 2927.769014 9.576 fps
9 (1) [-] 4294967295 1572864 bytes 2927.873354 2927.873445 9.576 fps
Captured 10 frames in 1.256164 seconds (7.960740 fps, 12521161.976479 B/s).
4 buffers released.
root@beagleboard:~#
Am I missing something either in pipeline configuration or capturing command?
could anyone help me.
regards!