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 | 46 |
1 files changed, 46 insertions, 0 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 new file mode 100644 index 00000000..cb93223e --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch | |||
@@ -0,0 +1,46 @@ | |||
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 | diff --git a/imx/start_isp.sh b/imx/start_isp.sh | ||
14 | index 02ee7d3b5..fee0492ad 100755 | ||
15 | --- a/imx/start_isp.sh | ||
16 | +++ b/imx/start_isp.sh | ||
17 | @@ -7,21 +7,18 @@ | ||
18 | # | ||
19 | |||
20 | RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
21 | -DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l 2> /dev/null) | ||
22 | - | ||
23 | +BASLER=`dmesg | grep Basler` | ||
24 | |||
25 | # check if the basler device has been enabled in the device tree | ||
26 | -if [ -f "$DEVICE_TREE_BASLER" ]; then | ||
27 | - | ||
28 | +if [ ! -z "$BASLER" ]; then | ||
29 | echo "Starting isp_media_server for Basler daA3840-30mc" | ||
30 | - | ||
31 | cd $RUNTIME_DIR | ||
32 | # Default configuration for Basler daA3840-30mc: basler_4k | ||
33 | # Available configurations: basler_4k, basler_1080p60, basler_4khdr, basler_1080p60hdr | ||
34 | - exec ./run.sh -c basler_4k -lm | ||
35 | - | ||
36 | + #exec ./run.sh -c basler_4k | ||
37 | + exec ./run.sh -c basler_1080p60 | ||
38 | else | ||
39 | # no device tree found exit with code no device or address | ||
40 | - echo "No device tree found for Basler, check dtb file!" >&2 | ||
41 | + echo "Basler camera not found!" >&2 | ||
42 | exit 6 | ||
43 | fi | ||
44 | -- | ||
45 | 2.29.2 | ||
46 | |||