-
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
Failed installation with linux kernel 4.8.15 #2395
Comments
Hello @aPonza , we will look into this. |
I built it from source applying the patch following these instructions. |
Thank you for the help @ev-mp! I tried again after pulling the changes, and again got blocked at the script. I'm attaching the full output.txt. It's much better than not starting at all like last time, but still fails. I was hoping the realsense patch wouldn't touch already patched modules but it seems it is. Hopefully it will keep the preemption. I used default choices all the way down as is likely what was needed, but correct me if this wasn't the case. Some (Boost?) warnings seem to lead to the error, which comes when installing the built modules. The relevant dmesg returns:
Do you face the same error? |
Hello @aPonza , sorry for the intermittent response, the referred patch applies correctly to Ubuntu kernel as well as unmodified 4.8.15. Can you provide the |
Sure! the_dot_config.txt |
Well, I think I've figured it now: the RTPREEMPT patch that converts a regular linux to a "real-time" makes the kernel incompatible with regular modules, as it replaces the core primitives - mutexes, spinlocks with new constructs. Due to the real-time patch distribution form it is essential to have the librealsense kernel patches to be applied together with the rt patch before building the drivers.
I choose the former path and followed the guide to make it work:
I also applied the relevant librealsense patches (after copying them into a proper location)
After that continued according to the original instructions to build ind install the rt kernel
After restarting and loading the rt kernel the video driver with librealsense patches worked properly with D400 and the latest SDK. To summarize, the core issue is the distribution form that was selected by kernel.org to distribute rt patch - due to its pervasive nature requiring rebuild the whole kernel from scratch. Imo it should have been distributed as debian packages, along with the modified sources to allow integration of additional 3rd-party patches as oit happens with Librealsense. |
Thanks! Everything seems to work from a superficial test. The only errors/warnings were:
ERROR (dkms apport): kernel package linux-headers-4.8.15-rt10 is not supported Error! Bad return status for module build on kernel: 4.8.15-rt10 (x86_64) makes sense, it's stated in the other guide that it's not supported, and you reiterated it yourself; W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915 W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915 the second one doesn't apply, but I do have a Kaby Lake processor... the firmware is here, and I installed following this answer;
03/10 12:26:37,299 WARNING [139929276324416] (sensor.cpp:338) Unregistered Media formats : [ UYVY ]; Supported: [ ] happens systematically at application startup, but it doesn't seem worth worrying over (?) If everything seems normal to you as well, then this can be closed. Thanks for the help! |
It is not clear from the warning which dkms it refers to. anyhow, I'd suggest to remove librealsense dkms if installed since it is not verified to work with vanilla kernel in the first place, let alone real-time patch. The rest seem normal. |
I still had the aptitude librealsense2-dkms installed from when I was trying the other kernel, maybe I had marked it as manually installed by mistake, now that's gone. This is a screenshot. |
The patches are in place. You can tell it by reading "HW Timestamp" parameter that confirms metadata retrieval. So far for integrating librealsense patches with a 3rd party patches. The thing I find weird that in the attached image in place of RGB stream there was a snapshot of the viewer taken from a different POV with a recursive view :), though as if the RGB sensor was detached and physically moved outside the camera's case.... |
No no, the camera is all in one piece: I did say that is a screen-shot :) after all, the point of buying pre-built stereo cameras is also for their stable baseline, isn't it? Thanks for the help in setting everything up, mr. Raikhel! |
Hello @aPonza , I'm glad everything is back on track. |
Issue Description
I was following the installation guide and at the step
./scripts/patch-realsense-ubuntu-lts.sh
I end up having this output:The main problem could be I have a realtime patched kernel and limited availability of those as well, as I need to be compatible with librealsense and libfranka, a third party library for a robotic arm. This means the alternative kernels I could use are 4.16.18-rt12 or 4.13.13-rt5 with increasingly worsening performance results.
Is it possible to continue the installation process? I can't find mentions of 16.04.5 not being supported. I couldn't also find similar issues dealing with a beforehand patched kernel.
The text was updated successfully, but these errors were encountered: