From 8139036fa1974c65720aca45e55accd8da8c7eed Mon Sep 17 00:00:00 2001 From: Dmitry Perchanov Date: Sun, 2 Jun 2024 15:55:14 +0300 Subject: [PATCH] backend-v4l2: fix dfu path for legacy Signed-off-by: Dmitry Perchanov --- src/linux/backend-v4l2.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/linux/backend-v4l2.cpp b/src/linux/backend-v4l2.cpp index 822b197438..24f76cde40 100644 --- a/src/linux/backend-v4l2.cpp +++ b/src/linux/backend-v4l2.cpp @@ -948,10 +948,11 @@ namespace librealsense std::vector dfu_device_paths = get_mipi_dfu_paths(); for (const auto& dfu_device_path: dfu_device_paths) { - int vfd = open(dfu_device_path.c_str(), O_RDONLY | O_NONBLOCK); + auto mipi_dfu_chardev = "/dev/" + dfu_device_path; + int vfd = open(mipi_dfu_chardev.c_str(), O_RDONLY | O_NONBLOCK); if (vfd >= 0) { // Use legacy DFU device node used in firmware_update_manager - info.dfu_device_path = dfu_device_path; + info.dfu_device_path = mipi_dfu_chardev; ::close(vfd); // file exists, close file and continue to assign it break; }