diff options
Diffstat (limited to 'recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch')
-rw-r--r-- | recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch deleted file mode 100644 index be2e1c61..00000000 --- a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 708f25cfe522df162c3e2c7c56cbe2f7000cb5e4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gary Bisson <gary.bisson@boundarydevices.com> | ||
3 | Date: Mon, 14 Dec 2020 14:26:01 +0100 | ||
4 | Subject: [PATCH] start_isp.sh: fix test to be generic | ||
5 | |||
6 | So that it works on EVK and any other i.MX 8M Plus platform. | ||
7 | |||
8 | Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> | ||
9 | --- | ||
10 | imx/start_isp.sh | 13 +++++-------- | ||
11 | 1 file changed, 5 insertions(+), 8 deletions(-) | ||
12 | |||
13 | Index: isp-imx-4.2.2.13.0/imx/start_isp.sh | ||
14 | =================================================================== | ||
15 | --- isp-imx-4.2.2.13.0.orig/imx/start_isp.sh | ||
16 | +++ isp-imx-4.2.2.13.0/imx/start_isp.sh | ||
17 | @@ -9,6 +9,7 @@ | ||
18 | RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
19 | NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
20 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
21 | +DMESG_BASLER=`dmesg | grep Basler` | ||
22 | |||
23 | # check if the basler device has been enabled in the device tree | ||
24 | if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then | ||
25 | @@ -40,8 +41,15 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; t | ||
26 | # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr, dual_basler_1080p25hdr | ||
27 | exec ./run.sh -c dual_basler_1080p60 -lm | ||
28 | |||
29 | +elif [ ! -z "$DMESG_BASLER" ]; then | ||
30 | + | ||
31 | + echo "Starting isp_media_server for generic Basler" | ||
32 | + | ||
33 | + cd $RUNTIME_DIR | ||
34 | + exec ./run.sh -c basler_1080p60 | ||
35 | + | ||
36 | else | ||
37 | # no device tree found exit with code no device or address | ||
38 | - echo "No device tree found for Basler, check dtb file!" >&2 | ||
39 | + echo "Basler camera not found!" >&2 | ||
40 | exit 6 | ||
41 | fi | ||