From a5bfeffc2b6dad2baa41a5d2e71d071f513b5fea Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 21 Feb 2023 23:42:15 +0100 Subject: [PATCH] tools: update `csi_camera.sh` and `libcamera_camera.sh` scripts --- tools/csi_camera.sh | 4 ++-- tools/libcamera_camera.sh | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/csi_camera.sh b/tools/csi_camera.sh index 3c9b8fc..10b367d 100755 --- a/tools/csi_camera.sh +++ b/tools/csi_camera.sh @@ -3,7 +3,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPT_DIR/.." -CAMERA_PATH=$(echo /dev/v4l/by-path/*.csi-video-index0) +CAMERA_PATH=( $(echo /dev/v4l/by-path/*.csi-video-index0) ) if [[ "$1" == "dump" ]]; then shift @@ -21,7 +21,7 @@ fi set -xeo pipefail make -j$(nproc) -$GDB ./camera-streamer -camera-path=$(echo /dev/v4l/by-path/*.csi-video-index0) \ +$GDB ./camera-streamer -camera-path="${CAMERA_PATH[0]}" \ -camera-options=vertical_blanking=728 \ -camera-options=exposure=2444 \ -camera-options=analogue_gain=600 \ diff --git a/tools/libcamera_camera.sh b/tools/libcamera_camera.sh index 1ec5ddf..90d296d 100755 --- a/tools/libcamera_camera.sh +++ b/tools/libcamera_camera.sh @@ -6,7 +6,6 @@ cd "$SCRIPT_DIR/.." set -xeo pipefail make -j$(nproc) $GDB ./camera-streamer \ - -camera-path=/base/soc/i2c0mux/i2c@1/imx519@1a \ -camera-type=libcamera \ -camera-format=YUYV \ "$@"