diff options
| -rw-r--r-- | classes/sdcard_image-rpi.bbclass | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index 00d9cc4..421f561 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
| @@ -39,8 +39,6 @@ IMAGE_ROOTFS_ALIGNMENT = "4096" | |||
| 39 | SDIMG_ROOTFS_TYPE ?= "ext3" | 39 | SDIMG_ROOTFS_TYPE ?= "ext3" |
| 40 | SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" | 40 | SDIMG_ROOTFS = "${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" |
| 41 | 41 | ||
| 42 | RPI_GPU_FIRMWARE ?= "arm192" | ||
| 43 | |||
| 44 | IMAGE_DEPENDS_rpi-sdimg = " \ | 42 | IMAGE_DEPENDS_rpi-sdimg = " \ |
| 45 | parted-native \ | 43 | parted-native \ |
| 46 | mtools-native \ | 44 | mtools-native \ |
| @@ -79,20 +77,11 @@ IMAGE_CMD_rpi-sdimg () { | |||
| 79 | # Create a vfat image with boot files | 77 | # Create a vfat image with boot files |
| 80 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') | 78 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') |
| 81 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 79 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
| 82 | case "${RPI_GPU_FIRMWARE}" in | 80 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/start.elf :: |
| 83 | "arm128" | "arm192" | "arm224" | "arm240") | 81 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/fixup.dat :: |
| 84 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/${RPI_GPU_FIRMWARE}_start.elf ::start.elf | ||
| 85 | ;; | ||
| 86 | *) | ||
| 87 | bberror "RPI_GPU_FIRMWARE is undefined or value not recognised. Possible values: arm128, arm192, arm224 or arm240." | ||
| 88 | exit 1 | ||
| 89 | ;; | ||
| 90 | esac | ||
| 91 | |||
| 92 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt :: | 82 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt :: |
| 93 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt :: | 83 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt :: |
| 94 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin :: | 84 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin :: |
| 95 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/loader.bin :: | ||
| 96 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img | 85 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img |
| 97 | 86 | ||
| 98 | if [ -n ${FATPAYLOAD} ] ; then | 87 | if [ -n ${FATPAYLOAD} ] ; then |
