summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch31
-rw-r--r--recipes-bsp/isp-imx/isp-imx_4.2.2.25.1.bb3
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 @@
1From 3443f18dc9ab8950071d6299c7a5da86055f3318 Mon Sep 17 00:00:00 2001
2From: Max Krummenacher <max.krummenacher@toradex.com>
3Date: Thu, 19 Jan 2023 15:51:24 +0000
4Subject: [PATCH] isp-imx: start_isp: don't report error if no camera is
5 configured
6
7The script currently returns '6' when no known camera is configured
8in the device tree. The end result is that the systemd imx8-isp.service
9goes to the failed state.
10Return '0' in that case as obviously the device tree doesn't have a
11camera configured and the service is not needed.
12
13Upstream-Status: Pending
14Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
15---
16 imx/start_isp.sh | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/imx/start_isp.sh b/imx/start_isp.sh
20index 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--
312.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 28ab57b74..e8219de58 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
8SRC_URI = " \ 8SRC_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"
12ISP_SYSTEMD_PATCH = "file://0001-isp-imx-start_isp-don-t-report-error-if-no-camera-is.patch"
13
11IMX_SRCREV_ABBREV = "327f21d" 14IMX_SRCREV_ABBREV = "327f21d"
12S = "${UNPACKDIR}/${BP}-${IMX_SRCREV_ABBREV}" 15S = "${UNPACKDIR}/${BP}-${IMX_SRCREV_ABBREV}"
13 16