summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2017-04-08 21:45:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-11 18:06:25 +0100
commite7434c17b4b3d984e11611ee7c2143a7b4557a67 (patch)
tree5d143c657c348275a578d625a4d48736d4f4c1e5
parentb06f7cbb9437eff4a89e8edbfea1501135b73912 (diff)
downloadpoky-e7434c17b4b3d984e11611ee7c2143a7b4557a67.tar.gz
meta-yocto-bsp: workaround the X malfunction on beaglebone
After the change in kernel commit a291b6b3d287 ("ARM: dts: am335x-boneblack: Add blue-and-red-wiring -property to LCDC node"), the pixel format we support for 32bit bpp has been changed from XRGB8888 to XBGR8888. But the fbdev created by modesetting driver use the XRGB8888 format by default, this causes the X malfunction. There is no easy way to adjust the pixel format of the fbdev created by the modesetting driver. So we create a xorg.conf to use the 16bit bpp to work around this issue. [YOCTO #11267] (From meta-yocto rev: 1ef8a9584298a8745a28c0c92fa3ecbf92ffe494) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/beaglebone/xorg.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/beaglebone/xorg.conf b/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/beaglebone/xorg.conf
new file mode 100644
index 0000000000..2f40dae157
--- /dev/null
+++ b/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/beaglebone/xorg.conf
@@ -0,0 +1,20 @@
1Section "Monitor"
2 Identifier "Builtin Default Monitor"
3EndSection
4
5Section "Device"
6 Identifier "Builtin Default fbdev Device 0"
7 Driver "modesetting"
8EndSection
9
10Section "Screen"
11 Identifier "Builtin Default fbdev Screen 0"
12 DefaultDepth 16
13 Device "Builtin Default fbdev Device 0"
14 Monitor "Builtin Default Monitor"
15EndSection
16
17Section "ServerLayout"
18 Identifier "Builtin Default Layout"
19 Screen "Builtin Default fbdev Screen 0"
20EndSection