summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2016-03-01 14:02:10 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2016-03-01 14:06:42 +0100
commit6c6f6cf7b3738ff5f8b321295eddd99a118afd1e (patch)
tree5d61f290fdbb6004bbfd43f81297f874cd2996e7
parent89487725541fc58d6ca003265b3878f69205b3bd (diff)
downloadmeta-raspberrypi-6c6f6cf7b3738ff5f8b321295eddd99a118afd1e.tar.gz
Add optional build configuration section
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--README150
1 files changed, 79 insertions, 71 deletions
diff --git a/README b/README
index 0a8031d..5798e61 100644
--- a/README
+++ b/README
@@ -12,28 +12,30 @@ Contents:
12========= 12=========
131. Description 131. Description
142. Yocto BSP Layer - Raspberry Pi 142. Yocto BSP Layer - Raspberry Pi
15 2.A. Compressed deployed files 15 2.A. How to use it
16 2.B. GPU memory 16 2.B. Images
17 2.C. Add purchased license codecs 173. Optional build configuration
18 2.D. Disable overscan 18 3.A. Compressed deployed files
19 2.E. Set overclocking options 19 3.B. GPU memory
20 2.F. Optional - Video camera support with V4L2 drivers 20 3.C. Add purchased license codecs
21 2.G. Optional - Enable offline compositing support 21 3.D. Disable overscan
22 2.H. Optional - Enable kgdb over console support 22 3.E. Set overclocking options
23 2.I. Images 23 3.F. Video camera support with V4L2 drivers
24 2.J. Boot to U-Boot 24 3.G. Enable offline compositing support
25 2.K. Image with Initramfs 25 3.H. Enable kgdb over console support
26 2.L. Device tree support 26 3.I. Boot to U-Boot
27 2.M. Optional - enable SPI bus 27 3.J. Image with Initramfs
283. Extra apps 28 3.K. Device tree support
29 3.A. omxplayer 29 3.L. Enable SPI bus
304. Board Configuration 304. Extra apps
31 4.A. Audio Routing 31 4.A. omxplayer
325. Source code and mirrors 325. Board Configuration
336. Contribution 33 5.A. Audio Routing
34 5.A. Mailing List 346. Source code and mirrors
35 5.B. Redmine 357. Contribution
367. Maintainers 36 7.A. Mailing List
37 7.B. Redmine
388. Maintainers
37 39
38 40
391. Description 411. Description
@@ -64,18 +66,35 @@ layers: meta-oe, meta-multimedia
64branch: master 66branch: master
65revision: HEAD 67revision: HEAD
66 68
67How to use it: 692.A. How to use it
68 70==================
691. source poky/oe-init-build-env rpi-build 71a. source poky/oe-init-build-env rpi-build
702. Add needed layer to bblayers.conf: 72b. Add needed layer to bblayers.conf:
71 - meta-raspberrypi 73 - meta-raspberrypi
723 Set MACHINE to "raspberrypi"/"raspberrypi2" in local.conf 74c. Set MACHINE to "raspberrypi"/"raspberrypi2" in local.conf
734. bitbake rpi-hwup-image 75d. bitbake rpi-hwup-image
745. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used) 76e. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used)
756. Boot your RPI. 77f. Boot your RPI.
78
792.B. Images
80-===========
81* rpi-hwup-image
82 Hardware up image
83* rpi-basic-image
84 Based on rpi-hwup-image with some added features (ex: splash)
85* rpi-test-image
86 Image based on rpi-basic-image which includes most of the packages in this
87 layer and some media samples.
88
893. Optional build configuration
90===============================
76 91
772.A. Optional - compressed deployed files: 92There are a set of ways in which a user can influence different paramenters of the build.
78========================================== 93We list here the ones that are closely related to this BSP or specific to it. For the rest
94please check: http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html
95
963.A. Compressed deployed files
97==============================
791. Overwrite IMAGE_FSTYPES in local.conf 981. Overwrite IMAGE_FSTYPES in local.conf
80 IMAGE_FSTYPES = "tar.bz2 ext3.xz" 99 IMAGE_FSTYPES = "tar.bz2 ext3.xz"
812. Overwrite SDIMG_ROOTFS_TYPE in local.conf 1002. Overwrite SDIMG_ROOTFS_TYPE in local.conf
@@ -84,8 +103,8 @@ How to use it:
84 SDIMG_COMPRESSION = "xz" 103 SDIMG_COMPRESSION = "xz"
85*Accommodate the values above to your own needs (ex: ext3 / ext4). 104*Accommodate the values above to your own needs (ex: ext3 / ext4).
86 105
872.B. Optional - GPU memory: 1063.B. GPU memory
88=========================== 107===============
89Variable : Details 108Variable : Details
90GPU_MEM : GPU memory in megabyte. Sets the memory split between the ARM and 109GPU_MEM : GPU memory in megabyte. Sets the memory split between the ARM and
91 GPU. ARM gets the remaining memory. Min 16. Default 64. 110 GPU. ARM gets the remaining memory. Min 16. Default 64.
@@ -96,8 +115,8 @@ GPU_MEM_512 : GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by the
96GPU_MEM_1024: GPU memory in megabyte for the 1024MB Raspberry Pi. Ignored by the 115GPU_MEM_1024: GPU memory in megabyte for the 1024MB Raspberry Pi. Ignored by the
97 256MB/512MB RP. Overrides gpu_mem. Max 944. Default not set. 116 256MB/512MB RP. Overrides gpu_mem. Max 944. Default not set.
98 117
992.C.Optional - Add purchased license codecs: 1183.C. Add purchased license codecs
100============================================ 119=================================
101To add you own licenses use variables KEY_DECODE_MPG2 and KEY_DECODE_WVC1 in 120To add you own licenses use variables KEY_DECODE_MPG2 and KEY_DECODE_WVC1 in
102local.conf. Example: 121local.conf. Example:
103KEY_DECODE_MPG2 = "12345678" 122KEY_DECODE_MPG2 = "12345678"
@@ -105,15 +124,15 @@ KEY_DECODE_WVC1 = "12345678"
105You can supply more licenses separated by comma. Example: 124You can supply more licenses separated by comma. Example:
106KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321" 125KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321"
107 126
1082.D. Optional - Disable overscan: 1273.D. Disable overscan
109================================= 128=====================
110By default the GPU adds a black border around the video output to compensate for 129By default the GPU adds a black border around the video output to compensate for
111TVs which cut off part of the image. To disable this set this variable in 130TVs which cut off part of the image. To disable this set this variable in
112local.conf: 131local.conf:
113DISABLE_OVERSCAN = "1" 132DISABLE_OVERSCAN = "1"
114 133
1152.E. Optional - Set overclocking options: 1343.E. Set overclocking options
116========================================= 135=============================
117The Raspberry PI can be overclocked. As of now overclocking up to the "Turbo 136The Raspberry PI can be overclocked. As of now overclocking up to the "Turbo
118Mode" is officially supported by the raspbery and does not void warranty. 137Mode" is officially supported by the raspbery and does not void warranty.
119Check the config.txt for a detailed description of options and modes. Example: 138Check the config.txt for a detailed description of options and modes. Example:
@@ -123,14 +142,13 @@ CORE_FREQ = "500"
123SDRAM_FREQ = "500" 142SDRAM_FREQ = "500"
124OVER_VOLTAGE = "6" 143OVER_VOLTAGE = "6"
125 144
1262.F. Optional - Video camera support with V4L2 drivers 1453.F. Video camera support with V4L2 drivers
127====================================================== 146===========================================
128Set this variable to enable support for the video camera (Linux 3.12.4+ required) 147Set this variable to enable support for the video camera (Linux 3.12.4+ required)
129VIDEO_CAMERA = "1" 148VIDEO_CAMERA = "1"
130 149
1312.G. Optional - Enable offline compositing support 1503.G. Enable offline compositing support
132================================================== 151=======================================
133
134Set this variable to enable support for dispmanx offline compositing 152Set this variable to enable support for dispmanx offline compositing
135DISMANX_OFFLINE = "1" 153DISMANX_OFFLINE = "1"
136 154
@@ -144,23 +162,13 @@ Heavily recommended for Wayland/Weston.
144 162
145See: http://wayland.freedesktop.org/raspberrypi.html 163See: http://wayland.freedesktop.org/raspberrypi.html
146 164
1472.H. Optional - Enable kgdb over console support 1653.H. Enable kgdb over console support
148================================================ 166=====================================
149To add the kdbg over console (kgdboc) parameter to the kernel command line, 167To add the kdbg over console (kgdboc) parameter to the kernel command line,
150set this variable in local.conf: 168set this variable in local.conf:
151ENABLE_KGDB = "1" 169ENABLE_KGDB = "1"
152 170
1532.I. Images 1713.I. Boot to U-Boot
154===========
155* rpi-hwup-image
156 Hardware up image
157* rpi-basic-image
158 Based on rpi-hwup-image with some added features (ex: splash)
159* rpi-test-image
160 Image based on rpi-basic-image which includes most of the packages in this
161 layer and some media samples.
162
1632.J. Boot to U-Boot
164=================== 172===================
165To have u-boot load kernel image, set in your local.conf 173To have u-boot load kernel image, set in your local.conf
166KERNEL_IMAGETYPE = "uImage" 174KERNEL_IMAGETYPE = "uImage"
@@ -168,7 +176,7 @@ KERNEL_IMAGETYPE = "uImage"
168This will make kernel.img be u-boot image which will load uImage. 176This will make kernel.img be u-boot image which will load uImage.
169By default, kernel.img is the actual kernel image (ex. Image). 177By default, kernel.img is the actual kernel image (ex. Image).
170 178
1712.K. Image with Initramfs 1793.J. Image with Initramfs
172========================= 180=========================
173To build an initramfs image : 181To build an initramfs image :
174 * Set this 3 kernel variables (in linux-raspberrypi.inc for example) 182 * Set this 3 kernel variables (in linux-raspberrypi.inc for example)
@@ -181,7 +189,7 @@ To build an initramfs image :
181 * Set the meta-rasberrypi variable (in raspberrypi.conf for example) 189 * Set the meta-rasberrypi variable (in raspberrypi.conf for example)
182 - KERNEL_INITRAMFS = "-initramfs" 190 - KERNEL_INITRAMFS = "-initramfs"
183 191
1842.L. Device tree support 1923.K. Device tree support
185========================= 193=========================
186Device tree for RPi is only supported when using linux-raspberrypi 3.18+ 194Device tree for RPi is only supported when using linux-raspberrypi 3.18+
187kernels. 195kernels.
@@ -194,25 +202,25 @@ kernels.
194NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for 202NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for
195 older kernel versions. 203 older kernel versions.
196 204
1972.M. Optional - enable SPI bus 2053.L. Eenable SPI bus
198============================== 206====================
199When using device tree kernels, set this variable to enable the SPI bus 207When using device tree kernels, set this variable to enable the SPI bus
200ENABLE_SPI_BUS = "1" 208ENABLE_SPI_BUS = "1"
201 209
2023. Extra apps 2104. Extra apps
203============= 211=============
204 212
2053.A. omxplayer 2134.A. omxplayer
206============== 214==============
207omxplayer depends on libav which has a commercial license. So in order to be 215omxplayer depends on libav which has a commercial license. So in order to be
208able to compile omxplayer you will need to whiteflag the commercial license 216able to compile omxplayer you will need to whiteflag the commercial license
209adding to you local.conf: 217adding to you local.conf:
210LICENSE_FLAGS_WHITELIST = "commercial" 218LICENSE_FLAGS_WHITELIST = "commercial"
211 219
2124. Board Configuration 2205. Board Configuration
213====================== 221======================
214 222
2154.A. Audio Routing 2235.A. Audio Routing
216================== 224==================
217To load audio driver 225To load audio driver
218 226
@@ -236,7 +244,7 @@ Options to amixer cset are:
236 1=headphones 244 1=headphones
237 2=hdmi 245 2=hdmi
238 246
2395. Source code and mirrors 2476. Source code and mirrors
240========================== 248==========================
241 249
242Main repo: 250Main repo:
@@ -250,10 +258,10 @@ Bitbucket mirror:
250 https://bitbucket.org/agherzan/meta-raspberrypi 258 https://bitbucket.org/agherzan/meta-raspberrypi
251 259
252 260
2536. Contributing 2617. Contributing
254=============== 262===============
255 263
2566.A. Mailing list 2647.A. Mailing list
257================= 265=================
258The main communication tool we use is a mailing list: 266The main communication tool we use is a mailing list:
259 yocto@yoctoproject.org 267 yocto@yoctoproject.org
@@ -277,7 +285,7 @@ When sending patches to mailing list, please use something like:
277 285
278 git send-email --to yocto@yoctoproject.org <generated patch> 286 git send-email --to yocto@yoctoproject.org <generated patch>
279 287
2806.B. Redmine 2887.B. Redmine
281============ 289============
282In order to manage and trace the meta-raspberrypi issues, we use redmine: 290In order to manage and trace the meta-raspberrypi issues, we use redmine:
283 http://redmine.gherzan.ro/projects/meta-raspberrypi 291 http://redmine.gherzan.ro/projects/meta-raspberrypi
@@ -291,7 +299,7 @@ for a bug:
291 [Bug #13] 299 [Bug #13]
292 300
293 301
2947. Maintainers 3028. Maintainers
295============== 303==============
296 304
297 Andrei Gherzan <andrei at gherzan.ro> 305 Andrei Gherzan <andrei at gherzan.ro>