M5329EVB - framebuffer not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

M5329EVB - framebuffer not working

2,225 Views
jare
Contributor I
Hi all,
I have problem getting the framebuffer working in linux (m532xevb-20071102-ltib.iso, updated with m5329-20071102-update-ltib.tar.gz). I have selected microwindows in package selector and enabled framebuffer in the kernel configuration.

Linux is normally running, framebuffer is initialized (see the corresponding part of /var/log/messages in attachment), but the nanox examples don't show anything on the screen. Nevertheless the examples seem to be running: after launching the demo2.sh ps shows running bin/nano-X, bin/nanowm, bin/nxeyes, bin/tux. The /usr/nanox/bib/nxcal also seems to be working (it waits for 4 touches on the display and prints diagnostic messages on the console).

The "video-open 6 16" and "draw-test" commands from the LogicLoader show the correct test pattern, so the hardware is probably good. The LCD display is the Logic's LCD-3.5-QVGA-10.

What am I doing wrong? Can anybody send me his /var/log/messages from functioning system?

Many thanks

Jan Rejlek
Labels (1)
0 Kudos
5 Replies

618 Views
mwaddel
Contributor I
Do you see the "tux" image on the screen as the kernel boots?  Can you tell
if the backlight is on?

Best regards,
Matt
0 Kudos

618 Views
jare
Contributor I
No, there is nothing on the screen at boot time also. The backlight is on.

Best regards,

Jan
0 Kudos

618 Views
mwaddel
Contributor I
You should see the little penguin in the corner of the screen while
the system is booting. 

Besides the frame buffer options you mentioned in your original
 message, what other frame buffer options are enabled in your
kernel?  I have the following enabled in the default configuration:

# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set
# CONFIG_VGASTATE is not set
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
# CONFIG_FB_DDC is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_SYS_FOPS is not set
CONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set

#
# Frame buffer hardware drivers
#
# CONFIG_FB_S1D13XXX is not set
CONFIG_FB_M532x=y
# CONFIG_LCD_640x480 is not set
# CONFIG_LCD_800x600 is not set
CONFIG_LCD_240x320=y
# CONFIG_FB_VIRTUAL is not set

#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
CONFIG_FONT_MINI_4x6=y
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y

You probably don't need all these options, but once you get a
working frame buffer you can disabling options.

0 Kudos

618 Views
jare
Contributor I
I have changed my kernel configuration according to above post from mwaddel - the only differences were in the items CONFIG_DISPLAY_SUPPORT and CONFIG_FIRMWARE_EDID. Unfortunately no success yet, instead of the penguin the irregular vertical lines appear when the system is booting, and they stay here - see the attached photo. (The horizontal grey lines are not actually on the display, it is moire from photo processing).

Jan
0 Kudos

618 Views
jare
Contributor I
Problem is solved!
The driver linux-2.6.22-uc1.20070808/drivers/video/m532xfb.c seems to not support my Sharp 240x320 TFT panel. I have modified it - the net result of my modifications is:

MCF_LCDC_LPCR = 0xcc2480c9
and
MCF_LCDC_LPCCR = 0x00a00510

Thanks to mwaddel - although his posts didn't lead directly to the solution, they helped me in better orientation in the problem.
0 Kudos