Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Apr 2008 10:41 AM by  ecastelo
How can i get the LCD-3.5-QVGA-10 to run on Linux 2.6.22
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
ecastelo
New Member
New Member
Posts:


--
28 Mar 2008 10:30 PM
    I have tried many things, and seen many different results but i cannot get the LCD to display anything useful.
    In LOLO i do:
    video-open 6 16
    draw-test

    I see the boxes like the manual says. I then tried to get DirectFB to build, but it complains that the Kernel Headers must be included. When i select DirectFB, i cannot select Include Kernel Header, so i am assuming it is set automatically, but it does not build. Qtopia complains about Qtopia-tslib. I am not sure if i even need these packages.

    So next i tried the patch information from http://tdg.logicpd.com/viewtopic.php?f=29&t=1135&st=0&sk=t&sd=a&start=45
    There is a patch included, but it is intended for 2.6.19.2, so i added the code to the files myself. I used these settings for the LCD:
    xres: 240,
    yres: 320,
    pixel_clock 35285,
    hsync_len: 13, /* hsw */
    vsync_len: 2, /* vsw */
    left_margin: 21, /* hbp */
    upper_margin: 5, /* vbp */
    right_margin: 11, /* hfp */
    lower_margin: 5, /* vfp */
    sync: FB_SYNC_VERT_HIGH_ACT

    I am not completely sure about FB_SYNC_VERT_HIGH_ACT, if i implemented it correctly. The patch was intended for the 10" LCD. When i start the board up, the screen starts out with garbage, then when the kernel is loading, the screen goes white. Thats all it does after that. When i am working in linux, the screen never changes.
    When I do fbset and i get:
    mode "240x320-300"
    geometry 240 320 240 640 16
    timings 35285 21 11 5 5 13 2
    accel false
    rgba 5/11,6/5,5/0,0/0

    I set in the command line both console=tty and console=fbcon.

    When the kernel boots the logo never appears and i see:
    [ 51.490000] mxc_ipu mxc_ipu: Warning: channel already initialized
    [ 52.490000] Console: switching to colour frame buffer device 30x40
    [ 54.490000] mxcfb: fb registered, using mode Sharp-QVGA

    So where am i going wrong?

    Thanks
    Rico
    macneibfallon
    New Member
    New Member
    Posts:


    --
    31 Mar 2008 10:49 PM
    Hi I've got the exact same problem.
    I've reverted back to my 2.6.19.2 build and I'm still experiencing this.
    I'm particularly interested in how some folks here managed to get DirectFB up and running.
    Did you compile it separately?

    I'll post my build steps in the morning.

    any thoughts or suggestions would be greatly appreciated.
    Regards
    Blair
    ecastelo
    New Member
    New Member
    Posts:


    --
    01 Apr 2008 10:41 AM
    I got DirectFB to compile now. But i don't see any video on my LCD. I do not see the Linux Logo appear.

    To get DirectFB to compile you need to create a symlink between autoconfig.h and config.h that it complains about.

    Move to the folder /"LTIB Installation"/rootfs/usr/src/linux/include/linux
    sudo ln -s autoconfig.h config.h

    This will give the missing config.h file and DirectFB should compile.

    Other then console=tty or console=fbcon, is there anything else in the Commandline i am suppose to give?

    Still cannot get QTopia to compile.


    Thanks
    Rico
    You are not authorized to post a reply.