pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


jncg "prebox" should complain if file copy did not work
Posted by Anonymous on Mon 3rd Sep 2018 15:02
raw | new post

  1. diff --git a/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand b/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand
  2. index 0d015ec..a4467bb 100755
  3. --- a/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand
  4. +++ b/ptxdist/configs/ecu01/barebox-minienv-qaV2/bin/copy2nand
  5. @@ -22,4 +22,15 @@ fi
  6.  unprotect $part
  7.  erase $part
  8.  cp -v $image $part
  9. -exit $?
  10. +ret=$?
  11. +
  12. +if cmp $image $part ; then
  13. +       echo "copy2nand: $image $part OK."
  14. +else
  15. +       echo "copy2nand: FAILURE: checksums src(image=$image) dest(part=$part)"
  16. +       md5sum $image
  17. +       md5sum $part
  18. +       ret=1
  19. +fi
  20. +
  21. +exit $ret
  22. diff --git a/ptxdist/configs/ecu01/bareboxconfig-2016.06.0 b/ptxdist/configs/ecu01/bareboxconfig-2016.06.0
  23. index 6e862b5..b3357e9 100755
  24. --- a/ptxdist/configs/ecu01/bareboxconfig-2016.06.0
  25. +++ b/ptxdist/configs/ecu01/bareboxconfig-2016.06.0
  26. @@ -308,7 +308,7 @@ CONFIG_CMD_BASENAME=y
  27.  CONFIG_CMD_CAT=y
  28.  CONFIG_CMD_CD=y
  29.  CONFIG_CMD_CP=y
  30. -# CONFIG_CMD_CMP is not set
  31. +CONFIG_CMD_CMP=y
  32.  CONFIG_CMD_DIGEST=y
  33.  CONFIG_CMD_DIRNAME=y
  34.  CONFIG_CMD_FILETYPE=y
  35. diff --git a/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0 b/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0
  36. index 421eac3..d5af771 100755
  37. --- a/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0
  38. +++ b/ptxdist/configs/ecu01/bareboxconfig-mini-qaV2-2016.06.0
  39. @@ -289,7 +289,7 @@ CONFIG_CMD_BASENAME=y
  40.  CONFIG_CMD_CAT=y
  41.  CONFIG_CMD_CD=y
  42.  CONFIG_CMD_CP=y
  43. -# CONFIG_CMD_CMP is not set
  44. +CONFIG_CMD_CMP=y
  45.  # CONFIG_CMD_DIGEST is not set
  46.  CONFIG_CMD_DIRNAME=y
  47.  # CONFIG_CMD_FILETYPE is not set

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at