Skip to content
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

Installation Failure : patching file drivers/media/usb/uvc/uvcvideo.h Hunk #1 FAILED at 164. #1900

Closed
angeltop opened this issue Jun 18, 2018 · 6 comments
Assignees

Comments

@angeltop
Copy link


Required Info
Camera Model SR300 / D400
Firmware Version
Operating System & Version Linux (Ubuntu 16.04)
Kernel Version (Linux Only) 4.13.0-45
Platform PC.
SDK Version 2
Language C

Issue Description

After following the installation instructions found at https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
for my Ubuntu 16.04 PC it failed to patch the uvcvideo module.

The first that I could not do was the specific to Ubuntu 16 command:

Ubuntu 16:
sudo apt-get install cmake3 libglfw3-dev

It could not find cmake3, I have cmake I hope that is good enough.

And then it failed in the command:

./scripts/patch-realsense-ubuntu-lts.sh

Output:

Package required libusb-1.0-0-dev: - found
Package required libssl-dev: - found
Cloning into './ubuntu-xenial-hwe'...
remote: Counting objects: 67939, done.
remote: Compressing objects: 100% (62201/62201), done.
remote: Total 67939 (delta 7416), reused 18193 (delta 4648)
Receiving objects: 100% (67939/67939), 179.02 MiB | 3.59 MiB/s, done.
Resolving deltas: 100% (7416/7416), done.
Checking connectivity... done.
Checking out files: 100% (64412/64412), done.
Applying realsense-uvc patch
patching file drivers/media/usb/uvc/uvc_driver.c
patching file drivers/media/usb/uvc/uvcvideo.h
Hunk #1 succeeded at 153 (offset 1 line).
patching file drivers/media/v4l2-core/v4l2-ioctl.c
Hunk #1 succeeded at 1246 (offset 7 lines).
patching file include/uapi/linux/videodev2.h
Hunk #1 succeeded at 668 (offset 6 lines).
Applying realsense-metadata patch
patching file drivers/media/usb/uvc/uvc_driver.c
Hunk #1 succeeded at 2771 (offset 29 lines).
patching file drivers/media/usb/uvc/uvc_video.c
Hunk #1 succeeded at 1226 (offset 4 lines).
Hunk #2 succeeded at 1264 (offset 4 lines).
patching file drivers/media/usb/uvc/uvcvideo.h
Hunk #1 FAILED at 164.
Hunk #2 succeeded at 208 (offset 23 lines).
1 out of 2 hunks FAILED -- saving rejects to file drivers/media/usb/uvc/uvcvideo.h.rej

Should I use an older commit?

@abecciu
Copy link

abecciu commented Jun 19, 2018

Ubuntu 16.04 recently updated the version of the HWE kernel to 4.15. That's why the patch fails. I manually downloaded the sources for the latest 4.13 HWE and manually applied the patches. Then I modified the script to skip downloading kernel sources and applying patches.

@RealSense-Customer-Engineering
Copy link
Collaborator

[Realsense Customer Engineering Team Comment]
thanks for your help @abecciu.

hi @angeltop,
would like to know if abecciu's suggestion solve your issue?

@TonyFaith
Copy link

@abecciu would you please give more details about "downloaded the sources for the latest 4.13 HWE and manually applied the patches" and "modified the script to skip downloading kernel sources and applying patches" , thanks a lot!

@angeltop
Copy link
Author

Dear @abecciu thank you very much for your reply. I would really appreciated, if you could give some instructions on how I could do it manually for 4.13 and the modified lines of the script "scripts/patch-realsense-ubuntu-lts.sh". Otherwise, I will wait a few days or weeks for kernel and uvcvideo patch to be at the same version.

@ev-mp
Copy link
Collaborator

ev-mp commented Jun 26, 2018

@angeltop ,@TonyFaith,
The patches for Ubuntu HWE with 4.13 have been updated in the latest version available on github.
See the PR link posted above for details.

Please give it a try and update.

@angeltop
Copy link
Author

@ev-mp thank you for the update. I was able to patch uvcvideo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants