Getting Intel RealSense camera to work with Nexus 5X

70 views
Skip to first unread message

Xerxes Battiwalla

unread,
Feb 20, 2020, 7:33:01 PM2/20/20
to Maru OS
I'd like to use a USB camera (Intel RealSense D435) with my phone to run some bespoke software we can compile under Maru...The idea being that we'd use the Intel camera to provide input, have our Linux app processing the input, and because it's running on a phone the whole system is portable.

Our software compiles and runs under Maru (yay!) but it is unable to detect the connected camera. When I plug the device in, I can see from dmesg that the system detects and correctly identifies the USB device, but there are a number of errors from uvcvideo which are the reason I suspect our software can't detect the camera.


[20561.216811] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[20561.232823] usb 1-1: New USB device found, idVendor=8086, idProduct=0b07
[20561.232887] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[20561.232917] usb 1-1: Product: Intel(R) RealSense(TM) Depth Camera 435
[20561.233069] usb 1-1: Manufacturer: Intel(R) RealSense(TM) Depth Camera 435
[20561.258586] uvcvideo: Unknown video format 2036315a-0000-0010-8000-00aa00389b71
[20561.258619] uvcvideo: Unknown video format 00000050-0000-0010-8000-00aa00389b71
[20561.258641] uvcvideo: Unknown video format 00000032-0000-0010-8000-00aa00389b71
[20561.258830] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 435  (8086:0b07)
[20561.271917] uvcvideo: Unable to create debugfs 1-2 directory.
[20561.272744] type=1400 audit(1582244748.767:199): avc: denied { syslog_read } for pid=20252 comm="dmesg" scontext=u:r:perspectived:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1
[20561.272775] type=1400 audit(1582244775.825:200): avc: denied { write } for pid=39 comm="kdevtmpfs" name="/" dev="devtmpfs" ino=1025 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0
[20561.273860] input: Intel(R) RealSense(TM) Depth Ca as /devices/soc.0/f9200000.ssusb/f9200000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/input/input12
[20561.275583] type=1400 audit(1582244775.825:200): avc: denied { write } for pid=39 comm="kdevtmpfs" name="/" dev="devtmpfs" ino=1025 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0
[20561.275620] type=1400 audit(1582244775.829:201): avc: denied { write } for pid=39 comm="kdevtmpfs" name="input" dev="devtmpfs" ino=5268 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0
[20561.277116] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 435  (8086:0b07)
[20561.277614] type=1400 audit(1582244775.829:201): avc: denied { write } for pid=39 comm="kdevtmpfs" name="input" dev="devtmpfs" ino=5268 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0
[20561.277645] type=1400 audit(1582244775.832:202): avc: denied { write } for pid=39 comm="kdevtmpfs" name="/" dev="devtmpfs" ino=1025 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0
[20561.278457] uvcvideo: Unable to create debugfs 1-2 directory.
[20561.302365] msm_rng:Data not available!
[20561.351038] ueventd: Error reading from Uevent Fd
[20561.351066] ueventd: Error reading from Uevent Fd
[20561.351082] ueventd: Error reading from Uevent Fd
[20561.351097] ueventd: Error reading from Uevent Fd
[20561.351111] ueventd: Error reading from Uevent Fd
[20561.351126] ueventd: Error reading from Uevent Fd
[20561.351139] ueventd: Error reading from Uevent Fd
[20561.351152] ueventd: Error reading from Uevent Fd
[20561.351166] ueventd: Error reading from Uevent Fd
[20561.351180] ueventd: Error reading from Uevent Fd
[20561.351193] ueventd: Error reading from Uevent Fd
[20561.351207] ueventd: Error reading from Uevent Fd
[20561.353666] ueventd: Error reading from Uevent Fd


This is new territory for me, so appreciate any advice/guidance.

Thanks

Preetam D'Souza

unread,
Mar 30, 2020, 9:32:37 PM3/30/20
to Maru OS
Hmm, I wonder if it's because of security rules on the LXC container we use to run Linux on Maru. One of our users had some tips on USB passthrough, perhaps it is useful for you: https://github.com/maruos/maruos/issues/29

Also, you can post under our developer group if you are running a custom build, we have more technical members over there that could help: https://groups.google.com/forum/#!forum/maru-os-dev
Reply all
Reply to author
Forward
0 new messages