[#4126] Colours can't display properly in BF527-EZKIT when run both qt and microwin apps
Submitted By: Vivi Li
2008-05-26 04:05:12 Close Date
Medium High Assignee:
Closed Fixed In Release:
Found In Release:
N/A Silicon Revision:
Is this bug repeatable?:
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
Summary: Colours can't display properly in BF527-EZKIT when run both qt and microwin apps
Display a picture with three green, blue and red circles on it. The blue ball is red and the red ball is blue. Green ball is OK.
usb 1-1: new low speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
input: HID 413c:3010 as /class/input/input0
input: USB HID v1.10 Mouse [HID 413c:3010] on usb-musb_hdrc.0-1
root:/> export QTDIR=/usr/local/qt-embedded/
root:/> modprobe bfin_t350mcqb_fb
bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...
root:/> ./pictureflow -qws
Creating mouse: Auto
Cannot open keyboard
If microwin application is run, the red bar above the window becomes blue...
root:/> nano-X &
root:/> nanowm &
nano-X: client closed socket: 6
Configs are attached.
--- Michael Hennerich 2008-06-18 09:27:55
I don't fully understand.
The colors doesn't match! Always or after you started something?
The Bf527-EZkit uses RGB24 while the BF548-EZKIT uses BGR24 color format.
--- Michael Hennerich 2008-06-23 04:13:22
This is not a Linux driver bug.
Nano-X as well as QT should evaluate struct fb_var_screeninfo red.offset and
blue.offset, but it doesn’t.
It always assumes BGR color ordering for 24-bit colors.
The framebuffer driver specifies the color ordering as following.
fbinfo->var.red.offset = 0;
fbinfo->var.green.offset = 8;
fbinfo->var.blue.offset = 16;
fbinfo->var.transp.offset = 0;
This works with the fb console as well as in applications such as mplayer.
Please close this bug, there is nothing I can do in the kernel.
--- Vivi Li 2008-06-23 06:28:40
OK, as it's the application problem, we close it.
Thank you, Michael.
File Name File Type File Size Posted By
config.microwin text/plain 26798 Vivi Li
config.qt.fdpic text/plain 29645 Vivi Li