-
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
Does pre-build packages support Ubuntu 20.04 with linux version 5.11.0.43? #10288
Comments
It can run but is not stable during our using. Sometimes "rs2_pipeline_wait_for_frames - pipe:0x2326020 :Frame didn't arrive within 5000" occurred after running normally several hours. then can't get any device by calling ctx.query_devices()even though I reboot the computer。 |
Hi @hsyzhxy Support for kernel 5.11 was added in SDK 2.50.0 via code submitted by a RealSense user, as described at #9727 - the RealSense user who created the submission tested it with Ubuntu 20.04 and 5.11.0-34-generic Another RealSense user at #10207 (comment) who had Ubuntu OS freeze problems also then tried kernel 5.11.0-34-generic and found that it resolved their problem. If you continue to experience kernel related conflicts then there is the option of building librealsense from source code with the RSUSB backend method, which is not dependent on Linux versions or kernel versions and does not require patching. In regard to pre-built packages, #8787 details that SDK 2.45.0 added support for kernel 5.8 on Ubuntu 20.04 (Focal) but it was not clear whether that only applied to patching a source-code build or DKMS packages too. Currently at the time of writing this, the package distribution installation instructions only list official support up to kernel 5.4. https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md |
thanks a lot!how to build librealsense from source code with the RSUSB backend method?Is it https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md? |
The RSUSB process of building from source code is similar to the CMake build instructions in the link above but adds the build flag -DFORCE_RSUSB_BACKEND=true. Instructions for building with the RSUSB backend on a PC can be found at #6710 (comment) |
thanks! I have completed Building from source with the RSUSB backend method: I'll observe in next two days to see if the problem happen again. |
Thanks very much, @hsyzhxy - I look forward to your next update. Good luck! |
@MartyG-RealSense the erification is still ongoing. |
Step 3, installing the udev rules (the Ubuntu device handling rules), is required. Step 4, patching the kernel, is strongly recommended. If the kernel is not patched when performing this method of installing the SDK from source code then you will not have access to hardware metadata and may also experience other problems. Some have installed librealsense without patching the kernel, but I would definitely advise you to patch. |
Thanks very much @hsyzhxy for the update. As mentioned earlier in this discussion, if a kernel is not yet supported then you can bypass the kernel requirements with an RSUSB backend source code build, and if you need a kernel-based build then 5.11.0-34-generic is currently the most stable known 5.11 kernel to use with the SDK. |
Do you mean it's not necessary to run "./scripts/patch-realsense-ubuntu-lts.sh" with an RSUSB backend source code build by runnign "cmake ../ -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true"? |
That is correct, when using the RSUSB method you do not need to run the patch script. |
Unfortunately "rs2_pipeline_wait_for_frames - pipe:0x2326020 :Frame didn't arrive within 5000" occurred again. |
With an RSUSB build of librealsense, changing the kernel version should not make a difference as RSUSB bypasses the kernel. |
I have degraded the kernel version to 5.8, and build with "cmake ../ -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=false", and then make install succeeded。 Does SDK 2.0 v2.50.0 support LINUX kernel version 5.8? |
2 similar comments
I have degraded the kernel version to 5.8, and build with "cmake ../ -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=false", and then make install succeeded。 Does SDK 2.0 v2.50.0 support LINUX kernel version 5.8? |
I have degraded the kernel version to 5.8, and build with "cmake ../ -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=false", and then make install succeeded。 Does SDK 2.0 v2.50.0 support LINUX kernel version 5.8? |
Yes, the SDK officially supports kernel 5.8 when building from source code. |
But it returned “command not found” when I run “realsense-viewer“ |
If you use -DBUILD_GRAPHICAL_EXAMPLES=false in your CMake build instruction then it does not build the SDK's tools and examples that use OpenGL graphics, which includes the RealSense Viewer. |
Hi @hsyzhxy Do you require further assistance with this case, please? Thanks! |
no other question,thanks! |
Thanks very much @hsyzhxy for the update! As you do not require further assistance, I will close this case. Thanks again! |
Issue Description:
My system is Ubuntu 20.04,linux version 5.11.0.43
Camera Model is D415, Firmware Version is 05.12.10.00.
Is it suitable for using pre-build packages?
The text was updated successfully, but these errors were encountered: