diff options
| -rw-r--r-- | README | 106 |
1 files changed, 74 insertions, 32 deletions
| @@ -24,8 +24,22 @@ | |||
| 24 | .... | 24 | .... |
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | OpenEmbedded BSP Layer - RaspberryPi | 27 | |
| 28 | -------------------------------------- | 28 | Contents: |
| 29 | ========= | ||
| 30 | 1. OpenEmbedded BSP Layer - RaspberryPi | ||
| 31 | 2. Yocto BSP Layer - RaspberryPi | ||
| 32 | 2.A. Compressed deployed files | ||
| 33 | 2.B. GPU memory | ||
| 34 | 2.C. Add purchased license codecs | ||
| 35 | 2.D. Disable overscan | ||
| 36 | 2.E. Set overclocking options | ||
| 37 | 3. Contribution | ||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | 1. OpenEmbedded BSP Layer - RaspberryPi | ||
| 42 | ======================================= | ||
| 29 | 43 | ||
| 30 | This is the general hardware specific BSP overlay for the RaspberryPi device. | 44 | This is the general hardware specific BSP overlay for the RaspberryPi device. |
| 31 | It should be used with openembedded-core (not old-style org.openembedded.dev). | 45 | It should be used with openembedded-core (not old-style org.openembedded.dev). |
| @@ -35,21 +49,25 @@ More information can be found at: | |||
| 35 | http://www.raspberrypi.org/ (Official Site) | 49 | http://www.raspberrypi.org/ (Official Site) |
| 36 | http://www.distant-earth.com/ (My Site) | 50 | http://www.distant-earth.com/ (My Site) |
| 37 | 51 | ||
| 38 | Build scripts patched to support making a firmware image for the RaspberryPi with Angstrom can be found at: | 52 | Build scripts patched to support making a firmware image for the RaspberryPi |
| 53 | with Angstrom can be found at: | ||
| 39 | 54 | ||
| 40 | http://github.com/Angstrom-distribution/setup-scripts | 55 | http://github.com/Angstrom-distribution/setup-scripts |
| 41 | 56 | ||
| 42 | When not depending on meta-openembedded and not using systemd, you may need to | 57 | When not depending on meta-openembedded and not using systemd, you may need to |
| 43 | mask few recipes requiring systemd or other recipes not included in your distribution of choice. | 58 | mask few recipes requiring systemd or other recipes not included in your |
| 59 | distribution of choice. | ||
| 44 | 60 | ||
| 45 | You can achieve this by adding something like the following to local.conf: | 61 | You can achieve this by adding something like the following to local.conf: |
| 46 | 62 | ||
| 47 | BBMASK = "meta-raspberrypi/recipes-multimedia/libav|meta-raspberrypi/recipes-core/systemd" | 63 | BBMASK = "meta-raspberrypi/recipes-multimedia/libav|\ |
| 64 | meta-raspberrypi/recipes-core/systemd" | ||
| 48 | 65 | ||
| 49 | You can adjust the BBMASK for any .bbappends that your distribution does not contain recipes for. | 66 | You can adjust the BBMASK for any .bbappends that your distribution does not |
| 67 | contain recipes for. | ||
| 50 | 68 | ||
| 51 | The core BSP part of meta-raspberrypi should work with different OpenEmbedded/Yocto | 69 | The core BSP part of meta-raspberrypi should work with different |
| 52 | distributions and layer stacks, such as: | 70 | OpenEmbedded/Yocto distributions and layer stacks, such as: |
| 53 | 71 | ||
| 54 | * Distro-less (only with OE-Core). | 72 | * Distro-less (only with OE-Core). |
| 55 | * Angstrom (main focus of testing). | 73 | * Angstrom (main focus of testing). |
| @@ -65,13 +83,10 @@ URI: git://git.openembedded.org/meta-openembedded | |||
| 65 | branch: master | 83 | branch: master |
| 66 | revision: HEAD | 84 | revision: HEAD |
| 67 | 85 | ||
| 68 | It is preferred that people raise pull requests using GIThub by forking the appropriate tree: | ||
| 69 | 86 | ||
| 70 | https://github.com/djwillis/ | ||
| 71 | (More info on achieving this can be found at http://help.github.com/send-pull-requests/) | ||
| 72 | 87 | ||
| 73 | Yocto BSP Layer - RaspberryPi | 88 | 2. Yocto BSP Layer - RaspberryPi |
| 74 | ------------------------------- | 89 | ================================ |
| 75 | 90 | ||
| 76 | This layer depends on: | 91 | This layer depends on: |
| 77 | 92 | ||
| @@ -94,38 +109,42 @@ How to use it: | |||
| 94 | 5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used) | 109 | 5. dd to a SD card the generated sdimg file (use xzcat if rpi-sdimg.xz is used) |
| 95 | 6. Boot your RPI. | 110 | 6. Boot your RPI. |
| 96 | 111 | ||
| 97 | Optional - compressed deployed files: | 112 | 2.A. Optional - compressed deployed files: |
| 98 | ===================================== | 113 | ========================================== |
| 99 | 1. Overwrite IMAGE_FSTYPES in local.conf | 114 | 1. Overwrite IMAGE_FSTYPES in local.conf |
| 100 | IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz | 115 | IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz |
| 101 | 2. Overwrite SDIMG_ROOTFS_TYPE in local.conf | 116 | 2. Overwrite SDIMG_ROOTFS_TYPE in local.conf |
| 102 | SDIMG_ROOTFS_TYPE = "ext3.xz" | 117 | SDIMG_ROOTFS_TYPE = "ext3.xz" |
| 103 | *Accommodate the values above to your own needs (ex: ext3 / ext4). | 118 | *Accommodate the values above to your own needs (ex: ext3 / ext4). |
| 104 | 119 | ||
| 105 | Optional - GPU memory: | 120 | 2.B. Optional - GPU memory: |
| 106 | ======================== | 121 | =========================== |
| 107 | Variable : Details | 122 | Variable : Details |
| 108 | GPU_MEM : GPU memory in megabyte. Sets the memory split between the ARM and GPU. ARM gets the remaining memory. Min 16. Default 64. | 123 | GPU_MEM : GPU memory in megabyte. Sets the memory split between the ARM and |
| 109 | GPU_MEM_256 : GPU memory in megabyte for the 256MB Raspberry Pi. Ignored by the 512MB RP. Overrides gpu_mem. Max 192. Default not set. | 124 | GPU. ARM gets the remaining memory. Min 16. Default 64. |
| 110 | GPU_MEM_512 : GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by the 256MB RP. Overrides gpu_mem. Max 448. Default not set. | 125 | GPU_MEM_256 : GPU memory in megabyte for the 256MB Raspberry Pi. Ignored by the |
| 111 | 126 | 512MB RP. Overrides gpu_mem. Max 192. Default not set. | |
| 112 | Optional - Add purchased license codecs: | 127 | GPU_MEM_512 : GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by the |
| 113 | ======================================== | 128 | 256MB RP. Overrides gpu_mem. Max 448. Default not set. |
| 114 | To add you own licenses use variables KEY_DECODE_MPG2 and KEY_DECODE_WVC1 in local.conf. Example: | 129 | |
| 130 | 2.C.Optional - Add purchased license codecs: | ||
| 131 | ============================================ | ||
| 132 | To add you own licenses use variables KEY_DECODE_MPG2 and KEY_DECODE_WVC1 in | ||
| 133 | local.conf. Example: | ||
| 115 | KEY_DECODE_MPG2 = "12345678" | 134 | KEY_DECODE_MPG2 = "12345678" |
| 116 | KEY_DECODE_WVC1 = "12345678" | 135 | KEY_DECODE_WVC1 = "12345678" |
| 117 | You can supply more licenses separated by comma. Example: | 136 | You can supply more licenses separated by comma. Example: |
| 118 | KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321" | 137 | KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321" |
| 119 | 138 | ||
| 120 | Optional - Disable overscan: | 139 | 2.D. Optional - Disable overscan: |
| 121 | ============================ | 140 | ================================= |
| 122 | By default the GPU adds a black border around the video output to compensate for TVs | 141 | By default the GPU adds a black border around the video output to compensate for |
| 123 | which cut off part of the image. To disable this set this variable in | 142 | TVs which cut off part of the image. To disable this set this variable in |
| 124 | local.conf: | 143 | local.conf: |
| 125 | DISALE_OVERSCAN = "0" | 144 | DISALE_OVERSCAN = "0" |
| 126 | 145 | ||
| 127 | Optional - Set overclocking options: | 146 | 2.E. Optional - Set overclocking options: |
| 128 | ==================================== | 147 | ========================================= |
| 129 | The Raspberry PI can be overclocked. As of now overclocking up to the "Turbo | 148 | The Raspberry PI can be overclocked. As of now overclocking up to the "Turbo |
| 130 | Mode" is officially supported by the raspbery and does not void warranty. | 149 | Mode" is officially supported by the raspbery and does not void warranty. |
| 131 | Check the config.txt for a detailed description of options and modes. Example: | 150 | Check the config.txt for a detailed description of options and modes. Example: |
| @@ -136,5 +155,28 @@ SDRAM_FREQ = "500" | |||
| 136 | OVER_VOLTAGE = "6" | 155 | OVER_VOLTAGE = "6" |
| 137 | 156 | ||
| 138 | 157 | ||
| 139 | Layer maintainer: John Willis <John.Willis at distant-earth.com> | 158 | |
| 140 | Andrei Gherzan <andrei at gherzan.ro> | 159 | 3. Contributing |
| 160 | =============== | ||
| 161 | |||
| 162 | To contribute to this layer you should send the patches for review to the | ||
| 163 | mailing list. | ||
| 164 | |||
| 165 | Mailing list: | ||
| 166 | |||
| 167 | https://lists.yoctoproject.org/listinfo/yocto | ||
| 168 | |||
| 169 | Source code: | ||
| 170 | |||
| 171 | git://git.yoctoproject.org/meta-raspberrypi | ||
| 172 | http://git.yoctoproject.org/git/meta-raspberrypi | ||
| 173 | https://github.com/djwillis/meta-raspberrypi | ||
| 174 | |||
| 175 | When sending patches, please use something like: | ||
| 176 | |||
| 177 | git send-email --to yocto@yoctoproject.org \ | ||
| 178 | --subject-prefix='meta-raspberrypi][PATCH' | ||
| 179 | |||
| 180 | |||
| 181 | Layer maintainers: John Willis <John.Willis at distant-earth.com> | ||
| 182 | Andrei Gherzan <andrei at gherzan.ro> | ||
