sdcard_image-rpi.bbclass: remove stamp file
PATCH 1/2 sdcard_image-rpi.bbclass: remove stamp file
stamp files are not of much use and this patch fixes:
ERROR: kde-base-image-1.0-r0 do_image_rpi_sdimg: Taskhash mismatch 3fad6675b6fcc6b048099609adf21967 versus f0665d2ea6d2db2359c456c60a33e52e for /home/superandy/data/oe-core/sources/meta-misc/recipes-image/kde/kde-base-image.bb.do_image_rpi_sdimg
ERROR: Taskhash mismatch 3fad6675b6fcc6b048099609adf21967 versus f0665d2ea6d2db2359c456c60a33e52e for /home/superandy/data/oe-core/sources/meta-misc/recipes-image/kde/kde-base-image.bb.do_image_rpi_sdimg
--- classes/sdcard_image-rpi.bbclass | 8 -------- 1 file changed, 8 deletions(-)
classes/sdcard_image-rpi.bbclass +0 -8
@@ -71,10 +71,6 @@ SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. FATPAYLOAD ?= "" -IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" -IMAGE_CMD_rpi-sdimg[vardepsexclude] += "IMAGEDATESTAMP" -IMAGE_CMD_rpi-sdimg[vardepsexclude] += "DATETIME" - RPI_KERNEL_VERSION := "${@get_kernelversion_file('${STAGING_KERNEL_BUILDDIR}')}" IMAGE_CMD_rpi-sdimg () {
@@ -145,10 +141,6 @@ IMAGE_CMD_rpi-sdimg () { done fi - # Add stamp file - echo "${IMAGE_NAME}-${IMAGEDATESTAMP}" > ${WORKDIR}/image-version-info - mcopy -i ${WORKDIR}/boot.img -v ${WORKDIR}//image-version-info :: - # Burn Partitions dd if=${WORKDIR}/boot.img of=${SDIMG} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync # If SDIMG_ROOTFS_TYPE is a .xz file use xzcat
Signature · 1 line
2.5.5
PATCH 2/2 sdcard_image-rpi.bbclass: avoid corrupted images with latest oe-core
oe-core's commit d54339d4b1a7e884de636f6325ca60409ebd95ff creates image in IMGDEPLOYDIR and copies through sstate to DEPLOY_DIR_IMAGE. That causes DEPLOY_DIR_IMAGE not valid when calling IMAGE_CMD. Therefore use IMGDEPLOYDIR for sdcard creation too.
--- classes/sdcard_image-rpi.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
classes/sdcard_image-rpi.bbclass +2 -2
@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096" # Use an uncompressed ext3 by default as rootfs SDIMG_ROOTFS_TYPE ?= "ext3" -SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" +SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" IMAGE_DEPENDS_rpi-sdimg = " \ parted-native \
@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \ " # SD card image name -SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" +SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg" # Compression method to apply to SDIMG after it has been created. Supported # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
Signature · 1 line
2.5.5
Re: [meta-raspberrypi][PATCH 2/2] sdcard_image-rpi.bbclass: avoid corrupted images with latest oe-core
Quoted 33 lines · Andreas Müller
oe-core's commit
d54339d4b1a7e884de636f6325ca60409ebd95ffcreates image in IMGDEPLOYDIR and copies through sstate toDEPLOY_DIR_IMAGE. That causesDEPLOY_DIR_IMAGEnot valid when callingIMAGE_CMD. Therefore use IMGDEPLOYDIR for sdcard creation too.Signed-off-by Andreas Müller <[email protected]>--- classes/sdcard_image-rpi.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)classes/sdcard_image-rpi.bbclass +2
-3@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096" # Use an uncompressed ext3 by default as rootfs SDIMG_ROOTFS_TYPE ?= "ext3" -SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" +SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" IMAGE_DEPENDS_rpi-sdimg = " \ parted-native \@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \ " # SD card image name -SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" +SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg" # Compression method to apply to SDIMG after it has been created. Supported # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file --
Quoted 2 lines
2.5.5
Forgot to mention: Handy links on sdcard images are properly created with this patch.
Andreas
Re: [meta-raspberrypi][PATCH 2/2] sdcard_image-rpi.bbclass: avoid corrupted images with latest oe-core
Quoted 35 lines · Andreas Müller
Quoted 30 lines · Andreas Müller
oe-core's commit
d54339d4b1a7e884de636f6325ca60409ebd95ffcreates image in IMGDEPLOYDIR and copies through sstate toDEPLOY_DIR_IMAGE. That causesDEPLOY_DIR_IMAGEnot valid when callingIMAGE_CMD. Therefore use IMGDEPLOYDIR for sdcard creation too.Signed-off-by Andreas Müller <[email protected]>---
classes/sdcard_image-rpi.bbclass | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)classes/sdcard_image-rpi.bbclass +0
-0@@ -47,7 +47,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096" # Use an uncompressed ext3 by default as rootfs
SDIMG_ROOTFS_TYPE?= "ext3"classes/sdcard_image-rpi.bbclass +1
-1-SDIMG_ROOTFS = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}" +SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"IMAGE_DEPENDS_rpi-sdimg = " \ parted-native \classes/sdcard_image-rpi.bbclass +1
-1@@ -59,7 +59,7 @@ IMAGE_DEPENDS_rpi-sdimg = " \ " # SD card image name -SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" +SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
Quoted 7 lines
Quoted 5 lines
classes/sdcard_image-rpi.bbclass +0
-1# Compression method to apply to SDIMG after it has been created. Supported # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file --2.5.5
Forgot to mention: Handy links on sdcard images are properly created with this patch.
Staged into kraj/master
Quoted 7 lines
Andreas
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Hi Andreas,
Quoted 5 lines · Andreas Müller
stamp files are not of much use and this patch fixes:
ERROR: kde-base-image-1.0-r0do_image_rpi_sdimg: Taskhash mismatch3fad6675b6fcc6b048099609adf21967versusf0665d2ea6d2db2359c456c60a33e52efor/home/superandy/data/oe-core/sources/meta-misc/recipes-image/kde/kde-base-image.bb.do_image_rpi_sdimg
ERROR: Taskhash mismatch3fad6675b6fcc6b048099609adf21967versusf0665d2ea6d2db2359c456c60a33e52efor/home/superandy/data/oe-core/sources/meta-misc/recipes-image/kde/kde-base-image.bb.do_image_rpi_sdimgSigned-off-by Andreas Müller <[email protected]>
I have posted an alternative patch which removes the redundant use of IMAGEDATESTAMP as IMAGE_NAME already includes date and time. That should solve the issue. Some people may find this image-version-info file still useful as it identifies the name of the image.
Regards,
Jonathan