New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 623441 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Feature



Sign in to add a comment

usbip turned on in the kernel modules for chromeos

Reported by m...@virtualhere.com, Jun 27 2016

Issue description

With android support coming to chromebooks soon, it would be great to enable usbip support in the chromeOS kernel.  My company virtualhere has a USB server for android that works well and without kernel modules, but the usb client requires the usbip client module turned on in the kernel.

There are quite a few usecases for allowing a chromebook to connect to a virtual usb device like a USB disk, gaming controller, usb->serial device etc

Any chance of turning on usbip in chromeos for apps like mine?


 
Cc: klo...@chromium.org
Status: Available (was: Unconfirmed)

Comment 2 by klo...@chromium.org, Jun 28 2016

Cc: kuscher@chromium.org
Components: OS>Kernel

Comment 4 Deleted

Labels: -OS-Android OS-Chrome Type-Feature
you're free to do the analysis of seeing what modules actually need to be turned on in the kernel config and see what overhead it adds to the filesystem, and send a CL to do it in the common configs.

but enabling kernel modules for use in dev mode is a low bar.  enabling them for use in normal mode requires more effort in making sure it works, the stack is secure, and is stable.  i don't think anyone is looking into this feature currently.
Cc: lepton@chromium.org
OK great, i will make a git-cl submission. usbip has been mainlined in the kernel for years so its pretty stable in the 4x kernel
Only adding kernel module won't reslve your issue. I think you also need some basic user space program shipped in Chrome Os to connect/disconnect to remote devices. Who will provide those user space stuff? Will apps inside chrome app store have ioctl access to device node exported by usbip?
Chrome apps won't get direct ioctl access to anything by design
virtualhere is the userspace part and just needs to ioctl access.  If thats not possible a wrapper like in android needs to be done.

Currently in android the (usb server side) is implemented using 

android.hardware.usb.UsbDeviceConnection.getFileDescriptor()

which works quite well. 

(Except in Android Runtime for chrome! but anyway thats another ticket)



getting kernel modules available for dev mode is easy -- show the overhead that turning on the features is low (just disk usage for modules, and core kernel image doesn't increase)

anything that involves userspace daemons/ioctl access needs a design doc
ok anyway this feature is pretty useful if you are going to be doing gamestreaming in chrome. So hopefully it goes in a some point
Project Member

Comment 13 by bugdroid1@chromium.org, Dec 22

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/portage-stable/+/3f4b596d5e079edd8da9527e91956ec4a5832625

commit 3f4b596d5e079edd8da9527e91956ec4a5832625
Author: David Valleau <valleau@chromium.org>
Date: Sat Dec 22 02:11:57 2018

Adding dev-manager ebuild from portage upstream

BUG=chromium:885915,chromium:623441
TEST=Emerged and manually tested on an asuka device

Change-Id: I84a10f74a04012166b164419020636fc146bc39b
Reviewed-on: https://chromium-review.googlesource.com/1387225
Commit-Ready: David Valleau <valleau@chromium.org>
Tested-by: David Valleau <valleau@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>

[add] https://crrev.com/3f4b596d5e079edd8da9527e91956ec4a5832625/virtual/dev-manager/dev-manager-0-r1.ebuild

Sign in to add a comment