Hi,
i want read the image from the camera and display it on the LCD through v4l2. But the program hangs while dequeue the display buffer.
I think, the problem is the framebuffer size bootargs. If i use only the bootargs below, the LCD works, but i have the descripted problem.
If i add "video=vpbe_fb:vid0=640x480x16,1800K@0,0:vid1=off:osd0=640x480x16,1800K@0,0:osd1=640x480x4,600K@0,0", the LCD don't work and i get some errors:
vpfe-capture vpfe-capture: v4l2 device registered
Leopard: switch to VGA imager-MT9V126 video input
mt9v126 1-0048: Detected a MT9V126 chip ID 2281
mt9v126: mt9v126 decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device mt9v126 registered
vpbe-osd vpbe-osd: OSD sub device probe success
vpbe-venc vpbe-venc: VENC sub device probe success
vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
Setting default output to Lcdout
Setting default mode to 320x240p60
vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
vpbe-v4l2 vpbe-v4l2: layer=c499d000,layer->video_dev=c499d0f4
vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
vpbe-v4l2 vpbe-v4l2: layer=c499d200,layer->video_dev=c499d2f4
vpbe-fb vpbe-fb: dm_osd0_fb: Initial window configuration is invalid.
Console: switching to colour frame buffer device 80x30
vpbe-fb vpbe-fb: dm_osd0_fb: 640x480x16@0,0 with framebuffer size 1800KB
vpbe-fb vpbe-fb: dm_vid0_fb: Initial window configuration is invalid.
vpbe-fb vpbe-fb: dm_vid0_fb: 640x480x16@0,0 with framebuffer size 1800KB
vpbe-fb vpbe-fb: dm_osd1_fb: Initial window configuration is invalid.
vpbe-fb vpbe-fb: dm_osd1_fb: 640x480x4@0,0 with framebuffer size 600KB
VPBE FB Driver probe success
DM365 IPIPEIF probed
The configuration failed, because of line 1599:
if (mode->xres < var->xres || mode->yres < var->yres)
My setup:
- DaVinci PSP 03.21.00.04 Kernel (2.6.37) with some modification, see https://github.com/Klaus-schwarzkopf/linux-davinci-sensortherm/tree/sensortherm-2.6.37
- My program based on the ti examples for the media framework: https://github.com/Klaus-schwarzkopf/mt9v126_ccdc_loopback_mmap
- aptina camera mt9v126 (640x480) --[BT.656]--> Leopardboard DM365 --[PRGB]--> LCD (320x240)
- setenv bootargs mem=80M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=$(serverip):/home/klaus/dvsdk/fs ip=$(ipaddr):$(serverip):192.168.0.1:255.255.255.0:leopard:eth0:off ethaddr=00:09:45:53:d1:b3 vpfe-capture.interface=1 vpbe.def_output=Lcdout vpbe.def_mode=320x240p60 vpbe.debug=1 vpbe-venc.debug=2
Can you help me?
Regards,
Klaus