From 830c4d502f037a4bc181d549e2b74a815c4c9d55 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 30 Apr 2012 18:04:04 -0300 Subject: [PATCH] image_types_fsl.bbclass: avoid use of 'sed' to change partition type The 'sed' might fail in some systems due user right and restrictions so we use 'dd' and 'echo' to do the same trick. Signed-off-by: Otavio Salvador Reported-by: "John Passaniti" --- meta-fsl-arm/classes/image_types_fsl.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 5d213e51..a6248f93 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/classes/image_types_fsl.bbclass @@ -66,7 +66,7 @@ IMAGE_CMD_sdcard () { # Change partition type for mxs processor family if [ "${SOC_FAMILY}" = "mxs" ]; then bbnote "Setting partition type to 0x53 as required for mxs' SoC family." - sed -i 's,.,\x53,450' ${SDCARD} + echo -n S | dd of=${SDCARD} bs=1 count=1 seek=450 conv=notrunc fi case "${IMAGE_BOOTLOADER}" in -- 2.40.1