diff options
| -rw-r--r-- | README | 70 | ||||
| -rw-r--r-- | classes/sdcard_image-rpi.bbclass | 20 |
2 files changed, 77 insertions, 13 deletions
| @@ -36,7 +36,12 @@ Contents: | |||
| 36 | 2.E. Set overclocking options | 36 | 2.E. Set overclocking options |
| 37 | 3. Extra apps | 37 | 3. Extra apps |
| 38 | 3.A. omxplayer | 38 | 3.A. omxplayer |
| 39 | 4. Contribution | 39 | 4. Source code and mirrors |
| 40 | 5. Contribution | ||
| 41 | 5.A. Mailing List | ||
| 42 | 5.B. Gerrit Review Server | ||
| 43 | 5.C. Trello Board | ||
| 44 | 6. Maintainers | ||
| 40 | 45 | ||
| 41 | 46 | ||
| 42 | 47 | ||
| @@ -109,9 +114,11 @@ How to use it: | |||
| 109 | 2.A. Optional - compressed deployed files: | 114 | 2.A. Optional - compressed deployed files: |
| 110 | ========================================== | 115 | ========================================== |
| 111 | 1. Overwrite IMAGE_FSTYPES in local.conf | 116 | 1. Overwrite IMAGE_FSTYPES in local.conf |
| 112 | IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz | 117 | IMAGE_FSTYPES = "tar.bz2 ext3.xz" |
| 113 | 2. Overwrite SDIMG_ROOTFS_TYPE in local.conf | 118 | 2. Overwrite SDIMG_ROOTFS_TYPE in local.conf |
| 114 | SDIMG_ROOTFS_TYPE = "ext3.xz" | 119 | SDIMG_ROOTFS_TYPE = "ext3.xz" |
| 120 | 3. Overwrite SDIMG_COMPRESSION in local.conf | ||
| 121 | SDIMG_COMPRESSION = "xz" | ||
| 115 | *Accommodate the values above to your own needs (ex: ext3 / ext4). | 122 | *Accommodate the values above to your own needs (ex: ext3 / ext4). |
| 116 | 123 | ||
| 117 | 2.B. Optional - GPU memory: | 124 | 2.B. Optional - GPU memory: |
| @@ -163,27 +170,64 @@ adding to you local.conf: | |||
| 163 | LICENSE_FLAGS_WHITELIST = "commercial" | 170 | LICENSE_FLAGS_WHITELIST = "commercial" |
| 164 | 171 | ||
| 165 | 172 | ||
| 166 | 4. Contributing | 173 | 4. Source code and mirrors |
| 174 | ========================== | ||
| 175 | |||
| 176 | Main repo: | ||
| 177 | git://git.yoctoproject.org/meta-raspberrypi | ||
| 178 | http://git.yoctoproject.org/git/meta-raspberrypi | ||
| 179 | |||
| 180 | Github mirror: | ||
| 181 | https://github.com/djwillis/meta-raspberrypi | ||
| 182 | |||
| 183 | Gerrit review repo: | ||
| 184 | https://review.gherzan.ro:8443/meta-raspberrypi | ||
| 185 | |||
| 186 | |||
| 187 | 5. Contributing | ||
| 167 | =============== | 188 | =============== |
| 168 | 189 | ||
| 190 | 5.A. Mailing list | ||
| 191 | ================= | ||
| 169 | To contribute to this layer you should send the patches for review to the | 192 | To contribute to this layer you should send the patches for review to the |
| 170 | mailing list. | 193 | mailing list. |
| 171 | 194 | ||
| 172 | Mailing list: | 195 | Mailing list: |
| 173 | |||
| 174 | https://lists.yoctoproject.org/listinfo/yocto | 196 | https://lists.yoctoproject.org/listinfo/yocto |
| 175 | 197 | ||
| 176 | Source code: | 198 | To send changes to mailing list use something like: |
| 199 | git send-email --to yocto@yoctoproject.org \ | ||
| 200 | --subject-prefix='meta-raspberrypi][PATCH' | ||
| 177 | 201 | ||
| 178 | git://git.yoctoproject.org/meta-raspberrypi | 202 | OPTIONALLY push changes to gerrit (help maintainers merge and review patches |
| 179 | http://git.yoctoproject.org/git/meta-raspberrypi | 203 | easier in this way). |
| 180 | https://github.com/djwillis/meta-raspberrypi | 204 | git push ssh://<username>@review.gherzan.ro:29418/meta-raspberrypi |
| 205 | <local-branch>:refs/for/master | ||
| 206 | See 5.B. Gerrit Review Server. | ||
| 181 | 207 | ||
| 182 | When sending patches, please use something like: | 208 | 5.B. Gerrit Review Server |
| 209 | ========================= | ||
| 210 | We have a gerrit server configured at review.gherzan.ro. Changes made in gerrit | ||
| 211 | are merged in git.yoctoproject.org/meta-raspberrypi. | ||
| 183 | 212 | ||
| 184 | git send-email --to yocto@yoctoproject.org \ | 213 | You can setup a gerrit account in less than 2 minutes: |
| 185 | --subject-prefix='meta-raspberrypi][PATCH' | 214 | A) Login / Register on https://review.gherzan.ro:8443. |
| 215 | B) Add your PUBLIC key in Settings/SSH Public Keys. | ||
| 216 | C) Add remote in your local repo: | ||
| 217 | git remote add gherzan ssh://<username>@review.gherzan.ro:29418/meta-raspberrypi | ||
| 218 | D) Push changes to gerrit using: | ||
| 219 | git push gherzan <local-branch>:refs/for/master | ||
| 186 | 220 | ||
| 221 | Please check your spam folder for gerrit messages. Sometimes they end up there. | ||
| 222 | |||
| 223 | 5.C. Trello Board | ||
| 224 | ================= | ||
| 225 | A public Trello board is set to manage tasks and bugs. Join us there: | ||
| 226 | https://trello.com/b/QsYeVjVe/meta-raspberrypi | ||
| 227 | |||
| 228 | |||
| 229 | 6. Maintainers | ||
| 230 | ============== | ||
| 187 | 231 | ||
| 188 | Layer maintainers: John Willis <John.Willis at distant-earth.com> | 232 | John Willis <John.Willis at distant-earth.com> |
| 189 | Andrei Gherzan <andrei at gherzan.ro> | 233 | Andrei Gherzan <andrei at gherzan.ro> |
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index a2fcd52..3ee4e94 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
| @@ -50,6 +50,13 @@ IMAGE_DEPENDS_rpi-sdimg = " \ | |||
| 50 | # SD card image name | 50 | # SD card image name |
| 51 | SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" | 51 | SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" |
| 52 | 52 | ||
| 53 | # Compression method to apply to SDIMG after it has been created. Supported | ||
| 54 | # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file | ||
| 55 | # is kept and a new compressed file is created if one of these compression | ||
| 56 | # formats is chosen. If SDIMG_COMPRESSION is set to any other value it is | ||
| 57 | # silently ignored. | ||
| 58 | #SDIMG_COMPRESSION ?= "" | ||
| 59 | |||
| 53 | # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. | 60 | # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. |
| 54 | FATPAYLOAD ?= "" | 61 | FATPAYLOAD ?= "" |
| 55 | 62 | ||
| @@ -107,6 +114,19 @@ IMAGE_CMD_rpi-sdimg () { | |||
| 107 | else | 114 | else |
| 108 | dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 115 | dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
| 109 | fi | 116 | fi |
| 117 | |||
| 118 | # Optionally apply compression | ||
| 119 | case "${SDIMG_COMPRESSION}" in | ||
| 120 | "gzip") | ||
| 121 | gzip -k9 "${SDIMG}" | ||
| 122 | ;; | ||
| 123 | "bzip2") | ||
| 124 | bzip2 -k9 "${SDIMG}" | ||
| 125 | ;; | ||
| 126 | "xz") | ||
| 127 | xz -k "${SDIMG}" | ||
| 128 | ;; | ||
| 129 | esac | ||
| 110 | } | 130 | } |
| 111 | 131 | ||
| 112 | ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " | 132 | ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " |
