diff options
| author | Hiago De Franco <hiago.franco@toradex.com> | 2025-07-14 10:20:55 -0300 |
|---|---|---|
| committer | Hiago De Franco <hiago.franco@toradex.com> | 2025-07-14 13:14:25 -0300 |
| commit | 7b47635c70471284630bac3914bb27e3950feacb (patch) | |
| tree | c92e308719fda940de7afe94ca2c376f7954a905 /recipes-bsp/isp-imx | |
| parent | 6e79ee977dd7298d3bfd91b084cd423e6b5c62c0 (diff) | |
| download | meta-freescale-7b47635c70471284630bac3914bb27e3950feacb.tar.gz | |
isp-imx: don't leave systemd service in failed state
If no camera is configured in the device tree systemd imx8-isp.service
goes to the failed state. Prevent that.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Diffstat (limited to 'recipes-bsp/isp-imx')
| -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 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 | ||
| 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 = "${UNPACKDIR}/${BP}-${IMX_SRCREV_ABBREV}" | 15 | S = "${UNPACKDIR}/${BP}-${IMX_SRCREV_ABBREV}" |
| 13 | 16 | ||
