-
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 Patches Ubuntu #11050
Comments
Hi @lantianhaohh Whilst you can build librealsense from source code without having patched the kernel or without using DFORCE_RSUSB_BACKEND=TRUE to bypass the kernel, support for camera hardware metadata will not be included and frame timestamps will be based on the computer's system time clock instead. This may not affect you negatively if your project does not rely on use of hardware timestamps. More information about patching for hardware metadata support can be found at the link below. https://dev.intelrealsense.com/docs/frame-metadata#metadata-support-for-intel-realsense-devices |
Hi @MartyG-RealSense , does the kernel patch support metadata and hardware timestamps for camera hardware?So if the kernel can be patched, will the camera's data communication in RK3588 be more stable?For the information printed above log, the kernel version adaptation problem, how to modify. Thank you |
Yes, when building from source code, patching the kernel adds support for hardware timestamps. The kernel must be one that is supported by the patch script though. With a source code build it is always preferable to patch the kernel if possible, except for an RSUSB Backend type source build where patching is not required. I would strongly recommend an RSUSB build if you are unable to use a kernel supported by the RealSense SDK. If you would prefer to explore kernel modification then a RealSense team member provides advice at #3292 (comment) |
Hi @lantianhaohh Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense Hello, will your team come up with a kernel patch for the RK series?Thanks! |
I have referred your question about a kernel patch for RK devices to my Intel RealSense colleagues and will update you when I have information. Thanks very much for your patience! |
@MartyG-RealSense Hello,thank you very much for your help and support |
Hi again @lantianhaohh Do you have knowledge of how to compile a Linux kernel from source code please, like in the guide at the link below. https://www.linux.com/topic/desktop/how-compile-linux-kernel-0/ |
@MartyG-RealSense Hello, you just sent the link guide, I finished reading, watching the tutorial to do it, I compiled the kernel from source code should have no problem |
Thanks very much @lantianhaohh - if you require further assistance, please do let me know! |
Hi @MartyG-RealSense ,Although I don't know much about compiling the Linux kernel from source, it should be fine to watch the tutorial |
1 similar comment
Hi @MartyG-RealSense ,Although I don't know much about compiling the Linux kernel from source, it should be fine to watch the tutorial |
I have received further advice about your case from my colleagues. They recommend contacting the vendor of your RK device for the source code of your 5.10 kernel, as according to their experience there may be differences between the RK source code of your device and the source code at the link that I provided above. They added however that kernel 5.10 might already include most of the kernel patches, so you could certainly try compiling librealsense from source using the native backend installation method, which is used in the librealsense build when setting the build flag -DFORCE_RSUSB_BACKEND=FALSE instead of setting RSUSB to True. After the building of librealsense is complete, you could test it with the example program rs-depth which is not dependent on OpenGL graphics. https://github.com/IntelRealSense/librealsense/tree/master/examples/C/depth You could also test it with the example program rs-hello-realsense which similarly does not use OpenGL graphics. https://github.com/IntelRealSense/librealsense/tree/master/examples/hello-realsense My colleagues also provided an rs-capture C++ script in the attached .txt file that could be built to check whether metadata can be read out. If the metadata is incomplete then they advise you to get the RK kernel source code and provide the list of kernel files below. /drivers/iio/accel/hid-sensor-accel-3d.c Thanks very much again for your patience, @lantianhaohh |
Hi @lantianhaohh Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
have followed the installed steps described at https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md and am now stuck on running step 4, "./scripts/patch-realsense-ubuntu-lts.sh"
Is this script important and can I continue building realsense SDK?
Thanks
The text was updated successfully, but these errors were encountered: