summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Barker <pbarker@toganlabs.com>2017-05-23 10:26:05 +0100
committerAndrei Gherzan <andrei@gherzan.com>2017-05-26 12:16:52 +0100
commit03976f7ff12885d1205effe526c83b10ed4252fe (patch)
tree461c9904c83f102fb27096b5718b57aedb9311dd /docs
parent4f2dd0f0e8d09afcb08c5ec57f20c763814596df (diff)
downloadmeta-raspberrypi-03976f7ff12885d1205effe526c83b10ed4252fe.tar.gz
docs: Initial split of README into docs directory
The top-level README document has got pretty unwieldy and so we need to switch to add some more structure to our documentation. The first step is to split out sub-sections of the README document into separate files in a new 'docs' directory. Whilst splitting up the README, we can also take the opportunity to tidy things up and fix a couple of typos. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/contributing.md36
-rw-r--r--docs/extra-apps.md8
-rw-r--r--docs/extra-build-config.md183
-rw-r--r--docs/layer-contents.md24
4 files changed, 251 insertions, 0 deletions
diff --git a/docs/contributing.md b/docs/contributing.md
new file mode 100644
index 0000000..370957d
--- /dev/null
+++ b/docs/contributing.md
@@ -0,0 +1,36 @@
1# Contributing
2
3## Mailing list
4
5The main communication tool we use is a mailing list:
6* yocto@yoctoproject.org
7* https://lists.yoctoproject.org/listinfo/yocto
8
9Feel free to ask any kind of questions but always prepend your email subject
10with "[meta-raspberrypi]". This is because we use the 'yocto' mailing list and
11not a perticular 'meta-raspberrypi' mailing list.
12
13## Patches and pull requests
14
15All the contributions should be compliant with the openembedded patch
16guidelines: http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
17
18To contribute to this project you should send pull requests to the github mirror
19(https://github.com/agherzan/meta-raspberrypi). **Additionally** you can send
20the patches for review to the above specified mailing list.
21
22When creating patches for the mailing list, please use something like:
23`git format-patch -s --subject-prefix='meta-raspberrypi][PATCH' origin`
24
25When sending patches to the mailing list, please use something like:
26`git send-email --to yocto@yoctoproject.org <generated patch>`
27
28## Github issues
29
30In order to manage and trace the meta-raspberrypi issues, we use github issues:
31https://github.com/agherzan/meta-raspberrypi/issues
32
33If you push patches which have a github issue associated, please provide the
34issue number in the commit log just before "Signed-off-by" line(s). Example line
35for a bug:
36`[Issue #13]`
diff --git a/docs/extra-apps.md b/docs/extra-apps.md
new file mode 100644
index 0000000..b9ee2cb
--- /dev/null
+++ b/docs/extra-apps.md
@@ -0,0 +1,8 @@
1# Extra apps
2
3## omxplayer
4
5omxplayer depends on libav which has a commercial license. So in order to be
6able to compile omxplayer you will need to whiteflag the commercial
7licenseadding to you local.conf:
8`LICENSE_FLAGS_WHITELIST = "commercial"`
diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
new file mode 100644
index 0000000..ed0261e
--- /dev/null
+++ b/docs/extra-build-config.md
@@ -0,0 +1,183 @@
1# Optional build configuration
2
3There are a set of ways in which a user can influence different paramenters of
4the build. We list here the ones that are closely related to this BSP or
5specific to it. For the rest please check:
6<http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html>
7
8## Compressed deployed files
9
101. Overwrite IMAGE_FSTYPES in local.conf
11 * `IMAGE_FSTYPES = "tar.bz2 ext3.xz"`
12
132. Overwrite SDIMG_ROOTFS_TYPE in local.conf
14 * `SDIMG_ROOTFS_TYPE = "ext3.xz"`
15
163. Overwrite SDIMG_COMPRESSION in local.conf
17 * `SDIMG_COMPRESSION = "xz"`
18
19Accommodate the values above to your own needs (ex: ext3 / ext4).
20
21## GPU memory
22
23| Variable | Details |
24|----------------|---------------------------------------------------------------------|
25| `GPU_MEM` | GPU memory in megabyte. Sets the memory split between the ARM and |
26| | GPU. ARM gets the remaining memory. Min 16. Default 64. |
27| `GPU_MEM_256` | GPU memory in megabyte for the 256MB Raspberry Pi. Ignored by the |
28| | 512MB RP. Overrides gpu_mem. Max 192. Default not set. |
29| `GPU_MEM_512` | GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by the |
30| | 256MB RP. Overrides gpu_mem. Max 448. Default not set. |
31| `GPU_MEM_1024` | GPU memory in megabyte for the 1024MB Raspberry Pi. Ignored by the |
32| | 256MB/512MB RP. Overrides gpu_mem. Max 944. Default not set. |
33
34## Add purchased license codecs
35
36To add you own licenses use variables `KEY_DECODE_MPG2` and `KEY_DECODE_WVC1` in
37local.conf. Example:
38```
39KEY_DECODE_MPG2 = "12345678"
40KEY_DECODE_WVC1 = "12345678"
41```
42
43You can supply more licenses separated by comma. Example:
44```
45KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321"
46```
47
48## Disable overscan
49
50By default the GPU adds a black border around the video output to compensate for
51TVs which cut off part of the image. To disable this set this variable in
52local.conf:
53`DISABLE_OVERSCAN = "1"`
54
55## Set overclocking options
56
57The Raspberry PI can be overclocked. As of now overclocking up to the "Turbo
58Mode" is officially supported by the raspbery and does not void warranty. Check
59the config.txt for a detailed description of options and modes. Example turbo
60mode:
61```
62ARM_FREQ = "1000"
63CORE_FREQ = "500"
64SDRAM_FREQ = "500"
65OVER_VOLTAGE = "6"
66```
67
68## Video camera support with V4L2 drivers
69
70Set this variable to enable support for the video camera (Linux 3.12.4+
71required)
72`VIDEO_CAMERA = "1"`
73
74## Enable offline compositing support
75
76Set this variable to enable support for dispmanx offline compositing:
77`DISPMANX_OFFLINE = "1"`
78
79This will enable the firmware to fall back to off-line compositing of Dispmanx
80elements. Normally the compositing is done on-line, during scanout, but cannot
81handle too many elements. With off-line enabled, an off-screen buffer is
82allocated for compositing. When scene complexity (number and sizes
83of elements) is high, compositing will happen off-line into the buffer.
84
85Heavily recommended for Wayland/Weston.
86
87See: <http://wayland.freedesktop.org/raspberrypi.html>
88
89## Enable kgdb over console support
90
91To add the kdbg over console (kgdboc) parameter to the kernel command line, set
92this variable in local.conf:
93`ENABLE_KGDB = "1"`
94
95## Boot to U-Boot
96
97To have u-boot load kernel image, set in your local.conf:
98`KERNEL_IMAGETYPE = "uImage"`
99
100This will make kernel.img be u-boot image which will load uImage. By default,
101kernel.img is the actual kernel image (ex. Image).
102
103## Image with Initramfs
104
105To build an initramfs image:
106
107* Set this 3 kernel variables (in linux-raspberrypi.inc for example)
108 - kernel_configure_variable BLK_DEV_INITRD y
109 - kernel_configure_variable INITRAMFS_SOURCE ""
110 - kernel_configure_variable RD_GZIP y
111
112* Set the yocto variables (in linux-raspberrypi.inc for example)
113 - `INITRAMFS_IMAGE = "<a name for your initramfs image>"`
114 - `INITRAMFS_IMAGE_BUNDLE = "1"`
115
116* Set the meta-rasberrypi variable (in raspberrypi.conf for example)
117 - `KERNEL_INITRAMFS = "-initramfs"`
118
119## Device tree support
120
121Device tree for RPi is only supported when using linux-raspberrypi 3.18+
122kernels.
123
124* Set `KERNEL_DEVICETREE` (in conf/machine/raspberrypi.conf)
125 - the trailer is added to the kernel image before kernel install task. While
126 creating the SDCard image, this modified kernel is put on boot partition (as
127 kernel.img) as well as DeviceTree blobs (.dtb files).
128
129NOTE: `KERNEL_DEVICETREE` is default enabled for kernel >= 3.18 and always
130disabled for older kernel versions.
131
132## Enable SPI bus
133
134When using device tree kernels, set this variable to enable the SPI bus:
135`ENABLE_SPI_BUS = "1"`
136
137## Enable I2C
138
139When using device tree kernels, set this variable to enable I2C:
140`ENABLE_I2C = "1"`
141
142## Enable PiTFT support
143
144Basic support for using PiTFT screens can be enabled by adding below in
145local.conf:
146
147* `MACHINE_FEATURES += "pitft"`
148 - This will enable SPI bus and i2c device-trees, it will also setup
149 framebuffer for console and x server on PiTFT.
150
151NOTE: To get this working the overlay for the PiTFT model must be build, added
152and specified as well (dtoverlay=<driver> in config.txt).
153
154Below is a list of currently supported PiTFT models in meta-raspberrypi, the
155modelname should be added as a MACHINE_FEATURES in local.conf like below:
156`MACHINE_FEATURES += "pitft <modelname>"`
157
158List of currently supported models:
159* pitft22
160* pitft28r
161* pitft35r
162
163## Misc. display
164
165If you would like to use the Waveshare "C" 1024×600, 7 inch Capacitive Touch
166Screen LCD, HDMI interface (<http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
1672.1, please set the following in your local.conf:
168`WAVESHARE_1024X600_C_2_1 = "1"`
169
170## Enable UART
171
172RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
173
174RaspberryPi 0 WiFi and 3 does not have the UART enabled by default because this
175needs a fixed core frequency and enable_uart wil set it to the minimum. Certain
176operations - 60fps h264 decode, high quality deinterlace - which aren't
177performed on the ARM may be affected, and we wouldn't want to do that to users
178who don't want to use the serial port. Users who want serial console support on
179RaspberryPi3 will have to explicitely set in local.conf: `ENABLE_UART = "1"`.
180
181Ref.:
182* <https://github.com/raspberrypi/firmware/issues/553>
183* <https://github.com/RPi-Distro/repo/issues/22>
diff --git a/docs/layer-contents.md b/docs/layer-contents.md
new file mode 100644
index 0000000..29cfa35
--- /dev/null
+++ b/docs/layer-contents.md
@@ -0,0 +1,24 @@
1# Layer Contents
2
3## Supported Machines
4
5* raspberrypi
6* raspberrypi0
7* raspberrypi0-wifi
8* raspberrypi2
9* raspberrypi3
10* raspberrypi3-64 (64 bit kernel & userspace)
11* raspberrypi-cm (dummy alias for raspberrypi)
12* raspberrypi-cm3 (dummy alias for raspberrypi2)
13
14## Images
15
16* rpi-hwup-image
17 * Hardware up image
18
19* rpi-basic-image
20 * Based on rpi-hwup-image with some added features (ex: splash)
21
22* rpi-test-image
23 * Image based on rpi-basic-image which includes most of the packages in this
24 layer and some media samples.