librealsense: SDK installation problem

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click “Preview” above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven’t followed any of the suggestions above 😃


Required Info
Camera Model D400
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) 4.15.0
Platform PC
SDK Version 2.17.1. }
Language C
Segment Robot

Issue Description

Hello, I install the realsense 2.17.1 according to the manual installation guide. When I run: ./scripts/patch-realsense-ubuntu-lts.sh, a fail information occur, the total output is below:

Package required libusb-1.0-0-dev:  - found
Package required libssl-dev:  - found
Create patches workspace in ubuntu-xenial-hwe folder

The kernel has modified files:
	modified:   drivers/media/usb/uvc/Makefile
	modified:   drivers/media/usb/uvc/uvc_driver.c
	modified:   drivers/media/v4l2-core/v4l2-ioctl.c
	modified:   include/uapi/linux/videodev2.h
Proceeding will reset all local kernel changes. Press 'n' within 10 seconds to abort the operation
Do you want to proceed? [Y/n]Y
Update the folder content with the latest from mainline branch
remote: Total 0 (delta 0), reused 0 (delta 0)
From git://kernel.ubuntu.com/ubuntu/ubuntu-xenial
 * branch            hwe        -> FETCH_HEAD
Resetting local changes in ubuntu-xenial-hwe folder
 HEAD is now at 50ec9ec UBUNTU: Ubuntu-hwe-4.15.0-126.129~16.04.1
Applying realsense-uvc patch
patching file drivers/media/usb/uvc/Makefile
patching file drivers/media/usb/uvc/uvc_driver.c
Hunk #1 succeeded at 208 with fuzz 2 (offset 5 lines).
patching file drivers/media/usb/uvc/uvcvideo.h
Hunk #1 FAILED at 153.
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvcvideo.h.rej
patching file drivers/media/v4l2-core/v4l2-ioctl.c
Hunk #1 succeeded at 1248 (offset 2 lines).
patching file include/uapi/linux/videodev2.h
Hunk #1 succeeded at 680 (offset 12 lines).

I ignore it and keep install the librealsense. After installation, I test the installation by realsense-viewer. some warning occur:

 26/11 22:43:59,800 WARNING [140147348924160] (sensor.cpp:338) Unregistered Media formats : [ UYVY ]; Supported: [ ]
 26/11 22:43:59,809 WARNING [140147348924160] (backend-v4l2.cpp:1248) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
 26/11 22:43:59,810 WARNING [140147348924160] (sensor.cpp:338) Unregistered Media formats : [ RW16 ]; Supported: [ ]
 26/11 22:44:04,857 WARNING [140147348924160] (types.cpp:57) set_pu(id=9) failed! Last Error: Input/output error
 26/11 22:44:04,857 WARNING [140147348924160] (sensor.cpp:722) Exception was thrown when inspecting properties of a sensor
 26/11 22:44:04,857 ERROR [140147348924160] (types.h:214) xioctl(VIDIOC_G_CTRL) failed Last Error: Invalid argument
 26/11 22:44:04,858 WARNING [140147348924160] (sensor.cpp:722) Exception was thrown when inspecting properties of a sensor

I check on the Motion module, an error occur:Motion Module failure, the terminal in which realsense-viewer run output:

 26/11 22:45:06,480 WARNING [140147215537920] (ds5-timestamp.cpp:174) HID timestamp not found! please apply HID patch.

Then I check on the RGB Camera, the terminal in which realsense-viewer run output:

26/11 22:53:21,611 WARNING [140146921957120] (ds5-timestamp.cpp:64) UVC metadata payloads not available. Please refer to installation chapter for details.

Then I check on the Stereo Module, the terminal in which realsense-viewer run output:

26/11 22:54:33,046 WARNING [140146913564416] (ds5-timestamp.cpp:64) UVC metadata payloads not available. Please refer to installation chapter for details.

Then I check off the Motion Module, the terminal in which realsense-viewer run output:

 26/11 22:55:24,067 ERROR [140147638209152] (types.h:214) Failed to enable_sensor /sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.5/0003:8086:0B3A.0003/HID-SENSOR-2000e1.3.auto/enable_sensor Last Error: Permission denied

Could you please provide some advice to solve these issues? Thanks a lot.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23

Most upvoted comments

patching file drivers/media/usb/uvc/uvcvideo.h Hunk #1 FAILED at 153. 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvcvideo.h.rej

We have the same issue and we find out that you need to change scripts/realsense-camera-formats-xenial-hwe.patch in order to match a recent change of uvcvideo.h

this is our verson realsense-camera-formats-xenial-hwe.patch.txt but if it somehow doesn’t work you can check your uvcvideo.h and modify the patch file accordingly