summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/isp-imx
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2021-04-27 17:04:53 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2021-04-30 15:09:16 -0300
commit0b4784363e8fffec063249b54837b1f08536d536 (patch)
treedb47ac2e83c0e2d743ed24eb758bf4e275f7e0fb /recipes-bsp/isp-imx
parent2bb6610127b1c305685ed25a7b9343873260d22d (diff)
downloadmeta-freescale-0b4784363e8fffec063249b54837b1f08536d536.tar.gz
isp-imx: Upgrade to 4.2.2.11.0
Drop upstreamed patches: - 0001-BufferManager.h-add-missing-header-file.patch - 0001-imx8-isp.service-do-not-prevent-restart-of-service.patch - 0001-run.sh-fix-bashism.patch Rework patch 0001-start_isp.sh-fix-test-to-be-generic.patch. Let the startup use the default device tree-based implementation as-is, and failing that, try the generic dmesg-based implementation. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-bsp/isp-imx')
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-BufferManager.h-add-missing-header-file.patch27
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-imx8-isp.service-do-not-prevent-restart-of-service.patch26
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-run.sh-fix-bashism.patch23
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch41
-rw-r--r--recipes-bsp/isp-imx/isp-imx_4.2.2.11.0.bb (renamed from recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb)12
5 files changed, 22 insertions, 107 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-BufferManager.h-add-missing-header-file.patch b/recipes-bsp/isp-imx/isp-imx/0001-BufferManager.h-add-missing-header-file.patch
deleted file mode 100644
index 725a9907..00000000
--- a/recipes-bsp/isp-imx/isp-imx/0001-BufferManager.h-add-missing-header-file.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From 325b4bf687ead6598de702df9829a4dad0b6458c Mon Sep 17 00:00:00 2001
2From: Chris Dimich <Chris.Dimich@boundarydevices.com>
3Date: Mon, 15 Feb 2021 22:51:01 -0800
4Subject: [PATCH 1/1] BufferManager.h: add missing header file
5
6Needed to compile with Yocto Gatesgarth.
7
8Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
9---
10 mediacontrol/buffer/BufferManager.h | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/mediacontrol/buffer/BufferManager.h b/mediacontrol/buffer/BufferManager.h
14index f5691e111..4d5ce6965 100755
15--- a/mediacontrol/buffer/BufferManager.h
16+++ b/mediacontrol/buffer/BufferManager.h
17@@ -16,6 +16,7 @@
18 #include <deque>
19 #include <map>
20 #include <EAutoLock.h>
21+#include <stdint.h>
22
23 enum {
24 BUFFER_TYPE_INPUT_FREE = 0,
25--
262.29.0
27
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-imx8-isp.service-do-not-prevent-restart-of-service.patch b/recipes-bsp/isp-imx/isp-imx/0001-imx8-isp.service-do-not-prevent-restart-of-service.patch
deleted file mode 100644
index 86391d4b..00000000
--- a/recipes-bsp/isp-imx/isp-imx/0001-imx8-isp.service-do-not-prevent-restart-of-service.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From ce8dd8db37de85952419a5b28a48ec20d1310cf7 Mon Sep 17 00:00:00 2001
2From: Chris Dimich <Chris.Dimich@boundarydevices.com>
3Date: Wed, 17 Feb 2021 14:09:39 -0800
4Subject: [PATCH 1/1] imx8-isp.service: do not prevent restart of service
5
6Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
7---
8 imx/imx8-isp.service | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/imx/imx8-isp.service b/imx/imx8-isp.service
12index 93d2e9b3a..4f0cd88ca 100644
13--- a/imx/imx8-isp.service
14+++ b/imx/imx8-isp.service
15@@ -10,7 +10,7 @@ StartLimitBurst=5
16 Restart=on-failure
17 RestartSec=5s
18 # ENXIO
19-RestartPreventExitStatus=6
20+#RestartPreventExitStatus=6
21 ExecStart=/opt/imx8-isp/bin/start_isp.sh
22
23 [Install]
24--
252.29.0
26
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-run.sh-fix-bashism.patch b/recipes-bsp/isp-imx/isp-imx/0001-run.sh-fix-bashism.patch
deleted file mode 100644
index 715bed2a..00000000
--- a/recipes-bsp/isp-imx/isp-imx/0001-run.sh-fix-bashism.patch
+++ /dev/null
@@ -1,23 +0,0 @@
1From 7070abd558e753b89955a966bb83e11f5a7b8462 Mon Sep 17 00:00:00 2001
2From: Chris Dimich <Chris.Dimich@boundarydevices.com>
3Date: Wed, 17 Feb 2021 14:06:26 -0800
4Subject: [PATCH 1/1] run.sh: fix bashism
5
6Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
7---
8 imx/run.sh | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/imx/run.sh b/imx/run.sh
12index c0d676ae7..ebeb7a6e7 100755
13--- a/imx/run.sh
14+++ b/imx/run.sh
15@@ -1,4 +1,4 @@
16-#!/bin/bash
17+#!/bin/sh
18 #
19 # Start the isp_media_server in the configuration from user
20 # (c) NXP 2020
21--
222.29.0
23
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
index cb93223e..1b62afe5 100644
--- 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
@@ -10,37 +10,32 @@ Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
10 imx/start_isp.sh | 13 +++++-------- 10 imx/start_isp.sh | 13 +++++--------
11 1 file changed, 5 insertions(+), 8 deletions(-) 11 1 file changed, 5 insertions(+), 8 deletions(-)
12 12
13diff --git a/imx/start_isp.sh b/imx/start_isp.sh 13Index: isp-imx-4.2.2.11.0/imx/start_isp.sh
14index 02ee7d3b5..fee0492ad 100755 14===================================================================
15--- a/imx/start_isp.sh 15--- isp-imx-4.2.2.11.0.orig/imx/start_isp.sh
16+++ b/imx/start_isp.sh 16+++ isp-imx-4.2.2.11.0/imx/start_isp.sh
17@@ -7,21 +7,18 @@ 17@@ -8,6 +8,7 @@
18 #
19 18
20 RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" 19 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) 20 NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null)
22- 21+DMESG_BASLER=`dmesg | grep Basler`
23+BASLER=`dmesg | grep Basler`
24 22
25 # check if the basler device has been enabled in the device tree 23 # check if the basler device has been enabled in the device tree
26-if [ -f "$DEVICE_TREE_BASLER" ]; then 24 if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then
27- 25@@ -28,8 +29,15 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; t
28+if [ ! -z "$BASLER" ]; then 26 # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr
29 echo "Starting isp_media_server for Basler daA3840-30mc" 27 exec ./run.sh -c dual_basler_1080p60 -lm
30- 28
31 cd $RUNTIME_DIR 29+elif [ ! -z "$DMESG_BASLER" ]; then
32 # Default configuration for Basler daA3840-30mc: basler_4k 30+
33 # Available configurations: basler_4k, basler_1080p60, basler_4khdr, basler_1080p60hdr 31+ echo "Starting isp_media_server for generic Basler"
34- exec ./run.sh -c basler_4k -lm 32+
35- 33+ cd $RUNTIME_DIR
36+ #exec ./run.sh -c basler_4k
37+ exec ./run.sh -c basler_1080p60 34+ exec ./run.sh -c basler_1080p60
35+
38 else 36 else
39 # no device tree found exit with code no device or address 37 # no device tree found exit with code no device or address
40- echo "No device tree found for Basler, check dtb file!" >&2 38- echo "No device tree found for Basler, check dtb file!" >&2
41+ echo "Basler camera not found!" >&2 39+ echo "Basler camera not found!" >&2
42 exit 6 40 exit 6
43 fi 41 fi
44--
452.29.2
46
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.11.0.bb
index 363089f0..1e363d13 100644
--- a/recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb
+++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.11.0.bb
@@ -1,21 +1,17 @@
1# Copyright 2020 NXP 1# Copyright 2020-2021 NXP
2 2
3DESCRIPTION = "i.MX Verisilicon Software ISP" 3DESCRIPTION = "i.MX Verisilicon Software ISP"
4LICENSE = "Proprietary" 4LICENSE = "Proprietary"
5LIC_FILES_CHKSUM = "file://${WORKDIR}/${PN}-${PV}/COPYING;md5=cf3f9b8d09bc3926b1004ea71f7a248a" 5LIC_FILES_CHKSUM = "file://${WORKDIR}/${PN}-${PV}/COPYING;md5=3c3fe2b904fd694f28d2f646ee16dddb"
6
7 6
8inherit fsl-eula-unpack cmake systemd 7inherit fsl-eula-unpack cmake systemd
9 8
10SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \ 9SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \
11 file://0001-BufferManager.h-add-missing-header-file.patch;patchdir=.. \
12 file://0001-imx8-isp.service-do-not-prevent-restart-of-service.patch;patchdir=.. \
13 file://0001-run.sh-fix-bashism.patch;patchdir=.. \
14 file://0001-start_isp.sh-fix-test-to-be-generic.patch;patchdir=.. \ 10 file://0001-start_isp.sh-fix-test-to-be-generic.patch;patchdir=.. \
15" 11"
16 12
17SRC_URI[md5sum] = "2246009411af32b1e02fbb0b242a0fc0" 13SRC_URI[md5sum] = "75f79ba556c47172b9a0cbc3a877e604"
18SRC_URI[sha256sum] = "7a245abb5fee23319f59b970db0bb014a2932fd6d5bd44f16f7dd31bbe25003a" 14SRC_URI[sha256sum] = "28e2ee909f29a256c4eac87ef8336932d90a88a2a183389ac0868212954af42c"
19 15
20S = "${WORKDIR}/${PN}-${PV}/appshell" 16S = "${WORKDIR}/${PN}-${PV}/appshell"
21 17