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 \ "$@"