Packages for Debian systems
Would it be possible to add pre-built packages for Debian? You already have support for Ubuntu which is very similar.
While Ubuntu is more popular on the desktop, Debian is still used a lot and is a base for hundreds of other distributions.
I tried using the Ubuntu Xenial packages on my Debian testing with kernel 4.18, but I got errors about how my kernel needs to be patched (I wasn't very hopeful of that working anyway).
Hello @mkollaro , the Debian packages we maintain for Ubuntu should be compatible with Debian distribution, though the testing is done with Ubuntu exclusively.
Can you describe what packages you were not able to install and provide the installation logs? The Debian packages are intended to be used not only by Ubuntu, but by other Debian-based distributions as well, so in case there is something missing it ought to be corrected.
If the failure is isolated to DKMS package (kernel patches), as indicated in your post, then using a compatible kernel version is essential. Librealsense DKMS provides for Ubuntu LTS kernels, which currently include v4[4,8,10,13,15] versions.
Kernel 4.18 is not on Ubuntu list yet, and we don't know when and if it will be added. On the other hand we provide patches for kernel 4.16. There was a major rework in kernel media tree between 4.15 and 4.16, but not from 4.16 to 4.18, so I believe adjusting these patches to Debian build should be quite straight-forward.
[Realsense Customer Engineering Team Comment] Hi mkollaro,
Wonder if you have followed ev-mp's suggestion, and do you still have need help?
Thanks!
Sorry for the late reply, the notification got lost in some pile of email.
I was able to install all packages, no problem there. The issue is that when I run realsense-viewer and connect a camera (SR300), I get error messages about missing kernel patches. This time I was using the packages from Ubuntu Bionic and kernel 4.16.0-1-amd64. I'll try to figure out how to get the kernel 4.15. Regardless, it would be nice if the recent kernel version in Debian testing was supported.
25/10 14:42:59,140 WARNING [139726943282944] (backend-v4l2.cpp:1248) Pixel format 435a4e49-b602-480f-978c-e4e88ae likely requires patch for fourcc code INZC!
25/10 14:42:59,140 WARNING [139726943282944] (backend-v4l2.cpp:1248) Pixel format 52494150-8536-4841-b6bf-8fc6ffb likely requires patch for fourcc code PAIR!
25/10 14:42:59,140 WARNING [139726943282944] (sensor.cpp:338) Unregistered Media formats : [ INZC PAIR Y10 YUYV ]; Supported: [ ]
25/10 14:43:03,873 ERROR [139726908466944] (types.h:179) xioctl(VIDIOC_DQBUF) failed for metadata fd: 15 Last Error: No such device
25/10 14:43:03,874 ERROR [139726908466944] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for metadata fd: 15 Last Error: No such device
25/10 14:43:03,874 ERROR [139726814177024] (types.h:179) xioctl(VIDIOC_DQBUF) failed for metadata fd: 19 Last Error: No such device
25/10 14:43:03,874 ERROR [139726814177024] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for metadata fd: 19 Last Error: No such device
25/10 14:43:04,151 ERROR [139727202069184] (types.h:179) xioctl(VIDIOC_STREAMOFF) failed for buf_type=1 Last Error: No such device
25/10 14:43:04,152 ERROR [139727202069184] (sensor.cpp:257) An error has occurred while stop_streaming()!
25/10 14:43:04,152 ERROR [139727202069184] (types.h:179) xioctl(VIDIOC_STREAMOFF) failed for buf_type=1 Last Error: No such device
25/10 14:43:04,152 ERROR [139727202069184] (sensor.cpp:257) An error has occurred while stop_streaming()!
[Realsense Customer Engineering Team Comment] Hi mkollaro,
Glad to hear that it works with kernel 4.16. We are going to close this one if there is nothing else.
Thanks!
Well, the package installs but the camera doesn't work. I get the above mentioned errors when I try to view the depth data (RGB works). I can't view the depth data in other applications either.
Hi @mkollaro The failure is not related to missing pixel-formats. INZC and PAIR are not used by librealsense, and the actual depth formats are part of the kernel since 4.15. The error seem something to do with recent changes in the way Linux handles UVC metadata. @ev-mp, are you aware of such issues? I think Ubuntu Bionic comes with 4.15, so if you select "Advanced Options" in your grub menu, it is likely it is still in there.
[Realsense Customer Engineering Team Comment] Ticket being closed due to inactivity for 30+ days