-
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
Kernel Patch not working on ubuntu 5.0.0-23-generic #13052
Comments
Hi @devkrish23 Bionic is Ubuntu 18.04, which is still supported by the librealsense SDK. It is possible to use a source code build of the librealsense SDK without applying a kernel patch script, though there may be unpredictable consequences in regards to stability. Alternartively, instead of building 2.38.1 with git clone, you could instead download a zipped source code folder of 2.38.1, extract it and build from that with CMake. https://github.com/IntelRealSense/librealsense/releases/tag/v2.38.1 If the flag -DFORCE_RSUSB_BACKEND=TRUE is included in the CMake build instruction then librealsense will bypass the kernel, avoiding the need to apply a patch script, and it will also not be dependent on a particular Linux version. Instructions for an RSUSB build can be found at #9931 (comment) |
Hi @MartyG-RealSense, thank you for the response. So, we are using Ubuntu 18.04.5 LTS that was shipped with 5.4 kernel. Since, this kernel was not supported by realsense we had to downgrade our kernel version to 5.0.0-23-generic. We tried using the camera (D435I x2), however we were experiencing a lot of issues, such as
Hence we resorted to patching our system as instructed in librealsense documentation and it worked fine few years back. But now, when i am trying to patch the system, it fails at the following line |
Is it possible for you to install librealsense from packages instead of building from source code? A package build of the SDK supports kernel 5.4 and you do not need to apply a patch script as the kernel patch is bundled within the packages. https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md |
Hi @devkrish23 Do you require further assistance with this case, please? Thanks! |
Hello, i am testing this solution with 5.4 kernel. Will update you in a day or two. Thank you! |
You are very welcome. I look forward to your next report. Good luck! |
I did try your solution and started a fresh ubuntu install 18.0.4 with 5.4.0-150 kernel as mentioned in https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md |
Your system's setup looks correct and appropriate for librealsense 2.38.1 (Ubuntu 18.04, kernel 5.4, firmware 5.12.7.100). Have you tried the suggestion earlier in this discussion at #13052 (comment) to build librealsense from source code with RSUSB = true in order to test whether the kernel is a factor when a failure occurs, since an RSUSB build of librealsense bypasses the kernel and does not require a patch. |
My new ubuntu 18.04 machine has following specifications: |
A couple of possible paths that you could consider if an RSUSB = true source code build of librealsense is not suitable for your project are:
|
Hi @devkrish23 Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Yes, I am done with the testing. Putting 200 ms sleep between camera captures worked for me on latest 5.4 kernel and camera firmware version 5.12.100. |
That's excellent news, @devkrish23 - thanks very much for the update and the details of what worked for you! |
Issue Description
I am trying to patch the realsense on ubuntu platform. However i am facing issues with the bionic repo, the support for bionic doesn't seem to exists anymore.
Step1:
git clone https://github.com/IntelRealSense/librealsense.git
Step2:
git checkout v2.38.1
Step3:
sudo apt install libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev at
Step4:
./scripts/setup_udev_rules.sh
step5: Apply patch kernel modules
./scripts/patch-realsense-ubuntu-lts.sh
Error:
After checking more, it seems support for bionic has been suspended and i was not able to find this repo; https://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git/'
has this migrated somewhere else or is there any workaround?
The text was updated successfully, but these errors were encountered: