IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.6k stars 4.83k forks source link

Per-frame metadata is enabled for Accel but not Gyro #5710

Closed ruffsl closed 4 years ago

ruffsl commented 4 years ago
Required Info
Camera Model D435i
Firmware Version 05.12.02.100
Operating System & Version Linux (Ubuntu 18.04)
Kernel Version (Linux Only) 4.20.4-042004-generic
Platform PC amd64
SDK Version 2.32.1 RELEASE (deb)
Segment Robot

Issue Description

I'm trying to verify that the clock domain for the accelerometer and gyro are both Global Time. However, with current release, it seems that only the gyro has faltered to System Time:

image

This error message reports:

Per-frame metadata is not enabled at the OS level! Please follow the installation guide for the details.

I presume the message is referencing this document:

https://github.com/IntelRealSense/librealsense/blob/master/doc/frame_metadata.md#metadata-support-for-intel-realsense-devices

However, all other metadata streams seem to correctly display a Global Time clock domain:

73110217-7110ff80-3eba-11ea-9f77-05044060e4cc

What could cause this inconsistency? I've been able to replicate the exact issue on two different ubuntu PCs, two different D435i devices, as well as building from source as of 83f952a .

FYI: versions of debian package used:

$ apt list --installed librealsense2*
Listing... Done
librealsense2/bionic,now 2.32.1-0~realsense0.1913 amd64 [installed,automatic]
librealsense2-dkms/bionic,now 1.3.12-0ubuntu1 all [installed]
librealsense2-gl/bionic,now 2.32.1-0~realsense0.1913 amd64 [installed,automatic]
librealsense2-udev-rules/bionic,now 2.32.1-0~realsense0.1913 amd64 [installed,automatic]
librealsense2-utils/bionic,now 2.32.1-0~realsense0.1913 amd64 [installed]

Second sample device without latest firmware:

Screenshot from 2020-01-24 15-19-03

ev-mp commented 4 years ago

@ruffsl hello, The difference in timestamp domains for gyro and accel is rooted in kernel inconsistency and requires kernel patch to rectify. The SDK provides the patches suites for Ubuntu LTS kernels, and v4.20 is not on the list. You can switch to LTS kernel and have the kernels patches applied manually/with DKMS , or, you can port the kernel patches to the specific kernel you're using (imo patches for 4.18 are closest to origin) Duplicate of #3980

ruffsl commented 4 years ago

Ok, it wasn't obvious to me that at first, that installation of the DKMS deb packages and manually patching of the LTS kernel where both required simultaneously. I've switched back to the LTS kernel, and applied the kernel patch via the repo provided patch script, however rebooting after the patch, I'm still encountering the same issue.

$ sudo apt-get --only-upgrade install librealsense2-utils librealsense2-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
librealsense2-dkms is already the newest version (1.3.12-0ubuntu1).
librealsense2-utils is already the newest version (2.32.1-0~realsense0.1913).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

$ uname -a
Linux dox 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ realsense-viewer 
 26/01 13:16:41,438 WARNING [140269806679808] (types.cpp:49) set_pu(id=9) failed! Last Error: Input/output error
 26/01 13:16:41,439 WARNING [140269806679808] (sensor.cpp:630) Exception was thrown when inspecting Raw RGB Camera property Controls white balance of color image. Setting any value will disable auto white balance
 26/01 13:16:56,647 WARNING [140270577784704] (types.cpp:49) Accel Sensitivity:hwmon command 0x4f failed. Error type: No data to return (-21).
 26/01 13:16:56,866 WARNING [140270577784704] (backend-v4l2.cpp:1208) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
 26/01 13:17:06,979 WARNING [140269504673536] (backend-hid.cpp:681) HID set_power 1 failed for /sys/devices/pci0000:00/0000:00:1d.6/0000:06:00.0/0000:07:02.0/0000:3e:00.0/usb4/4-1/4-1:1.5/0003:8086:0B3A.0003/HID-SENSOR-200073.1.auto/iio:device1/buffer/enable
 26/01 13:17:07,061 WARNING [140269471102720] (sensor.cpp:968) HID timestamp not found, switching to Host timestamps.
 ...

Log from scripts/patch-realsense-ubuntu-lts.sh:

