-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
intel realsense patch for kernel 5.10 #11745
Comments
Hi @WallE-Bosch The correct patch script file for kernel versions older than 5.13 is patch-realsense-ubuntu-lts.sh. However, kernel 5.10 is not supported by patch-realsense-ubuntu-lts.sh. 5.8 and 5.11 are supported. If your project is unable to upgrade the kernel version to 5.11 then you can bypass the kernel and avoid the need to kernel-patch by building the RealSense SDK from source code with CMake using the RSUSB Backend installation method described at #9931 (comment) |
@MartyG-RealSense Thanks for the fast answer |
If the SDK is installed from packages (which have the patch bundled in them) or built from source code with the RSUSB Backend installation method then no kernel patching is necessary. If the SDK is built from source code but RSUSB is not used then a kernel patch should be applied if you have a kernel version that the SDK's patch scripts support. Both 5.4 and 5.15 are supported. If a patch is not applied to a non-RSUSB source code build then there may be errors, and support for hardware metadata will not be included. |
Hi @WallE-Bosch Do you require further assistance with this case, please? Thanks! |
So we tried out an it looks not bad I wondered that the solution is not recommended Notes: |
RSUSB is fine for some applications but has some drawbacks that makes a kernel-patched build a better choice instead of RSUSB in certain situations. For example, RSUSB is best suited to single-camera applications rather than multicam ones. For more information about the advantages and disadvantages of kernel-patching versus RSUSB, you can visit #5212 (comment) and scroll down through the linked-to comment to the section headed What are the advantages and disadvantages of using libuvc vs patched kernel modules? |
Hi @WallE-Bosch Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Thank you for support |
@MartyG-RealSense will there be a patch availible for kernel 6.1. ? |
I will ask my Intel RealSense colleagues. |
Hi @WallE-Bosch After discussion with my Intel RealSense colleagues, an internal Intel feature request for adding support for kernel 6.1 has been created. I have re-opened this issue and it should remain open whilst the feature request is active, but there is no further action that you need to take. Thanks! |
Hi @WallE-Bosch . |
Quick follow-up question. realsense-camera-formats-jammy-master.patch I'm building the jammy-kernel from scratch, using the sources from https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy on branch 'master-next'. I noticed that depending on the branch, the realsense-hid-jammy-master.patch already seems to be applied, so I'm applying all patches with Is that correct or is there anything missing? I also noticed that Thanks for helping us out! |
Hi @schulz-bosch If you do not want to use a kernel patch script then you can simply bypass the kernel and not need to patch it by building the librealsense SDK from source code with CMake and including the flag An example of instructions for an RSUSB build can be found at #9931 (comment) |
Hi @schulz-bosch. You can apply patch manually following set of patch files with version you need. Later kernels (5+):
Later kernels, updated:
If you not use metadata, you can skip metadata related patches. Example: for 5.19, all kernels fully support HID timestamp, no need for hid patch, all formats already upstreamed. realsense-metadata-jammy-master.patch realsense-powerlinefrequency-control-fix-jammy.patch For kernels 6.0-6.4, skip powerline frequency and hid patches: For kernel 6.5 and above, you do not need to patch anything. You will see no "version" change in module as we do not modify it in manual patches, only with DKMS patches. |
Hi @schulz-bosch Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense, @dmipx , |
Thanks very much @schulz-bosch for the update This case should be kept open as it is associated with an internal Intel feature request for adding support for kernel 6.1, but you do not need to take any further action on this case. Thanks again! |
@dmipx "For kernel 6.5 and above, you do not need to patch anything." does this mean that we can use kernel 6.5.0-1006-oem? Best regards |
Hello again. Sorry for having another question. @MartyG-RealSense : We are currently still using this library on version v2.50.0. For our 5.15 kernel however, we use the patch files from the master branch (I think, v2.50.0 didn't have jammy patch files at all). So I was wondering:
Thanks in advance! |
Hi @schulz-bosch Before kernel 5.15 support was officially introduced, there was an unofficial Ubuntu 22.04 Jammy test patch for 5.15 made available in July 2022 at #10439 (comment) In July 2022 the latest SDK version was 2.50.0. The 2.51.1 SDK was introduced in August 2022, the.month after the unofficial patch's release. The official 5.15 kernel patch support was introduced in SDK 2.53.1 onwards. You can avoid the need to patch the kernel though if you build the SDK from source code with CMake with the flag -DFORCE_RSUSB_BACKEND=TRUE included in the CMake build instruction, as an RSUSB = true build of the SDK is not dependent on Linux versions or kernel versions and does not require kernel patching (it bypasses the kernel). |
Hi @MartyG-RealSense . |
If your project does not require camera metadata (which kernel patching provides support for) then I would recommend trying to run the 2.50.0 SDK with an unpatched kernel. The SDK can still work with kernel versions that are not officially supported, though there may be unforseeable consequences in regards to stability. The best way to find out is to try it without patching and see how it performs. |
I am running a 5.15 kernel with patches, and compared the 2.50.0 with the 2.54.2. I noticed that "rs-enumerate-devices -s" is very slow in version 2.54.2. I tested querying 2 devices, and it took 2.059930337s with 2.54.2, and 0.063554261s with 2.50.0. Is there any reason for that? |
As you are using SDK 2.54.2, have you updated your camera firmware driver to version 5.15.1.0 please? This is the recommended firmware for 2.54.2, and using an older firmware version with it could result in errors. |
Yes, the cameras are updated. |
Thank you for the confirmation. I will check about your issue with @dmipx who is a kernel expert. Hi @dmipx Are you able to replicate slowdown of rs-enumerate-devices in SDK 2.54.2 reported by @schulz-bosch at #11745 (comment) please? Thanks! |
We are talking about same test on same device? |
@dmipx yes, same device, same kernel, same two realsense cameras. |
Hi @schulz-bosch , how do you use LibRS SDK? |
@Nir-Az we build with important: we do not have libudev-dev installed as build dep, and we build libusb with "--disable-udev", because libudev is (afawk) GPL-2. the build environment and cmake flags have been identical in my tests. |
OK, that's an important input. |
Issue Description
Hello
do i need the kernel patches for that kernel version 5.10 ? Or what are the right patch files for that ?
I tried to use the following patch files (v2.50.0) but it didn't work
It was not able to find the cameras
The text was updated successfully, but these errors were encountered: