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.

XM display 1024X768 resolution omaplfb error in android

Hello everyone,

 

We use xm board  and TI_Android_Froyo_DevKit-V2.2 softeware kit. When I change the lcd resolution from 640X480 to 1024X768 in the driver, I get following errors:

 

omaplfb: OMAPLFB_Init: OMAPLFBInit failed
request_suspend_state: wakeup (0->0) at 488285949713 (1970-01-01 00:08:08.285949713 UTC)
init: untracked pid 3053 exited

 

The path of driver file I have changed TI_Android_Froyo_DevKit-V2.2/Sources/Android_Linux_Kernel_2_6_32/drivers/video/omap2/displays, and the file name is panel-generic.c.

 

I can't find the symbol omaplfb in the kernel source.

Could anybody help me?

 

Thanks,

Yanbin Yue

 

  • Hello Yanbin Yue,

    >> I can't find the symbol omaplfb in the kernel source.

    omaplfb is display driver which is not part of kernel. We insmod omaplfb kernel module separately after the filesystem mount.

    >> omaplfb: OMAPLFB_Init: OMAPLFBInit failed
    >> request_suspend_state: wakeup (0->0) at 488285949713 (1970-01-01 00:08:08.285949713 UTC)
    >> init: untracked pid 3053 exited

    When  the resolution is changed to 1024X768, I think there isn't sufficient memory to allocate required no. of buffers (2 in this case)

    hence ompalfbinit fails.

    Can you please let us know what are your bootargs? Also it would be helpful if you can paste the log you obtain from logcat.

     

    Regards,

    Aditya


  • Hello Aditya,

    Thank you very much for your reply.

    I have found the omaplfb moulder not long ago, and I'm looking for its source code now.

    I'm very glad if you could tell me how I can let the system support 1024*768 resolution.

     

    Thanks.

    Yanbin Yue

  • Hello Aditya,

    We bootargs is :

    console=ttyS2,115200n8 androidboot.console=ttyS2 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off mpurate=1000 omap_vout.vid1_static_vrfb_alloc=y omapdss.def_disp=lcd

     

    Sorry for my last reply.

     

    Thanks,

    Yanbin Yue

  • Hello Yanbin Yue,

               Try to set vram size to ~8M in your bootargs as shown below -

    console=ttyS2,115200n8 androidboot.console=ttyS2 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off mpurate=1000 omap_vout.vid1_static_vrfb_alloc=y omapdss.def_disp=lcd  vram="8M" omapfb.vram=0:8M

     

     It should most probably fix the problem. If the above fix doesn't work,  please send the logcat debug logs inorder to debug further.

     

    Regards,

    Aditya

     

     

     

  • Hi,

    Since yesterday I am playing around with a BB xM and Froyo/Gingerbread. I was able to change the resolution with this bootargs:

    setenv bootargs 'console=ttyS2,115200n8 androidboot.console=ttyS2 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off mpurate=1000 omap_vout.vid1_static_vrfb_alloc=y vram=16M omapfb.vram=0:8M,1:4M,2:4M omapfb.mode=dvi:1280x720MR-16 omapdss.def_disp=dvi'

     

    This works on my samsung lcd monitor fine, but my TV (also samsung) says mode unsupported. Dunno why, but this could help you.

     

    best regards

  • Hi Arkadius,

        I wanted to check couple of things -

    1) Does your TV support 1280x720 resolution?

    2)  Which port do you connect on your tv? Are you using DVI-HDMI or some similar converter?

    3) Are you using the same bootargs with LCD monitor?

       Also can you try setting  resolution to (1024x768) and check?

     

    Regards,

    Aditya

  • Hi Aditya,

     

    Yes, it's a fullHD TV, so 720p shouldn't be a problem. My Beagleboard xM is connected directly to the TVs HDMI. Everything is the same with the bootargs.  Just tried 1024x768 on my TV, but still "mode not supported".

     

    best regards,

    Arkadius

  • Hello Aditya,

     

    I use this bootargs, it could works now,

    console=ttyS2,115200n8 androidboot.console=ttyS2 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off mpurate=1000 omap_vout.vid1_static_vrfb_alloc=y omapdss.def_disp=lcd  vram=8M omapfb.vram=0:8M

     

    the vram="8M" should be vram=8M .

     

    Thanks very much.

     

    Yanbin Yue

  • Hello Arkadius,

     

    You should check the pixel_clock in lcd driver.

    If the pixel_clock don't fit the resolution, you wil get that reslut, too.

     

    regards,

    Yanbin Yue.