``` $ ./scripts/patch-realsense-ubuntu-lts.sh Remove all RealSense cameras attached. Hit any key when ready Reading package lists... Done Building dependency tree Reading state information... Done bc is already the newest version (1.07.1-2). build-essential is already the newest version (12.4ubuntu1). git is already the newest version (1:2.17.1-1ubuntu0.5). linux-headers-generic is already the newest version (4.15.0.74.76). The following packages were automatically installed and are no longer required: libllvm8 libllvm8:i386 libnvidia-common-415 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. Package required libusb-1.0-0-dev: - found Package required libssl-dev: - found Create patches workspace in ubuntu-bionic-master folder Package required libelf-dev: - not found, installing now... Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libllvm8 libllvm8:i386 libnvidia-common-415 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libelf-dev 0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded. Need to get 57.3 kB of archives. After this operation, 374 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libelf-dev amd64 0.170-0.4ubuntu0.1 [57.3 kB] Fetched 57.3 kB in 0s (156 kB/s) Selecting previously unselected package libelf-dev:amd64. (Reading database ... 640999 files and directories currently installed.) Preparing to unpack .../libelf-dev_0.170-0.4ubuntu0.1_amd64.deb ... Unpacking libelf-dev:amd64 (0.170-0.4ubuntu0.1) ... Setting up libelf-dev:amd64 (0.170-0.4ubuntu0.1) ... Missing package installed Package required elfutils: - not found, installing now... Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libllvm8 libllvm8:i386 libnvidia-common-415 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libasm1 The following NEW packages will be installed: elfutils libasm1 0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded. Need to get 262 kB of archives. After this operation, 931 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasm1 amd64 0.170-0.4ubuntu0.1 [14.4 kB] Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 elfutils amd64 0.170-0.4ubuntu0.1 [247 kB] Fetched 262 kB in 1s (440 kB/s) Selecting previously unselected package libasm1:amd64. (Reading database ... 641011 files and directories currently installed.) Preparing to unpack .../libasm1_0.170-0.4ubuntu0.1_amd64.deb ... Unpacking libasm1:amd64 (0.170-0.4ubuntu0.1) ... Selecting previously unselected package elfutils. Preparing to unpack .../elfutils_0.170-0.4ubuntu0.1_amd64.deb ... Unpacking elfutils (0.170-0.4ubuntu0.1) ... Setting up libasm1:amd64 (0.170-0.4ubuntu0.1) ... Setting up elfutils (0.170-0.4ubuntu0.1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Missing package installed Package required bison: - found Package required flex: - found Initialized empty Git repository in /home/ruffsl/software/librealsense/ubuntu-bionic-master/.git/ Fetching Ubuntu LTS tag Ubuntu-4.15.0-74.84 to the local kernel sources folder remote: Counting objects: 5891658, done. remote: Compressing objects: 100% (931978/931978), done. Receiving objects: 100% (5891658/5891658), 1.26 GiB | 11.94 MiB/s, done. remote: Total 5891658 (delta 4989479), reused 5817359 (delta 4916450) Resolving deltas: 100% (4989479/4989479), done. From git://kernel.ubuntu.com/ubuntu/ubuntu-bionic * [new tag] Ubuntu-4.15.0-74.84 -> Ubuntu-4.15.0-74.84 Switching to LTS tag Ubuntu-4.15.0-74.84 Checking out files: 100% (63356/63356), done. Note: checking out 'Ubuntu-4.15.0-74.84'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at e1afa08ac478 UBUNTU: Ubuntu-4.15.0-74.84 Applying patches for bionic-master line Applying realsense-uvc patch patching file drivers/media/usb/uvc/Makefile patching file drivers/media/usb/uvc/uvc_driver.c patching file drivers/media/usb/uvc/uvcvideo.h 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 679 (offset 11 lines). Applying realsense-metadata patch patching file drivers/media/usb/uvc/uvc_driver.c Hunk #1 succeeded at 2782 (offset 11 lines). patching file drivers/media/usb/uvc/uvc_video.c Hunk #1 succeeded at 1235 (offset 13 lines). Hunk #2 succeeded at 1273 (offset 13 lines). patching file drivers/media/usb/uvc/uvcvideo.h Hunk #1 succeeded at 190 (offset 3 lines). Hunk #2 succeeded at 211 (offset 3 lines). Applying realsense-hid patch patching file drivers/iio/accel/hid-sensor-accel-3d.c Hunk #1 succeeded at 289 (offset 3 lines). patching file drivers/iio/gyro/hid-sensor-gyro-3d.c Hunk #3 succeeded at 197 (offset 3 lines). Hunk #4 succeeded at 213 (offset 3 lines). Hunk #5 succeeded at 248 (offset 3 lines). Applying realsense-powerlinefrequency-fix patch patching file drivers/media/usb/uvc/uvc_ctrl.c Retrofit uvc bug fix enabled with 4.18+ patching file drivers/media/usb/uvc/uvc_video.c Reversed (or previously applied) patch detected! Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file drivers/media/usb/uvc/uvc_video.c.rej ```
ruffsl commented 4 years ago

