From 32d2d1bcde24fa95d0771d5a7ae8b64c293083e0 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 24 Aug 2012 13:54:19 +0200 Subject: [PATCH] sdcard_image-rpi.bbclass: Add support for 240M/16M GPU memory split Signed-off-by: Sander van Grieken --- classes/sdcard_image-rpi.bbclass | 5 +++-- 1 file 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}" # arm128 : 128M ARM, 128M GPU split # arm192 : 192M ARM, 64M GPU split # arm224 : 224M ARM, 32M GPU split +# arm240 : 240M ARM, 16M GPU split RPI_GPU_FIRMWARE ?= "arm192" IMAGE_DEPENDS_rpi-sdimg = " \ @@ -63,11 +64,11 @@ IMAGE_CMD_rpi-sdimg () { BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS case "${RPI_GPU_FIRMWARE}" in - "arm128" | "arm192" | "arm224") + "arm128" | "arm192" | "arm224" | "arm240") mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf ;; *) - bberror "RPI_GPU_FIRMWARE is undefined or value not recongnised. Possible values: arm128, arm192 or arm224." + bberror "RPI_GPU_FIRMWARE is undefined or value not recognised. Possible values: arm128, arm192, arm224 or arm240." exit 1 ;; esac