pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


Quantron V1 update fix #001
Posted by Anonymous on Mon 2nd Sep 2019 10:47
raw | new post

  1. diff --git a/ptxdist/configs/ecu01/barebox-defaultenv-2/bin/usb_update_rootfs b/ptxdist/configs/ecu01/barebox-defaultenv-2/bin/usb_update_rootfs
  2. index f97666e..021549a 100755
  3. --- a/ptxdist/configs/ecu01/barebox-defaultenv-2/bin/usb_update_rootfs
  4. +++ b/ptxdist/configs/ecu01/barebox-defaultenv-2/bin/usb_update_rootfs
  5. @@ -27,7 +27,15 @@ if [ -e ${image} ]; then
  6.      do_format_ubi_var=1
  7.      ubiattach -O 2048 /dev/nand0.var
  8.      if [ $? -eq 0 ] ; then
  9. -        if [ -c /dev/nand0.var.ubi.dyn ] ; then
  10. +        #
  11. +        # barebox bug: While [ -c /dev/nand0.var.ubi.dyn ]
  12. +        # would be the correct test current barebox
  13. +        # (2018.05.0-20190221-1-EAG) always returns "true"
  14. +        # if the volume is attached, regarless whether the
  15. +        # "dyn" partition in that volume exists or not.
  16. +        # As fix we use [ -f /dev/nand0.var.ubi.dyn ] instead.
  17. +        #
  18. +        if [ -f /dev/nand0.var.ubi.dyn ] ; then
  19.             echo "usb_update_rootfs: var.dyn contains data."
  20.             do_format_ubi_var=0
  21.          fi

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