From 40dd07623401c33d6207603c9b2fd842cfbeca7c Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Fri, 28 Oct 2022 13:40:20 -0400 Subject: [PATCH 1/5] add git fetch --- scripts/patch-realsense-ubuntu-lts-hwe.sh | 4 ++-- scripts/patch-realsense-ubuntu-lts.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/patch-realsense-ubuntu-lts-hwe.sh b/scripts/patch-realsense-ubuntu-lts-hwe.sh index 13fcb97f6a..2671528e5e 100755 --- a/scripts/patch-realsense-ubuntu-lts-hwe.sh +++ b/scripts/patch-realsense-ubuntu-lts-hwe.sh @@ -125,7 +125,7 @@ then kernel_git_tag=$(git ls-remote --tags origin | grep "${kernel_full_num}\." | grep '[^^{}]$' | head -n 1 | awk -F/ '{print $NF}') fi echo -e "\e[32mFetching Ubuntu LTS tag \e[47m${kernel_git_tag}\e[0m \e[32m to the local kernel sources folder\e[0m" - git fetch origin tag ${kernel_git_tag} --no-tags + git fetch origin tag ${kernel_git_tag} --no-tags --depth 1 # Verify that there are no trailing changes., warn the user to make corrective action if needed if [ $(git status | grep 'modified:' | wc -l) -ne 0 ]; @@ -153,7 +153,7 @@ then if [ $reset_driver -eq 1 ]; - then + then echo -e "\e[43mUser requested to rebuild and reinstall ubuntu-${ubuntu_codename} stock drivers\e[0m" else # Patching kernel for RealSense devices diff --git a/scripts/patch-realsense-ubuntu-lts.sh b/scripts/patch-realsense-ubuntu-lts.sh index 255a490026..ed9a0ee37d 100755 --- a/scripts/patch-realsense-ubuntu-lts.sh +++ b/scripts/patch-realsense-ubuntu-lts.sh @@ -116,7 +116,7 @@ then kernel_full_num=$(echo $LINUX_BRANCH | cut -d '-' -f 1,2) kernel_git_tag=$(git ls-remote --tags origin | grep "${kernel_full_num}\." | grep '[^^{}]$' | tail -n 1 | awk -F/ '{print $NF}') echo -e "\e[32mFetching Ubuntu LTS tag \e[47m${kernel_git_tag}\e[0m \e[32m to the local kernel sources folder\e[0m" - git fetch origin tag ${kernel_git_tag} --no-tags + git fetch origin tag ${kernel_git_tag} --no-tags --depth 1 # Verify that there are no trailing changes., warn the user to make corrective action if needed if [ $(git status | grep 'modified:' | wc -l) -ne 0 ]; @@ -144,7 +144,7 @@ then if [ $reset_driver -eq 1 ]; - then + then echo -e "\e[43mUser requested to rebuild and reinstall ubuntu-${ubuntu_codename} stock drivers\e[0m" else # Patching kernel for RealSense devices From 8250247a949cbea7d9c2d0403e8fd1adf3fec36e Mon Sep 17 00:00:00 2001 From: Samer Khshiboun <99127997+SamerKhshiboun@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:06:19 +0200 Subject: [PATCH 2/5] Update ros1 and ros2 links in readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index cd674f12c5..16aa0dac87 100644 --- a/readme.md +++ b/readme.md @@ -55,7 +55,7 @@ The librealsense port in vcpkg is kept up to date by Microsoft team members and | **[Depth Quality Tool](./tools/depth-quality)** | This application allows you to test the camera’s depth quality, including: standard deviation from plane fit, normalized RMS – the subpixel accuracy, distance accuracy and fill rate. You should be able to easily get and interpret several of the depth quality metrics and record and save the data for offline analysis. |[**Depth.Quality.Tool.exe**](https://github.com/IntelRealSense/librealsense/releases) | | **[Debug Tools](./tools/)** | Device enumeration, FW logger, etc as can be seen at the tools directory | Included in [**Intel.RealSense.SDK.exe**](https://github.com/IntelRealSense/librealsense/releases)| | **[Code Samples](./examples)** |These simple examples demonstrate how to easily use the SDK to include code snippets that access the camera into your applications. Check some of the [**C++ examples**](./examples) including capture, pointcloud and more and basic [**C examples**](./examples/C) | Included in [**Intel.RealSense.SDK.exe**](https://github.com/IntelRealSense/librealsense/releases) | -| **[Wrappers](https://github.com/IntelRealSense/librealsense/tree/development/wrappers)** | [Python](./wrappers/python), [C#/.NET](./wrappers/csharp), [Node.js](./wrappers/nodejs) API, as well as integration with the following 3rd-party technologies: [ROS](https://github.com/intel-ros/realsense/releases), [ROS2](https://github.com/intel/ros2_intel_realsense), [LabVIEW](./wrappers/labview), [OpenCV](./wrappers/opencv), [PCL](./wrappers/pcl), [Unity](./wrappers/unity), [Matlab](./wrappers/matlab), [OpenNI](./wrappers/openni2), [UnrealEngine4](./wrappers/unrealengine4) and more to come. | | +| **[Wrappers](https://github.com/IntelRealSense/librealsense/tree/development/wrappers)** | [Python](./wrappers/python), [C#/.NET](./wrappers/csharp), [Node.js](./wrappers/nodejs) API, as well as integration with the following 3rd-party technologies: [ROS1](https://github.com/IntelRealSense/realsense-ros/tree/ros1-legacy), [ROS2](https://github.com/IntelRealSense/realsense-ros/tree/ros2-development), [LabVIEW](./wrappers/labview), [OpenCV](./wrappers/opencv), [PCL](./wrappers/pcl), [Unity](./wrappers/unity), [Matlab](./wrappers/matlab), [OpenNI](./wrappers/openni2), [UnrealEngine4](./wrappers/unrealengine4) and more to come. | | ## Ready to Hack! From b80361ad84cb242094d214ce411eb401e76b040b Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Fri, 28 Oct 2022 09:04:02 +0300 Subject: [PATCH 3/5] add no-lto flag --- common/fw/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/fw/CMakeLists.txt b/common/fw/CMakeLists.txt index 5bd018dce6..b29d9d6881 100644 --- a/common/fw/CMakeLists.txt +++ b/common/fw/CMakeLists.txt @@ -44,6 +44,13 @@ set(L53X_FW_URL "${REALSENSE_FIRMWARE_URL}/Releases/L5xx/FW") add_library(${PROJECT_NAME} STATIC empty.c) +# disable link time optimization for fw by adding -fno-lto to disable -flto flag +# jammy debian has build errors without it +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + message(STATUS "disable link time optimization for fw project") + target_compile_options(${PROJECT_NAME} PRIVATE -fno-lto) +endif() + if (MSVC) # lib.exe can't handle multiple .res files, so include them in one. # even then, the linker won't grab a .res out of a .lib object, so it needs to be explicitly listed From 4d5601a7b5b67f0e10b31b539ffa9f1e3311ce15 Mon Sep 17 00:00:00 2001 From: SamerKhshiboun Date: Wed, 2 Nov 2022 16:18:33 +0200 Subject: [PATCH 4/5] change libRS to LibRealSense in package.xml (to be aligned with realsense2_camera ros packages) --- package.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.xml b/package.xml index a40ce3bb77..61d2cd7532 100644 --- a/package.xml +++ b/package.xml @@ -12,11 +12,11 @@ Library for controlling and capturing data from the Intel(R) RealSense(TM) D400 devices. - LibRS ROS Team + LibRealSense ROS Team https://github.com/IntelRealSense/librealsense/ - LibRS ROS Team + LibRealSense ROS Team Apache License, Version 2.0 From 1421180173e5883d8ac2864cb7808ae8095cedc9 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Tue, 8 Nov 2022 09:58:31 +0200 Subject: [PATCH 5/5] update supported kernel versions in docs --- doc/distribution_linux.md | 4 ++-- doc/installation.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/distribution_linux.md b/doc/distribution_linux.md index e842f0a2f4..d2dd07e980 100644 --- a/doc/distribution_linux.md +++ b/doc/distribution_linux.md @@ -1,8 +1,8 @@ # Linux Distribution #### Using pre-build packages -**Intel® RealSense™ SDK 2.0** provides installation packages for Intel X86/AMD64-based Debian distributions in [`dpkg`](https://en.wikipedia.org/wiki/Dpkg) format for Ubuntu 16/18/20 [LTS](https://wiki.ubuntu.com/LTS). -The Realsense [DKMS](https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support) kernel drivers package (`librealsense2-dkms`) supports Ubuntu LTS kernels 4.4, 4.8, 4.10, 4.13, 4.15, 4.18*, 5.0*, 5.3* and 5.4. Please refer to [Ubuntu Kernel Release Schedule](https://wiki.ubuntu.com/Kernel/Support) for further details. +**Intel® RealSense™ SDK 2.0** provides installation packages for Intel X86/AMD64-based Debian distributions in [`dpkg`](https://en.wikipedia.org/wiki/Dpkg) format for Ubuntu 16/18/20/22 [LTS](https://wiki.ubuntu.com/LTS). +The Realsense [DKMS](https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support) kernel drivers package (`librealsense2-dkms`) supports Ubuntu LTS kernels 4.4, 4.8, 4.10, 4.13, 4.15, 4.18*, 5.0*, 5.3*, 5.4, 5.13 and 5.15. Please refer to [Ubuntu Kernel Release Schedule](https://wiki.ubuntu.com/Kernel/Support) for further details. #### Configuring and building from the source code While we strongly recommend to use DKMS package whenever possible, there are certain cases where installing and patching the system manually is necessary: diff --git a/doc/installation.md b/doc/installation.md index e148bac207..63ed4c371c 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -66,7 +66,7 @@ The scripts and commands below invoke `wget, git, add-apt-repository` which may 4. Build and apply patched kernel modules for:
* **Ubuntu 20/22 (focal/jammy) with LTS kernel 5.13, 5.15 **
`./scripts/patch-realsense-ubuntu-lts-hwe.sh`
- * **Ubuntu 14/16/18/20 with LTS kernel**
+ * **Ubuntu 14/16/18/20 with LTS kernel (< 5.13) **
`./scripts/patch-realsense-ubuntu-lts.sh`
* **Ubuntu with Kernel 4.16**
`./scripts/patch-ubuntu-kernel-4.16.sh`