-
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
Request to push patches to main line Linux kernel sources #9806
Comments
Hi @mlederhi At #5212 (comment) there is a discussion of the advantages and disadvantages of using an RSUSB installation of librealsense (also known as libuvc backend) versus a patch-based installation. A quote from that information regarding a patch-based installation that may be relevant to your question is as follows: "All kernel patches should eventually get upstreamed into Linux or abandoned. From the user's perspective the main obstacle in accepting the kernel patch model is the deployment scheme that requires certain engineering skills level. We address this by by wrapping and redistributing the patches with DKMS Debian package, at least for Ubuntu LTS kernels". Installations that use the RSUSB Backend method are not dependent on Linux versions or kernel versions and do not require patching. As highlighted in #5212 (comment) though, RSUSB does have disadvantages that may make it unsuited for some projects. |
Hi @mlederhi Do you require further assistance with this case, please? Thanks! |
Hello, thanks for your reply. I'm currently busy with other stuff, but I have read in different posts, that patching should not be required with recent Kernels anymore. I have Kernel version
but when I run
I receive
I have installed the udev rules, and when plugging the camera in I can see in dmesg the following output
I can even watch the video streams for example with "Qt V4L2 test utility" (but only once for each /dev/videoX device, then I have to unplug and replug the camera again). What Kernel options are actually required for using the cameras? Maybe I am missing something. |
My understanding is that the main reason in the present-day for patching the kernel when building the librealsense SDK from source code is to add support for hardware metadata and so is worth doing for that reason regardless of the kernel's age if you require access to metadata and are building the librealsense SDK from source code without using the RSUSB method. Metadata support should be already included if building librealsense from the packages on the distribution_linux.md instructions page linked to below, or from source code using the RSUSB method (which does not require patching). https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md Currently, librealsense has support for up to Kernel 5.8 officially at the time of writing this, though newer kernels may still work but with unpredictable effects in terms of stability. |
I have upgraded the firmware of the camera on a Windows computer and now RealSense viewer can connect on my Linux computer. I still have to unplug the camera because only the first stream of each /dev/videoX device works, but at least it's a progress. I'll close the ticket now. |
Thanks very much @mlederhi for the update - it's great to hear that you made progress! |
Intel RealSense team, please consider getting your changes back into the mainline Linux kernel. It is really cumbersome if everybody has to do it on it's own and every time again when the upstream kernel sources change. It would be really a plus for a product if it works out of the box.
Sincerely,
Martin Lederhilger
DS Automotion GmbH
Austria
The text was updated successfully, but these errors were encountered: