diff options
-rw-r--r-- | recipes-bsp/isp-imx/isp-imx/0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch | 31 | ||||
-rw-r--r-- | recipes-bsp/isp-imx/isp-imx_4.2.2.25.1.bb | 3 |
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch b/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch new file mode 100644 index 000000000..930119261 --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 3443f18dc9ab8950071d6299c7a5da86055f3318 Mon Sep 17 00:00:00 2001 | ||
2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
3 | Date: Thu, 19 Jan 2023 15:51:24 +0000 | ||
4 | Subject: [PATCH] isp-imx: start_isp: don't report error if no camera is | ||
5 | configured | ||
6 | |||
7 | The script currently returns '6' when no known camera is configured | ||
8 | in the device tree. The end result is that the systemd imx8-isp.service | ||
9 | goes to the failed state. | ||
10 | Return '0' in that case as obviously the device tree doesn't have a | ||
11 | camera configured and the service is not needed. | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
15 | --- | ||
16 | imx/start_isp.sh | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/imx/start_isp.sh b/imx/start_isp.sh | ||
20 | index 95cbc19..d603f8f 100755 | ||
21 | --- a/imx/start_isp.sh | ||
22 | +++ b/imx/start_isp.sh | ||
23 | @@ -74,5 +74,5 @@ elif [ $NR_DEVICE_TREE_OS08A20 -eq 2 ]; then | ||
24 | else | ||
25 | # no device tree found exit with code no device or address | ||
26 | echo "No device tree found for Basler camera or os08a20, check dtb file!" >&2 | ||
27 | - exit 6 | ||
28 | + exit 0 | ||
29 | fi | ||
30 | -- | ||
31 | 2.35.3 | ||
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.25.1.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.25.1.bb index 25ffdd8a1..0a6b4e662 100644 --- a/recipes-bsp/isp-imx/isp-imx_4.2.2.25.1.bb +++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.25.1.bb | |||
@@ -7,7 +7,10 @@ DEPENDS = "boost libdrm virtual/libg2d libtinyxml2 jsoncpp patchelf-native" | |||
7 | 7 | ||
8 | SRC_URI = " \ | 8 | SRC_URI = " \ |
9 | ${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true \ | 9 | ${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true \ |
10 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${ISP_SYSTEMD_PATCH}', '', d)} \ | ||
10 | " | 11 | " |
12 | ISP_SYSTEMD_PATCH = "file://0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch" | ||
13 | |||
11 | IMX_SRCREV_ABBREV = "327f21d" | 14 | IMX_SRCREV_ABBREV = "327f21d" |
12 | S = "${WORKDIR}/${BP}-${IMX_SRCREV_ABBREV}" | 15 | S = "${WORKDIR}/${BP}-${IMX_SRCREV_ABBREV}" |
13 | 16 | ||