From 2b3c3f3e9fe3d31b94722117ca56d57aab2e6b4b Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Tue, 18 May 2021 14:27:54 +0200 Subject: [PATCH] v2x: added exit criteria when no v2x module was found on the usb bus the v2x service won't fail anymore if no modem is found on the usb bus. BugzID: 72787 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 0784de3..ac96eae 100644 --- a/recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load +++ b/recipes-bsp/v2x-ieee802.11p/files/v2x-fw-load @@ -13,6 +13,10 @@ echo 0 > $HUB_RST echo 0 > $V2X_RST timeout 30 bash -c -- 'while true; do lsusb | grep "0483:df11"; if [ $? == 0 ]; then break; fi; done' +if [ $? == 124 ]; then + echo "v2x module is not available on usb bus" + exit 0 +fi output=$(dfu-util -d 0483:df11 -s 0x10000000 -D /lib/firmware/v2x/SECTON.packed_bin.rom 2>&1) err=$?