[#4126] Colours can't display properly in BF527-EZKIT when run both qt and microwin apps
Submitted By: Vivi Li
Open Date
2008-05-26 04:05:12 Close Date
2008-06-23 06:28:41
Priority:
Medium High Assignee:
Michael Hennerich
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
08r1-rc8
App binary format:
N/A
Summary: Colours can't display properly in BF527-EZKIT when run both qt and microwin apps
Details:
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.
--
root:/>
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:/> modprobe bfin_t350mcqb_fb
bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...
root:/> nano-X &
105
root:/> nanowm &
106
root:/> nxclock
nano-X: client closed socket: 6
root:/>
root:/> nxkbd
nano-X: client closed socket: 6
root:/>
--
Configs are attached.
Follow-ups
--- 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
--- 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;
struct fb_var_screeninfo
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.
-Michael
--- Vivi Li 2008-06-23 06:28:40
OK, as it's the application problem, we close it.
Thank you, Michael.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.microwin text/plain 26798 Vivi Li
config.qt.fdpic text/plain 29645 Vivi Li