From ddd720dc11cdd7429c8f99f9238c6f8fbf2ec6b2 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Tue, 8 Jun 2021 12:55:26 +0200 Subject: [PATCH] v2x: added error check when aborting get_status in v2x-fw-load BugzID: 67750 Signed-off-by: Marc Mattmueller --- recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load b/recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load index e1f4890..503780e 100755 --- a/recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load +++ b/recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load @@ -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