librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

The requested pixel format 'INZI' is not natively supported by the Linux kernel and likely requires a patch!

Open summer1216 opened this issue 8 years ago • 8 comments


Required Info
Camera Model SR300
Operating System & Version UBUNTU14
Kernel Version (Linux Only) Linux 4.4.0-128-generic
Platform PC

I updated my kernel to Linux 4.4.0-128-generic when I was manually installing the librealsense, and after that it was working well for some months.

But after some days not working with the camera, today I work again with the camera, I suddenly got the following error which was not there before.

terminate called after throwing an instance of 'rs2::backend_error'
  what():  The requested pixel format 'INZI' is not natively supported by the Linux kernel and likely requires a patch!
Alternatively please upgrade to kernel 4.12 or later. Last Error: Inappropriate ioctl for device

I checked the the two related issues and did not fix my problem.

summer1216 avatar Jun 19 '18 17:06 summer1216

Hi @summer1216 , Is it possible that you had run Ubuntu update?

You can add kernel log when connecting the camera, but if you can see complains about missing formats, especially INZI then the patched uvcvideo module has been replaced either by kernel up/down-grade or manually.

Rerun the kernel patching part of the Linux installation manual and update.

ev-mp avatar Jun 19 '18 19:06 ev-mp

@ev-mp thank you for your reply. It seems that maybe I have updated the kernel from Linux 4.4.0-127-generic to Linux 4.4.0-128-generic, which I didn't mean to. :( Now by uname -a, it is the new one.

I tried to rerun the patching part, the following error occurs, and camera can not be detected anymore.

Applying the patched module ... modprobe: ERROR: could not insert 'uvcvideo': Invalid argument 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 modprobe: ERROR: could not insert 'uvcvideo': Invalid argument

summer1216 avatar Jun 20 '18 10:06 summer1216

Make sure to perform the linux preps stage: sudo apt update && .... before running the patch. Additionally, can you post the kernel log when the error occurs (dmesg) ?

ev-mp avatar Jun 20 '18 11:06 ev-mp

Thanks, I ran update, upgrade, dist-upgrade.

The following lines shows in the process of running the patching script, which I think is not normal, since it does not show the right kernel of mine (which should be Ubuntu-4.4.0-128 now). I don't quite understand what is doing here, and how to fix it.

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            master     -> FETCH_HEAD
Resetting local changes in ubuntu-xenial-master folder
 HEAD is now at c4546dc UBUNTU: Ubuntu-4.4.0-127.153

summer@Ubuntu-HPC:~/Realsense/librealsense$ sudo dmesg | tail -n 50 [ 989.501111] Linux video capture interface: v2.00 [ 989.516760] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 989.516763] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 989.516765] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 989.516766] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 989.558412] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 989.558416] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 989.558420] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 989.558421] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 1483.199066] media: Linux media interface: v0.10 [ 1483.209568] Linux video capture interface: v2.00 [ 1483.281523] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 1483.281530] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 1483.281538] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 1483.281541] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 1483.329801] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 1483.329812] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 1483.329826] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 1483.329832] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 1631.535126] media: Linux media interface: v0.10 [ 1631.538082] Linux video capture interface: v2.00 [ 1631.564353] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 1631.564357] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 1631.564362] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 1631.564364] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 1631.607945] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 1631.607955] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 1631.607967] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 1631.607972] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 1689.882847] systemd-hostnamed[19029]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname! [ 2206.615471] media: Linux media interface: v0.10 [ 2206.618125] Linux video capture interface: v2.00 [ 2206.641795] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 2206.641798] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 2206.641803] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 2206.641804] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 2206.683305] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 2206.683314] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 2206.683324] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 2206.683329] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 5670.933610] media: Linux media interface: v0.10 [ 5670.936221] Linux video capture interface: v2.00 [ 5670.958256] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 5670.958259] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 5670.958264] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 5670.958265] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22) [ 5670.994508] v4l2_common: disagrees about version of symbol v4l2_subdev_init [ 5670.994515] v4l2_common: Unknown symbol v4l2_subdev_init (err -22) [ 5670.994524] v4l2_common: disagrees about version of symbol v4l2_device_register_subdev [ 5670.994527] v4l2_common: Unknown symbol v4l2_device_register_subdev (err -22)

summer1216 avatar Jun 20 '18 11:06 summer1216

I would suggest to temporally revert to kernel 4.4.0-127 unless you have explicit requirements, since:

  1. There is a good chance that the previous setup with patched kernel module is still intact.
  2. Even if not - the kernel version would be identical to the sources downloaded from Ubuntu, so patching the kernel should succeed.

We will try reproduce this situation with kernel 4.4.0-128 in the meanwhile and update accordingly

ev-mp avatar Jun 20 '18 13:06 ev-mp

@ev-mp Thank you for your suggestion. I reinstalled Kernel 4.4.0-127 and reboot with it, after redoing patching, it works fine now. I still don't know why after removing the old kernel completely, patching still recognizes I have the old kernel. But so far I can work with this. Thanks a lot for your help!

summer1216 avatar Jun 21 '18 12:06 summer1216

@ev-mp @summer1216 thanks a lot! I meets the same problems as @summer1216 . Would you please give some instruction about reinstall Kernel 4.4.0-127 ?? Thanks.

TonyFaith avatar Jun 22 '18 03:06 TonyFaith

[Realsense Customer Engineering Team Comment] Hi @summer1216,

Still need any further help? If your issue resolved, will close this.

@TonyFaith,

you can try below command: sudo apt-get install --reinstall linux-image-4.4.0-127-generic