librealsense: DKMS failure on kernel 5.0.0-23-generic
Required Info | |
---|---|
Camera Model | D400 |
Firmware Version | |
Operating System & Version | Linux Ubuntu 18 |
Kernel Version (Linux Only) | 5.0.0-23-generic |
Platform | PC |
SDK Version | 2.25 |
Language | |
Segment |
Issue Description
The installation of 2.25 fails on ubuntu 18.04 5.0.0-23-generic:
sudo apt install librealsense2*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'librealsense2-dbg' for glob 'librealsense2*'
Note, selecting 'librealsense2-dev' for glob 'librealsense2*'
Note, selecting 'librealsense2' for glob 'librealsense2*'
Note, selecting 'librealsense2-gl-dbg' for glob 'librealsense2*'
Note, selecting 'librealsense2-gl-dev' for glob 'librealsense2*'
Note, selecting 'librealsense2-gl' for glob 'librealsense2*'
Note, selecting 'librealsense2-utils' for glob 'librealsense2*'
Note, selecting 'librealsense2-dkms' for glob 'librealsense2*'
Note, selecting 'librealsense2-udev-rules' for glob 'librealsense2*'
The following NEW packages will be installed:
librealsense2 librealsense2-dbg librealsense2-dev librealsense2-dkms librealsense2-gl librealsense2-gl-dbg librealsense2-gl-dev
librealsense2-udev-rules librealsense2-utils
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 4122 kB/114 MB of archives.
After this operation, 172 MB of additional disk space will be used.
Get:1 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic/main amd64 librealsense2-dkms all 1.3.6-0ubuntu0 [4122 kB]
Fetched 4122 kB in 4s (1128 kB/s)
Selecting previously unselected package librealsense2:amd64.
(Reading database ... 282600 files and directories currently installed.)
Preparing to unpack .../0-librealsense2_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-dbg:amd64.
Preparing to unpack .../1-librealsense2-dbg_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-dbg:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-dev:amd64.
Preparing to unpack .../2-librealsense2-dev_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-dev:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-dkms.
Preparing to unpack .../3-librealsense2-dkms_1.3.6-0ubuntu0_all.deb ...
Unpacking librealsense2-dkms (1.3.6-0ubuntu0) ...
Selecting previously unselected package librealsense2-gl:amd64.
Preparing to unpack .../4-librealsense2-gl_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-gl:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-gl-dbg:amd64.
Preparing to unpack .../5-librealsense2-gl-dbg_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-gl-dbg:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-gl-dev:amd64.
Preparing to unpack .../6-librealsense2-gl-dev_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-gl-dev:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-udev-rules:amd64.
Preparing to unpack .../7-librealsense2-udev-rules_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-udev-rules:amd64 (2.25.0-0~realsense0.1332) ...
Selecting previously unselected package librealsense2-utils:amd64.
Preparing to unpack .../8-librealsense2-utils_2.25.0-0~realsense0.1332_amd64.deb ...
Unpacking librealsense2-utils:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2-udev-rules:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2-dkms (1.3.6-0ubuntu0) ...
Loading new librealsense2-dkms-1.3.6 DKMS files...
Building for 5.0.0-23-generic
Building initial module for 5.0.0-23-generic
Error! Bad return status for module build on kernel: 5.0.0-23-generic (x86_64)
Consult /var/lib/dkms/librealsense2-dkms/1.3.6/build/make.log for more information.
Loading the modified modules into kernel...modprobe: FATAL: Module hid_sensor_accel_3d is in use.
Current status:
librealsense2-dkms, 1.3.6: added
nvidia, 390.116, 4.15.0-55-generic, x86_64: installed
nvidia, 390.116, 4.18.0-25-generic, x86_64: installed
nvidia, 390.116, 5.0.0-23-generic, x86_64: installed
mod: videodev
mod: uvcvideo version: 1.1.1
mod: hid_sensor_gyro_3d
mod: hid_sensor_accel_3d
Setting up librealsense2-dev:amd64 (2.25.0-0~realsense0.1332) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up librealsense2-dbg:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2-gl:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2-gl-dev:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2-gl-dbg:amd64 (2.25.0-0~realsense0.1332) ...
Setting up librealsense2-utils:amd64 (2.25.0-0~realsense0.1332) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
The contents of make.log:
DKMS make.log for librealsense2-dkms-1.3.6 for kernel 5.0.0-23-generic (x86_64)
di 6 aug 2019 15:28:51 CEST
make: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
arch/x86/Makefile:146: CONFIG_X86_X32 enabled but no binutils support
scripts/Makefile.build:42: /var/lib/dkms/librealsense2-dkms/1.3.6/build/5.0.0/drivers/media/usb/uvc/Makefile: No such file or directory
make[1]: *** No rule to make target '/var/lib/dkms/librealsense2-dkms/1.3.6/build/5.0.0/drivers/media/usb/uvc/Makefile'. Stop.
Makefile:1778: recipe for target 'uvcvideo.ko' failed
make: *** [uvcvideo.ko] Error 2
make: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 24 (8 by maintainers)
Hi, this is a pretty major issue as anyone who runs the latest LTS and keeps it up to date will now be broken!
@dapi hello, DKMS package currently supports LTS kernels up to 4.18 for Ubuntu 18. Support for v5.0 is yet to be provided. Currently you need install the kernel patches for v5.0 with the developer’s script -
Adding to @fnoop’s comment: With the latest, clean 18.04 LTS one is now completely lost, cmp #4669 (beside manual downgrading the kernel of course).
For me the camera itself works fine (I get images etc), but the advanced features don’t work. Like the hardware clock.
@ev-mp I can confirm that the DKMS package installs without errors with kernel 5.3.0-40-generic.
However, the advanced metadata is not available out of the box after this, the realsense viewer gives me:
25/02 12:36:36,898 WARNING [140498295576320] (ds5-timestamp.cpp:76) UVC metadata payloads not available. Please refer to the installation chapter for details
Among others. I guess I’ll open a new issue for this.@MoBaT this issue is about the dkms package giving errors… Suggest you open another issue as well.
DKMS package with kernels 5.0 and 5.3 support is available for download. FYI
Same problem on
kernel 5.0.0-31-generic
:Yeah, indeed. I just tried with another system and with -31 the problem is there again. I’m starting to doubt if it was ever fixed, as the system I tested this with had somewhat messed up config to start with…
I have reopened the issue, though at the moment I lag the time to keep track of everything.
Nope, I didn’t uninstall 5.0 kernel.