diff --git a/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand b/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand index 0d015ec..a4467bb 100755 --- a/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand +++ b/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand @@ -22,4 +22,15 @@ fi unprotect $part erase $part cp -v $image $part -exit $? +ret=$? + +if cmp $image $part ; then + echo "copy2nand: $image $part OK." +else + echo "copy2nand: FAILURE: checksums src(image=$image) dest(part=$part)" + md5sum $image + md5sum $part + ret=1 +fi + +exit $ret diff --git a/ptxdist/configs/ecu01/bareboxconfig-2016.06.0 b/ptxdist/configs/ecu01/bareboxconfig-2016.06.0 index 6e862b5..b3357e9 100755 --- a/ptxdist/configs/ecu01/bareboxconfig-2016.06.0 +++ b/ptxdist/configs/ecu01/bareboxconfig-2016.06.0 @@ -308,7 +308,7 @@ CONFIG_CMD_BASENAME=y CONFIG_CMD_CAT=y CONFIG_CMD_CD=y CONFIG_CMD_CP=y -# CONFIG_CMD_CMP is not set +CONFIG_CMD_CMP=y CONFIG_CMD_DIGEST=y CONFIG_CMD_DIRNAME=y CONFIG_CMD_FILETYPE=y diff --git a/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0 b/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0 index 421eac3..d5af771 100755 --- a/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0 +++ b/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0 @@ -289,7 +289,7 @@ CONFIG_CMD_BASENAME=y CONFIG_CMD_CAT=y CONFIG_CMD_CD=y CONFIG_CMD_CP=y -# CONFIG_CMD_CMP is not set +CONFIG_CMD_CMP=y # CONFIG_CMD_DIGEST is not set CONFIG_CMD_DIRNAME=y # CONFIG_CMD_FILETYPE is not set