v2x: added error check when aborting get_status in v2x-fw-load
BugzID: 67750 Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
f626798f94
commit
ddd720dc11
|
|
@ -86,6 +86,10 @@ loadFirmware()
|
|||
echo "$SCRIPT_NAME: loading v2x firmware..."
|
||||
output=$(dfu-util -d 0483:df11 -s 0x10000000 -D /lib/firmware/v2x/SECTON.packed_bin.rom 2>&1)
|
||||
if [ $? != 0 ]; then
|
||||
if echo "$output" | grep -i "Error during abort get_status"; then
|
||||
echo "$SCRIPT_NAME: get_status abort error: ignoring"
|
||||
exit 0
|
||||
fi
|
||||
echo "$SCRIPT_NAME: Something went wrong while uploading firmware:"
|
||||
echo "$output"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue