From 756957e2803665edab74a54e8031d4d75c64e038 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Tue, 8 Jul 2025 15:43:00 +0200 Subject: [PATCH] x-linux-ai: recipes-samples: fix broken webcam support after latest release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The latest X-LINUX-AI v6.0.1 release consolidated the config_board_npu.sh script across all STM32MP2x platforms with NPU support. As part of this consolidation, the supported video resolutions were unified under a single default setting, which does not work correctly with USB webcams. This commit updates Digi’s custom patch to adjust the internal resolution used for processing video streams from webcams, ensuring proper support and functionality. https://onedigi.atlassian.net/browse/DEL-9721 Signed-off-by: Arturo Buzarra --- ...board-fix-support-for-web-camera-with-STM32MP.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/resources/files/patches/0001-config_board-fix-support-for-web-camera-with-STM32MP.patch b/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/resources/files/patches/0001-config_board-fix-support-for-web-camera-with-STM32MP.patch index 8dea1d258..48984e0c9 100644 --- a/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/resources/files/patches/0001-config_board-fix-support-for-web-camera-with-STM32MP.patch +++ b/meta-digi-dey/dynamic-layers/x-linux-ai/recipes-samples/resources/files/patches/0001-config_board-fix-support-for-web-camera-with-STM32MP.patch @@ -8,11 +8,11 @@ exclusive to cameras using the DCMIPP peripheral. Signed-off-by: Arturo Buzarra --- - .../files/resources-files/config_board_npu.sh | 29 ++++++++++++++++++- - 1 file changed, 28 insertions(+), 1 deletion(-) + .../files/resources-files/config_board_npu.sh | 31 ++++++++++++++++++- + 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/resources-files/config_board_npu.sh b/resources-files/config_board_npu.sh -index c89b5ca..38dda50 100644 +index c89b5ca..af95558 100644 --- a/resources-files/config_board_npu.sh +++ b/resources-files/config_board_npu.sh @@ -16,10 +16,28 @@ STM32MP251="stm32mp251" @@ -44,7 +44,7 @@ index c89b5ca..38dda50 100644 echo "Software X-LINUX-AI installed is not compatible with the board, please install X-LINUX-AI CPU version for plateform without hardware accelerator" exit 1 fi -@@ -54,11 +72,20 @@ if [[ "$COMPATIBLE" == *"$STM32MP257"* ]] || [[ "$COMPATIBLE" == *"$STM32MP255"* +@@ -54,11 +72,22 @@ if [[ "$COMPATIBLE" == *"$STM32MP257"* ]] || [[ "$COMPATIBLE" == *"$STM32MP255"* MACHINE=$STM32MP2_NPU DWIDTH=760 DHEIGHT=568 @@ -59,6 +59,8 @@ index c89b5ca..38dda50 100644 + else + # Web camera + OPTIONS="" ++ DWIDTH=640 ++ DHEIGHT=480 + fi + IMAGE_CLASSIFICATION_MODEL="mobilenet/mobilenet_v2_1.0_224_int8_per_tensor$NN_EXT"