Closed upc-ghy closed 9 months ago
Hi @upc-ghy Are you installing on a PC or on a computing board such as Raspberry Pi, please?
@MartyG-RealSense I am using a PC with a 1080Ti.
It is not clear why you would be experiencing the fatal: You need to specify a tag name error on a PC, as it usually occurs on computing devices such as Raspberry Pi.
Do you have the option of building librealsense from packages instead of source code, please? The packages have the kernel patch bundled inside them, so you do not need to run the ./scripts/patch-realsense-ubuntu-lts-hwe.sh patch script.
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md
@MartyG-RealSense Yes, I can install using this tutorial https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md without any errors. However, when I use the command "modinfo uvcvideo | grep 'version:'", I found that it does not contain the string "realsense".
modinfo uvcvideo | grep "version:"
version: 1.1.1
srcversion: B5BC32E2A05C003B6787C94
My Ubuntu 20.04 has a real-time kernel version of 5.15.76-rt53, and I'm not sure if it's related to the issue I'm experiencing.
There was a recent case of this problem with no RealSense string at https://github.com/IntelRealSense/librealsense/issues/12581 and my advice was that as the Clock Domain was showing as global time in the RealSense Viewer tool, their kernel was likely okay despite the absence of the RealSense string because if the kernel was not patched then the Clock Domain would show as system time instead.
However, there have been past problems with using real-time kernels with librealsense - as described by an Intel RealSense team member at https://github.com/IntelRealSense/librealsense/issues/2395#issuecomment-426536906 - so this could be the cause of your problem.
@MartyG-RealSense Thanks for your reply. I will test building librealsense from packages again, hoping it will work as you described.
@MartyG-RealSense
I just test building librealsense from packages again. I encountered the following problem this time.
I used command dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
to remove all realsense packages, referred to #11521 before reinstalling, but still encountered this problem.
sudo apt-get install librealsense2-dkms
RROR (dkms apport): kernel package linux-headers-5.15.76-rt53 is not supported
Error! Bad return status for module build on kernel: 5.15.76-rt53 (x86_64)
Consult /var/lib/dkms/librealsense2-dkms/1.3.24/build/make.log for more information.
dpkg: error processing package librealsense2-dkms (--configure):
installed librealsense2-dkms package post-installation script subprocess returned error exit status 10
Setting up librealsense2-utils:amd64 (2.54.2-0~realsense.10772) ...
Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
Errors were encountered while processing:
librealsense2-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
It is likely the realtime nature of this kernel version that is being used that is the problem, since kernel 5.15 is officially supported by librealsense via patch ./scripts/patch-realsense-ubuntu-lts-hwe.sh
If your project requires the realtime kernel and librealsense cannot work with this kernel with either a package or source code build then the remaining option for resolving it would be to build from source code with the flag -DFORCE_RSUSB_BACKEND=TRUE included in the CMake build instruction. An RSUSB = true build of librealsense bypasses the kernel and so is not dependent on Linux versions or kernel versions and does not require kernel patching.
@MartyG-RealSense Thank you for your reply, I will try to build from the source code.
Hi @upc-ghy Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
I followed the installation tutorial at https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md to install my librealsense, but encountered the following issues. Please help!
PC:Ubuntu 20.04, 1080Ti Camera: D435i
gcc -v
unmae -r
5.15.76-rt53
./scripts/patch-realsense-ubuntu-lts-hwe.sh