After looking closer at the patch-realsense-ubuntu-lts.sh script, looks like it stalls from the v1-media-uvcvideo-mark-buffer-error-where-overflow.patch may already be upstreamed in Ubuntu LTS tag Ubuntu-4.15.0-74.84. I commented this section out, and proceed to install the built kernel modules:

https://github.com/IntelRealSense/librealsense/blob/83f952a4bd6b70d72459f66c7f67ddaba9d337a0/scripts/patch-realsense-ubuntu-lts.sh#L131-L134

(We may want to update that if condition logic.)

``` $ ./scripts/patch-realsense-ubuntu-lts.sh Remove all RealSense cameras attached. Hit any key when ready Reading package lists... Done Building dependency tree Reading state information... Done bc is already the newest version (1.07.1-2). build-essential is already the newest version (12.4ubuntu1). git is already the newest version (1:2.17.1-1ubuntu0.5). linux-headers-generic is already the newest version (4.15.0.74.76). The following packages were automatically installed and are no longer required: libllvm8 libllvm8:i386 libnvidia-common-415 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. Package required libusb-1.0-0-dev: - found Package required libssl-dev: - found Create patches workspace in ubuntu-bionic-master folder Package required libelf-dev: - found Package required elfutils: - found Package required bison: - found Package required flex: - found Fetching Ubuntu LTS tag Ubuntu-4.15.0-74.84 to the local kernel sources folder The kernel has modified files: modified: drivers/iio/accel/hid-sensor-accel-3d.c modified: drivers/iio/gyro/hid-sensor-gyro-3d.c modified: drivers/media/usb/uvc/Makefile modified: drivers/media/usb/uvc/uvc_ctrl.c modified: drivers/media/usb/uvc/uvc_driver.c modified: drivers/media/usb/uvc/uvc_video.c modified: drivers/media/usb/uvc/uvcvideo.h modified: drivers/media/v4l2-core/v4l2-ioctl.c modified: include/uapi/linux/videodev2.h Proceeding will reset all local kernel changes. Press 'n' within 3 seconds to abort the operation Do you want to proceed? [Y/n] Resetting local changes in ubuntu-bionic-master folder HEAD is now at e1afa08ac478 UBUNTU: Ubuntu-4.15.0-74.84 Switching to LTS tag Ubuntu-4.15.0-74.84 HEAD is now at e1afa08ac478 UBUNTU: Ubuntu-4.15.0-74.84 Applying patches for bionic-master line Applying realsense-uvc patch patching file drivers/media/usb/uvc/Makefile patching file drivers/media/usb/uvc/uvc_driver.c patching file drivers/media/usb/uvc/uvcvideo.h 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 679 (offset 11 lines). Applying realsense-metadata patch patching file drivers/media/usb/uvc/uvc_driver.c Hunk #1 succeeded at 2782 (offset 11 lines). patching file drivers/media/usb/uvc/uvc_video.c Hunk #1 succeeded at 1235 (offset 13 lines). Hunk #2 succeeded at 1273 (offset 13 lines). patching file drivers/media/usb/uvc/uvcvideo.h Hunk #1 succeeded at 190 (offset 3 lines). Hunk #2 succeeded at 211 (offset 3 lines). Applying realsense-hid patch patching file drivers/iio/accel/hid-sensor-accel-3d.c Hunk #1 succeeded at 289 (offset 3 lines). patching file drivers/iio/gyro/hid-sensor-gyro-3d.c Hunk #3 succeeded at 197 (offset 3 lines). Hunk #4 succeeded at 213 (offset 3 lines). Hunk #5 succeeded at 248 (offset 3 lines). Applying realsense-powerlinefrequency-fix patch patching file drivers/media/usb/uvc/uvc_ctrl.c Prepare kernel modules configuration /home/ubuntu/intel/librealsense/ubuntu-bionic-master 11655$ HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --olddefconfig Kconfig security/Kconfig:393:warning: defaults for choice values not supported security/Kconfig:397:warning: defaults for choice values not supported security/Kconfig:401:warning: defaults for choice values not supported security/Kconfig:405:warning: defaults for choice values not supported security/Kconfig:409:warning: defaults for choice values not supported # # configuration written to .config # scripts/kconfig/conf --silentoldconfig Kconfig security/Kconfig:393:warning: defaults for choice values not supported security/Kconfig:397:warning: defaults for choice values not supported security/Kconfig:401:warning: defaults for choice values not supported security/Kconfig:405:warning: defaults for choice values not supported security/Kconfig:409:warning: defaults for choice values not supported SYSTBL arch/x86/include/generated/asm/syscalls_32.h SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h SYSTBL arch/x86/include/generated/asm/syscalls_64.h HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h HOSTCC scripts/basic/bin2c HOSTCC arch/x86/tools/relocs_32.o HOSTCC arch/x86/tools/relocs_64.o HOSTCC arch/x86/tools/relocs_common.o HOSTLD arch/x86/tools/relocs CHK include/config/kernel.release UPD include/config/kernel.release WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h WRAP arch/x86/include/generated/asm/clkdev.h WRAP arch/x86/include/generated/asm/dma-contiguous.h WRAP arch/x86/include/generated/asm/early_ioremap.h WRAP arch/x86/include/generated/asm/mcs_spinlock.h WRAP arch/x86/include/generated/asm/mm-arch-hooks.h CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h CC arch/x86/purgatory/purgatory.o AS arch/x86/purgatory/stack.o AS arch/x86/purgatory/setup-x86_64.o CC arch/x86/purgatory/sha256.o AS arch/x86/purgatory/entry64.o CC arch/x86/purgatory/string.o LD arch/x86/purgatory/purgatory.ro BIN2C arch/x86/purgatory/kexec-purgatory.c CC kernel/bounds.s CHK include/generated/bounds.h UPD include/generated/bounds.h CHK include/generated/timeconst.h UPD include/generated/timeconst.h CC arch/x86/kernel/asm-offsets.s CHK include/generated/asm-offsets.h UPD include/generated/asm-offsets.h CALL scripts/checksyscalls.sh DESCEND objtool HOSTCC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/fixdep.o HOSTLD /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/fixdep-in.o LINK /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/fixdep CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/exec-cmd.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/help.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/pager.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/parse-options.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/run-command.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/sigchain.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/subcmd-config.o LD /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/libsubcmd-in.o AR /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/libsubcmd.a GEN /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/arch/x86/lib/inat-tables.c CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/arch/x86/decode.o LD /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/arch/x86/objtool-in.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/builtin-check.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/builtin-orc.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/check.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/orc_gen.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/orc_dump.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/elf.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/special.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/objtool.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/libstring.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/str_error_r.o LD /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/objtool-in.o LINK /home/ubuntu/intel/librealsense/ubuntu-bionic-master/tools/objtool/objtool CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o CC scripts/mod/devicetable-offsets.s CHK scripts/mod/devicetable-offsets.h UPD scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/kallsyms HOSTCC scripts/conmakehash HOSTCC scripts/recordmcount HOSTCC scripts/sortextable HOSTCC scripts/asn1_compiler HOSTCC scripts/sign-file HOSTCC scripts/extract-cert HOSTCC scripts/insert-sys-cert Compiling uvc module make: Entering directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_driver.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_queue.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_v4l2.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_video.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_ctrl.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_status.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_isight.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_debugfs.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvc_entity.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvcvideo.o Building modules, stage 2. MODPOST 1 modules CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvcvideo.mod.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/usb/uvc//uvcvideo.ko make: Leaving directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' Compiling accelerometer and gyro modules make: Entering directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bma180.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bma220_spi.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-spi.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/da280.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/da311.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/dmard09.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/dmard10.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxcjk-1013.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/hid-sensor-accel-3d.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9-spi.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9-i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mc3230.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_spi.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7660.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma8452.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9551_core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9551.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9553.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mxc4005.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mxc6255.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/sca3000.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/stk8312.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/stk8ba50.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/cros_ec_accel_legacy.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/ssp_accel_sensor.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_buffer.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_spi.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel.o Building modules, stage 2. MODPOST 33 modules CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bma180.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bma220_spi.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-core.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-i2c.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-spi.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/cros_ec_accel_legacy.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/da280.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/da311.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/dmard09.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/hid-sensor-accel-3d.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/dmard10.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxcjk-1013.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9-spi.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mc3230.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9-i2c.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_spi.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_core.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma8452.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9551.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_i2c.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7660.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9553.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9551_core.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/sca3000.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_i2c.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_spi.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/ssp_accel_sensor.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/stk8312.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mxc6255.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mxc4005.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/stk8ba50.mod.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bma220_spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/da280.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-core.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bmc150-accel-i2c.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9-spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7660.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/cros_ec_accel_legacy.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/bma180.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma8452.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/hid-sensor-accel-3d.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_i2c.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9551.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_i2c.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxcjk-1013.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9553.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel_spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mxc4005.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma9551_core.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/stk8312.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9-i2c.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/sca3000.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mc3230.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/dmard09.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/da311.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/dmard10.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mxc6255.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/mma7455_core.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/kxsd9.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/stk8ba50.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/st_accel.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/accel/ssp_accel_sensor.ko make: Leaving directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' make: Entering directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16080.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16130.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16136.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16260.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adxrs450.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_spi.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/hid-sensor-gyro-3d.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/mpu3050-core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/mpu3050-i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/itg3200_core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/itg3200_buffer.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/ssp_gyro_sensor.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_buffer.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_i2c.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_spi.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/itg3200.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/mpu3050.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro.o Building modules, stage 2. MODPOST 15 modules CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16080.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16130.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16136.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16260.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adxrs450.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_core.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_i2c.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/hid-sensor-gyro-3d.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_spi.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/itg3200.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/ssp_gyro_sensor.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/mpu3050.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_i2c.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_spi.mod.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/mpu3050.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16130.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adxrs450.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16260.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_i2c.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16080.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_i2c.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/bmg160_core.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/ssp_gyro_sensor.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/itg3200.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/adis16136.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/st_gyro_spi.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/iio/gyro/hid-sensor-gyro-3d.ko make: Leaving directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' Compiling v4l2-core modules make: Entering directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-fwnode.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-dev.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-ioctl.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-device.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-fh.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-event.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-ctrls.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-subdev.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-clk.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-async.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-compat-ioctl32.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-trace.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/vb2-trace.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-mc.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-common.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-dv-timings.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/tuner-core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-mem2mem.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-flash-led-class.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-dma-sg.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-vmalloc.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-dvb.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-core.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-v4l2.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-memops.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-vmalloc.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dma-contig.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dma-sg.o CC [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dvb.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/tuner.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videodev.o Building modules, stage 2. MODPOST 18 modules CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/tuner.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-common.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-dv-timings.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-fwnode.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-flash-led-class.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-mem2mem.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-dma-sg.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-core.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-core.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-dvb.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dma-contig.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-vmalloc.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videodev.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dma-sg.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-v4l2.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-vmalloc.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dvb.mod.o CC /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-memops.mod.o LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-flash-led-class.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/tuner.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-common.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-mem2mem.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-dv-timings.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dma-sg.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-dvb.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-vmalloc.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-core.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dma-contig.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-vmalloc.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videodev.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-memops.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-v4l2.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/v4l2-fwnode.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf-dma-sg.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-core.ko LD [M] /home/ubuntu/intel/librealsense/ubuntu-bionic-master/drivers/media/v4l2-core/videobuf2-dvb.ko make: Leaving directory '/home/ubuntu/intel/librealsense/ubuntu-bionic-master' Patched kernels modules were created successfully 0 Replacing videodev - Applying the patched module ... succeeded Replacing uvcvideo - Applying the patched module ... succeeded Replacing hid_sensor_accel_3d - Applying the patched module ... succeeded Replacing hid_sensor_gyro_3d - Applying the patched module ... succeeded Script has completed. Please consult the installation guide for further instruction. ```

