From a0c975500f2b64ed327bd20a61cf9ceca75493ec Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 12 Apr 2018 16:25:36 +0300 Subject: tegra: include tegra flasher utils into release image Since the sd card image won't bootup on a device which has been flashed with different version of L4T, include flasher utils that can be used to flash the image into the device as well. The new prepare-image.sh script will use the SD card image to create an image that can be flashed into the device. This saves user from downloading matching image from NVIDIA or bitbaking a flashable image. Change-Id: I28cdcd10a531eaf9fd511565e2542bd0d81541b6 Reviewed-by: Mikko Gronoff Reviewed-by: Kari Oikarinen --- meta-boot2qt/classes/image_types_sdcard.bbclass | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'meta-boot2qt/classes') diff --git a/meta-boot2qt/classes/image_types_sdcard.bbclass b/meta-boot2qt/classes/image_types_sdcard.bbclass index 37b1b61..7dedf87 100644 --- a/meta-boot2qt/classes/image_types_sdcard.bbclass +++ b/meta-boot2qt/classes/image_types_sdcard.bbclass @@ -52,7 +52,7 @@ IMAGE_DEPENDS_tegraflash_append = " parted-native:do_populate_sysroot" create_tegraflash_pkg_prepend() { # Create partition table SDCARD=${IMGDEPLOYDIR}/${IMAGE_NAME}.img - SDCARD_ROOTFS=${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.ext4 + SDCARD_ROOTFS=${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${IMAGE_TEGRAFLASH_FS_TYPE} SDCARD_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${ROOTFS_SIZE} + ${IMAGE_ROOTFS_ALIGNMENT}) dd if=/dev/zero of=$SDCARD bs=1 count=0 seek=$(expr 1024 \* $SDCARD_SIZE) @@ -66,3 +66,24 @@ create_tegraflash_pkg_prepend() { rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img ln -s ${IMAGE_NAME}.img ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img } + +# create flash package that utilizes the SD card image +create_tegraflash_pkg_append() { + cd ${WORKDIR}/tegraflash + cat > prepare-image.sh <