summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex J Lennon <ajlennon@dynamicdevices.co.uk>2014-06-14 14:38:13 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2014-08-14 19:54:30 +0200
commit6a8c859c2f1c1f56e6ff0f19cd67a5b4d2380d53 (patch)
tree3d3606010fb54167c2de8d75b2c1454af71308d5
parente598f63fbbab28bb2e6fe368d0e518d91003d9de (diff)
downloadmeta-raspberrypi-6a8c859c2f1c1f56e6ff0f19cd67a5b4d2380d53.tar.gz
rpi-config,README: Add option to enable offline image compositing
Set this variable to enable support for dispmanx offline compositing DISMANX_OFFLINE = "1" This will enable the firmware to fall back to off-line compositing of Dispmanx elements. Normally the compositing is done on-line, during scanout, but cannot handle too many elements. With off-line enabled, an off-screen buffer is allocated for compositing. When scene complexity (number and sizes of elements) is high, compositing will happen off-line into the buffer. Heavily recommended for Wayland/Weston. See: http://wayland.freedesktop.org/raspberrypi.html Change-Id: I722b20ff5bdba1bdd0683d30bee07c3934c95a1f Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
-rw-r--r--README29
-rw-r--r--recipes-bcm/bootfiles/rpi-config_git.bb6
2 files changed, 29 insertions, 6 deletions
diff --git a/README b/README
index 19de368..31160bf 100644
--- a/README
+++ b/README
@@ -35,9 +35,10 @@ Contents:
35 2.D. Disable overscan 35 2.D. Disable overscan
36 2.E. Set overclocking options 36 2.E. Set overclocking options
37 2.F. Optional - Video camera support with V4L2 drivers 37 2.F. Optional - Video camera support with V4L2 drivers
38 2.G. Images 38 2.G. Optional - Enable offline compositing support
39 2.H. Boot to U-Boot 39 2.H. Images
40 2.I. Image with Initramfs 40 2.I. Boot to U-Boot
41 2.J. Image with Initramfs
413. Extra apps 423. Extra apps
42 3.A. omxplayer 43 3.A. omxplayer
434. Source code and mirrors 444. Source code and mirrors
@@ -138,7 +139,23 @@ OVER_VOLTAGE = "6"
138Set this variable to enable support for the video camera (Linux 3.12.4+ required) 139Set this variable to enable support for the video camera (Linux 3.12.4+ required)
139VIDEO_CAMERA = "1" 140VIDEO_CAMERA = "1"
140 141
1412.G. Images 1422.G. Optional - Enable offline compositing support
143==================================================
144
145Set this variable to enable support for dispmanx offline compositing
146DISMANX_OFFLINE = "1"
147
148This will enable the firmware to fall back to off-line compositing of
149Dispmanx elements. Normally the compositing is done on-line, during scanout,
150but cannot handle too many elements. With off-line enabled, an off-screen
151buffer is allocated for compositing. When scene complexity (number and sizes
152of elements) is high, compositing will happen off-line into the buffer.
153
154Heavily recommended for Wayland/Weston.
155
156See: http://wayland.freedesktop.org/raspberrypi.html
157
1582.H. Images
142=========== 159===========
143* rpi-hwup-image 160* rpi-hwup-image
144 Hardware up image 161 Hardware up image
@@ -148,7 +165,7 @@ VIDEO_CAMERA = "1"
148 Image based on rpi-basic-image which includes most of the packages in this 165 Image based on rpi-basic-image which includes most of the packages in this
149 layer and some media samples. 166 layer and some media samples.
150 167
1512.H. Boot to U-Boot 1682.I. Boot to U-Boot
152=================== 169===================
153To have u-boot load kernel image, set in your local.conf 170To have u-boot load kernel image, set in your local.conf
154KERNEL_IMAGETYPE = "uImage" 171KERNEL_IMAGETYPE = "uImage"
@@ -156,7 +173,7 @@ KERNEL_IMAGETYPE = "uImage"
156This will make kernel.img be u-boot image which will load uImage. 173This will make kernel.img be u-boot image which will load uImage.
157By default, kernel.img is the actual kernel image (ex. Image). 174By default, kernel.img is the actual kernel image (ex. Image).
158 175
1592.I. Image with Initramfs 1762.J. Image with Initramfs
160========================= 177=========================
161To build an initramfs image : 178To build an initramfs image :
162 * Set this 3 kernel variables (in linux-raspberrypi.inc for example) 179 * Set this 3 kernel variables (in linux-raspberrypi.inc for example)
diff --git a/recipes-bcm/bootfiles/rpi-config_git.bb b/recipes-bcm/bootfiles/rpi-config_git.bb
index 9b5c1e6..29ced34 100644
--- a/recipes-bcm/bootfiles/rpi-config_git.bb
+++ b/recipes-bcm/bootfiles/rpi-config_git.bb
@@ -60,6 +60,12 @@ do_deploy() {
60 echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 60 echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
61 echo "start_x=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 61 echo "start_x=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
62 fi 62 fi
63
64 # Offline compositing support
65 if [ -n "${DISPMANX_OFFLINE}" ]; then
66 echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
67 echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
68 fi
63} 69}
64 70
65addtask deploy before do_package after do_install 71addtask deploy before do_package after do_install