Looks like the gyro metadata is working fine now:

image

ev-mp commented 4 years ago

@ruffsl hello,it great that you've managed to resolve the issue. Two notes:

ruffsl commented 4 years ago

There is no need to apply both DKMS and the manual script. ... DKMS should be preferred for LTS kernels.

Thanks for the clarification. After I had rolled back to the LST kennel with the DKMS still installed, the issue persisted until I manually patched. Perhaps if I happen to repeat this with a fresh Ubuntu install this wouldn't be repeatable, but in theory the DKMS provided should work with 4.15.0-74.84 ?

ev-mp commented 4 years ago

The DKMS package for Ubuntu 18 is compatible with LTS kernels 4.15 and 4.18 branches (all patch numbers included). It will be extended to support 5.0 and 5.3 in the next release.

ruffsl commented 4 years ago

It will be extended to support 5.0 and 5.3 in the next release.

Nice, looking forward to simply using the DKMS packages for the current kernel shipped in Ubuntu.

I've noticed that for 5.0.0-23-generic, I encountered device detection issues when applying the 3rd-party patchs that affects USB2 behavior, and so got working again by commenting them out.

https://github.com/IntelRealSense/librealsense/blob/83f952a4bd6b70d72459f66c7f67ddaba9d337a0/scripts/patch-realsense-ubuntu-lts.sh#L129-L146

Just something to be aware of when making the release DKMS packages.