Skip to content
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

Closed
hsyzhxy opened this issue Mar 4, 2022 · 25 comments
Closed

Comments

@hsyzhxy
Copy link

hsyzhxy commented Mar 4, 2022


Required Info
Camera Model {D415 }
Firmware Version (05.12.10.00)
Operating System & Version Linux (Ubuntu 20.04)
Kernel Version (Linux Only) (5.11.0-38-generic)
Platform NUC ..
SDK Version { librealsense2.so.2.50 }
Language {C++ }
Segment {others }

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?

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 4, 2022

image

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 4, 2022

I found the following information, it means linux version 5.11.0.43 is still not supported by Intel® RealSense™ SDK 2.0 (v2.50.0?

image

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 4, 2022

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。

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 4, 2022

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

image

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 6, 2022

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?

@MartyG-RealSense
Copy link
Collaborator

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)

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 7, 2022

thanks! I have completed Building from source with the RSUSB backend method:
"cmake ../ -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true"

I'll observe in next two days to see if the problem happen again.

@MartyG-RealSense
Copy link
Collaborator

Thanks very much, @hsyzhxy - I look forward to your next update. Good luck!

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 9, 2022

@MartyG-RealSense the erification is still ongoing.
Now I‘m’ uncertain of some items in instructions https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md.
Is it necessary to execute step1-4 as below? I executed step1-2, but didn't run step2-3. Is there any effect on it?

image

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 9, 2022

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.

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 10, 2022

I was amazed to find my Linux kernel is now 5.13! I run “”sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade“ follow
image

now ./scripts/patch-realsense-ubuntu-lts.sh does't support 5.13 yet.

@MartyG-RealSense
Copy link
Collaborator

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.

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 10, 2022

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"?

@MartyG-RealSense
Copy link
Collaborator

That is correct, when using the RSUSB method you do not need to run the patch script.

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 11, 2022

Unfortunately "rs2_pipeline_wait_for_frames - pipe:0x2326020 :Frame didn't arrive within 5000" occurred again.
I I'm going to downgrade the Linux kernel to 5.4

@MartyG-RealSense
Copy link
Collaborator

With an RSUSB build of librealsense, changing the kernel version should not make a difference as RSUSB bypasses the kernel.

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 15, 2022

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
@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 15, 2022

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?

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 15, 2022

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?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 15, 2022

Yes, the SDK officially supports kernel 5.8 when building from source code.

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 15, 2022

But it returned “command not found” when I run “realsense-viewer“

@MartyG-RealSense
Copy link
Collaborator

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.

@MartyG-RealSense
Copy link
Collaborator

Hi @hsyzhxy Do you require further assistance with this case, please? Thanks!

@hsyzhxy
Copy link
Author

hsyzhxy commented Mar 23, 2022

no other question,thanks!

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @hsyzhxy for the update! As you do not require further assistance, I will close this case. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants