Items with no label
3335 Discussions

Error when attempting to install librealsense - ZR300 Ubuntu 16.04

idata
Employee
3,927 Views

I just got a ZR300.

I'm following the instructions found here:

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md librealsense/installation.md at master · IntelRealSense/librealsense · GitHub

Near the bottom it says I need to run the script:

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

When I run the script, I am asked a series of questions (about 60) regarding new items in the Kernel. Not knowing any better, I take the default answer for each instance.

For example, the first question I am presented with is:

Memory Resource Controller Kernel Memory accounting (MEMCG_KMEM) [N/y/?] (NEW)

After hitting enter at each question, I get the following:

Patched kernel module created successfully

Unloading module uvcvideo

Applying patched module uvcvideo

modprobe: ERROR: could not insert 'uvcvideo': Required key not available

Failed to insert the patched module. Operation is aborted, the original module is restored

Verify that the current kernel version is aligned to the patched module version

./scripts/patch-utils.sh: line 45: [: backup_available: integer expression expected

A little googling suggests that a workaround might be here:

https://askubuntu.com/questions/761886/ubuntu-16-04-kernel-4-4-0-21-not-loading-nvidia-vboxdrv-modules-anymore-require drivers - Ubuntu 16.04 kernel 4.4.0-21 not loading nvidia/vboxdrv modules anymore (Required key not available) - Ask Ubu…

Does anyone know why this doesn't work?

0 Kudos
14 Replies
MartyG
Honored Contributor III
1,344 Views

I do not have an insight into your installation problem, sadly. An alternative to installing Librealsense in the normal way though is to install the Intel RealSense SDK for Linux, which makes use of Librealsense. The Linux SDK's installation process installs the components that it requires to operate, including Librealsense.

The listing for the ZR300 in Intel's official online store also recommends the SDK for Linux:

"The Intel RealSense System Developer Kit (SDK) for Linux provides a development platform to create the next generation of natural, immersive, and intuitive software applications. The SDK is a collection of software libraries providing the ability to build rich sensory capabilities for robots and other devices. These libraries aim to lower the barriers for using these capabilities and shift the application developers' focus from coding the algorithm details to innovating on the usage of these capabilities for next generation human-device experience."

https://software.intel.com/sites/products/realsense/sdk/getting_started.html Intel® RealSense™ SDK for Linux: Getting Started

0 Kudos
CEise
Novice
1,344 Views

Having had a similar issue recently, the following solution (posted feb. 22) worked for me.

"Hi, you've got Ubuntu LTS with kernel 4.8, probably '16.04.2' that was released this month.

 

The patch, however, support LTS kernels 4.4.0-xx only (4.4.0-63 the latest) .

Support for kernel 4.8 is on the TODO list, but at this point you should either downgrade Ubuntu to kernel 4.4, or modify the patches on your own to make this work." ev-mp

source: https://github.com/IntelRealSense/librealsense/issues/444 Uvcvideo patching issue · Issue # 444 · IntelRealSense/librealsense · GitHub

At the grub boot menu you have an "Advanced Options" which will let you select which kernel to load...assuming you have the 4.4.0-xx kernel

idata
Employee
1,344 Views

Hi LanceLocey,

 

 

Thanks for your interest in the Intel® Realsense™ Platform.

 

 

Were you able to install librealsense on your PC? Please let me know in order to assist you.

 

 

I will be waiting for your reply, have a nice day!

 

 

Best Regards,

 

-Jose P.
0 Kudos
idata
Employee
1,344 Views

I was able to get the librealsense git repo installed on my Jetson TX2 by following this link: http://www.jetsonhacks.com/2017/03/26/intel-realsense-camera-installation-nvidia-jetson-tx2/ http://www.jetsonhacks.com/2017/03/26/intel-realsense-camera-installation-nvidia-jetson-tx2/

However, the link above installs only what is found on github, not the full SDK. I tried to download the SDK, but when I clicked on the link to download it, I was taken to another page where there was nothing related to the SDK.

0 Kudos
idata
Employee
1,344 Views

Hi LanceLocey,

 

 

I'm glad to know that you were able to install librealsense! Could you be so kind to provide me the guide that you are following in order to install the Linux SDK.

 

 

I will be waiting for your reply, have a nice day!

 

 

Best Regards,

 

-Jose P.
0 Kudos
idata
Employee
1,344 Views

I was not ever able to install the full Linux SDK.

I am still trying to get the SLAM algorithms for the ZR300. I cannot seem to find them. I would like to use them with ROS.

0 Kudos
idata
Employee
1,344 Views

Hi LanceLocey,

Apparently, there seems to be a confusion regarding the Getting Started guide, this is the official guide for Linux SDK: https://software.intel.com/sites/products/realsense/intro/getting_started.html Introduction to Intel® RealSense™ SDK for Linux: Getting Started . We apologize for this, the Realsense team is working on fixing this.

Also, you should know that this SDK is validated using Ubuntu™* 16.04 on Intel® Joule™ 570x Board.

Please let me know if any questions come up, have a nice day!

Best Regards,

 

-Jose P.
0 Kudos
idata
Employee
1,344 Views

The link you have provided does not work for an ARM based architecture. It is disappointing (but not surprising) that Intel will only support librealsense on Intel architectures. I'm trying to use the ZR300 on an NVIDIA Jetson TX2. When I follow the steps outlined in the link, I get to a point where one of the updates fails because the Intel software is not compatible with ARM.

0 Kudos
MartyG
Honored Contributor III
1,344 Views

Typically, the way to get some kind of connectivity to ARM boards (e.g Arduino) so that you can stream camera data is to set up a serial connection between the ARM board and a full PC that has the RealSense camera connected to it.

Sadly though, you cannot connect a RealSense camera directly to a board with an ARM processor. The main mini-board support available for RealSense is to connect an R200 RealSense camera to an Up Board, which has an Intel Atom processor.

The Up board is guaranteed to be compatible with the R200, as it is packaged with the R200 as part of Intel's Robotic Developer Kit.

http://www.up-board.org/up/ Up Board | Power Up Your Ideas!

https://click.intel.com/intelr-realsensetm-robotic-development-kit-2121.html Intel® RealSense™ Robotic Development Kit - Intel® RealSense™ Developer Kits

0 Kudos
idata
Employee
1,344 Views

I have successfully connected the ZR300 to Nvidia's Jetson TX2. I am able to use ROS to generate a point cloud. ROS recognizes the board and I am able to stream the data over the network from the Jetson to an Intel based laptop (or just look at the data on the Jetson)

I'm trying to get SLAM to work.

According to the link https://software.intel.com/sites/products/realsense/intro/getting_started.html Introduction to Intel® RealSense™ SDK for Linux: Getting Started

There is a librealsense-slam-dev package. I attempted to install that package, but got the following error:

https://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-with-apt "Unable to locate package" while trying to install packages with APT

I went to http://packages.ubuntu.com/ Ubuntu – Ubuntu Packages Search to look for the package, but sadly, it is not listed. So does this mean that the package does not exist? Can someone at Intel verify that this package indeed exists?

Where can I get the slam-dev package?

0 Kudos
MartyG
Honored Contributor III
1,344 Views

Thanks so much for the feedback about connecting ZR300 to Jetson TX2. It's really useful to receive such information as a reference to advise others in future.

A ROS site suggests that librealsense_slam_dev is installed with a command such as:

sudo apt install -y librealsense-slam-dev

https://github.com/IntelRealSense/realsense_samples_ros GitHub - IntelRealSense/realsense_samples_ros: Sample code illustrating how to develop ROS applications using the Intel®…

Edit: this page lists librealsense-slam-dev files.

https://blueprints.launchpad.net/~halton-huo/+archive/ubuntu/realsense/+sourcepub/7140881/+listing-archive-extra https://blueprints.launchpad.net/~halton-huo/+archive/ubuntu/realsense/+sourcepub/7140881/+listing-archive-extra

0 Kudos
idata
Employee
1,344 Views

So I'm trying to install librealsense on my laptop. I am following the procedure outlined here:

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md# video4linux-backend-preparation librealsense/installation.md at master · IntelRealSense/librealsense · GitHub

The script I use is this one:

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

The result of the script is:

Unloading module uvcvideo

Applying patched module uvcvideo

modprobe: ERROR: could not insert 'uvcvideo': Unknown symbol in module, or unknown parameter (see dmesg)

Failed to insert the patched module. Operation is aborted, the original module is restored

Verify that the current kernel version is aligned to the patched module version

./scripts/patch-utils.sh: line 45: [: backup_available: integer expression expected

It looks like others have had the same problem:

https://github.com/IntelRealSense/librealsense/issues/444 Uvcvideo patching issue · Issue # 444 · IntelRealSense/librealsense · GitHub

I'm not in a position to go back to the older kernel.

What is the anticipated fix date for this issue?

0 Kudos
idata
Employee
1,344 Views

Hi LanceLocey,

We are currently consulting the librealsense team for updates regarding https://github.com/IntelRealSense/librealsense/issues/444 Uvcvideo patching issue · Issue # 444 · IntelRealSense/librealsense · GitHub .

We appreciate your patience.

Have a nice day!

Best Regards,

 

-Jose P.
0 Kudos
idata
Employee
1,344 Views

Hi LanceLocey,

We appreciate your patience.

The librealsense team is working diligently on the kernel 4.8 support. Please keep visiting https://github.com/IntelRealSense/librealsense/issues/444 Uvcvideo patching issue · Issue # 444 · IntelRealSense/librealsense · GitHub for any updates regarding this issue.

Thanks for your understanding.

Best Regards,

 

-Jose P.
0 Kudos
Reply