diff options
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index e3c12d7..9bce5af 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -28,6 +28,7 @@ SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" | |||
28 | # arm128 : 128M ARM, 128M GPU split | 28 | # arm128 : 128M ARM, 128M GPU split |
29 | # arm192 : 192M ARM, 64M GPU split | 29 | # arm192 : 192M ARM, 64M GPU split |
30 | # arm224 : 224M ARM, 32M GPU split | 30 | # arm224 : 224M ARM, 32M GPU split |
31 | # arm240 : 240M ARM, 16M GPU split | ||
31 | RPI_GPU_FIRMWARE ?= "arm192" | 32 | RPI_GPU_FIRMWARE ?= "arm192" |
32 | 33 | ||
33 | IMAGE_DEPENDS_rpi-sdimg = " \ | 34 | IMAGE_DEPENDS_rpi-sdimg = " \ |
@@ -63,11 +64,11 @@ IMAGE_CMD_rpi-sdimg () { | |||
63 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') | 64 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') |
64 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 65 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
65 | case "${RPI_GPU_FIRMWARE}" in | 66 | case "${RPI_GPU_FIRMWARE}" in |
66 | "arm128" | "arm192" | "arm224") | 67 | "arm128" | "arm192" | "arm224" | "arm240") |
67 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf | 68 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf |
68 | ;; | 69 | ;; |
69 | *) | 70 | *) |
70 | bberror "RPI_GPU_FIRMWARE is undefined or value not recongnised. Possible values: arm128, arm192 or arm224." | 71 | bberror "RPI_GPU_FIRMWARE is undefined or value not recognised. Possible values: arm128, arm192, arm224 or arm240." |
71 | exit 1 | 72 | exit 1 |
72 | ;; | 73 | ;; |
73 | esac | 74 | esac |