This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using /dev/fb1 with FBDEV



Hi everybody.

I'm using DM6446 evm. I want to use /dev/fb/1 with FBDEV. But we can't use it. Is it possible to use /dev/fb/1 with FBDEV(not v4l2)? I wonder that we should do something to use /dev/fb/1 with FBDEV. for example, setting boot arguments, setting /dev/vidoe0 to use /dev/fb/1 and so on...

FYI, I append logs

---> width=800, height=600, virtual=600
---> V5 (0)(0)(0)
@0x000cefed:[T:0x4001f950] ti.sdo.dmai - [Display] Failed to get 1 buffer(s) with the requested screen size: 800x600
---> B (0)(0)(0)(0)
@0x000cf2d7:[T:0x4001f950] ti.sdo.dmai - [Display] Failed FBIOPAN_DISPLAY (No such device)
Error: Failed to create vid0 window device
---> B (720)(480)(720)(480)
Error: Failed to create UI

And, I am going to use vid0 as background, not capture display.

Thank you and BR.

 

  • I solved the problem. I add arguments as following.

    setenv bootargs console=ttyS0,115200n8 ip=192.168.0.243 root=/dev/nfs nfsroot=$(serverip):$(nfspath),nolock video=davincifb:vid0=1024x768x16,3000K@0x0,0 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=640x480 mem=118M

    But, I have another question. I want to display some image on /dev/fb/1. I know that uyvy format is used for vid0. I am using encode demo program. The encode demo program has functions(Png_create() and Png_show()) which can display png image files on osd0. But I could not find out functions to display uyvy image on demo.

    1. How can we create uyvy image? Should we convert png image into uyvy image?

    2. How can we display uyvy image on vid0?

    3. Where can we get  informat about mothod or sources to display uyvy image?

    Thank you and BR.

  • you will have to create a UYUV file using commercial software or writting your own program to do so... should not be too hard.  I wrote a raw bmp to RGB565 program (about 100 lines or so) when I wrote the following App Note.

    http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spraad7

    Also, as suggested in the App Note above, you can use the cat command to place the UYUV file onto /dev/fb/1 directly via Linux command line, or you can optionally write a program (e.g. myfbdev = open (/dev/fb/1); write (myfbdev, data-in-file, size)...)

     

  • Hi

    From the TI Forum,I know that you once developed on DM6446 to display a UYUV data directly on fb.

    Did you solve this problem?We recently worked on this too.

    How to display a uyuv image on vid0?

    Thank you ~~