diff options
author | Alex J Lennon <ajlennon@dynamicdevices.co.uk> | 2014-06-14 14:38:13 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2014-08-14 19:54:30 +0200 |
commit | 6a8c859c2f1c1f56e6ff0f19cd67a5b4d2380d53 (patch) | |
tree | 3d3606010fb54167c2de8d75b2c1454af71308d5 | |
parent | e598f63fbbab28bb2e6fe368d0e518d91003d9de (diff) | |
download | meta-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-- | README | 29 | ||||
-rw-r--r-- | recipes-bcm/bootfiles/rpi-config_git.bb | 6 |
2 files changed, 29 insertions, 6 deletions
@@ -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 | ||
41 | 3. Extra apps | 42 | 3. Extra apps |
42 | 3.A. omxplayer | 43 | 3.A. omxplayer |
43 | 4. Source code and mirrors | 44 | 4. Source code and mirrors |
@@ -138,7 +139,23 @@ OVER_VOLTAGE = "6" | |||
138 | Set this variable to enable support for the video camera (Linux 3.12.4+ required) | 139 | Set this variable to enable support for the video camera (Linux 3.12.4+ required) |
139 | VIDEO_CAMERA = "1" | 140 | VIDEO_CAMERA = "1" |
140 | 141 | ||
141 | 2.G. Images | 142 | 2.G. Optional - Enable offline compositing support |
143 | ================================================== | ||
144 | |||
145 | Set this variable to enable support for dispmanx offline compositing | ||
146 | DISMANX_OFFLINE = "1" | ||
147 | |||
148 | This will enable the firmware to fall back to off-line compositing of | ||
149 | Dispmanx elements. Normally the compositing is done on-line, during scanout, | ||
150 | but cannot handle too many elements. With off-line enabled, an off-screen | ||
151 | buffer is allocated for compositing. When scene complexity (number and sizes | ||
152 | of elements) is high, compositing will happen off-line into the buffer. | ||
153 | |||
154 | Heavily recommended for Wayland/Weston. | ||
155 | |||
156 | See: http://wayland.freedesktop.org/raspberrypi.html | ||
157 | |||
158 | 2.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 | ||
151 | 2.H. Boot to U-Boot | 168 | 2.I. Boot to U-Boot |
152 | =================== | 169 | =================== |
153 | To have u-boot load kernel image, set in your local.conf | 170 | To have u-boot load kernel image, set in your local.conf |
154 | KERNEL_IMAGETYPE = "uImage" | 171 | KERNEL_IMAGETYPE = "uImage" |
@@ -156,7 +173,7 @@ KERNEL_IMAGETYPE = "uImage" | |||
156 | This will make kernel.img be u-boot image which will load uImage. | 173 | This will make kernel.img be u-boot image which will load uImage. |
157 | By default, kernel.img is the actual kernel image (ex. Image). | 174 | By default, kernel.img is the actual kernel image (ex. Image). |
158 | 175 | ||
159 | 2.I. Image with Initramfs | 176 | 2.J. Image with Initramfs |
160 | ========================= | 177 | ========================= |
161 | To build an initramfs image : | 178 | To 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 | ||
65 | addtask deploy before do_package after do_install | 71 | addtask deploy before do_package after do_install |