-
Notifications
You must be signed in to change notification settings - Fork 7.3k
usb: usbip: add initial support for USBIP server #74141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usb: usbip: add initial support for USBIP server #74141
Conversation
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is missing include guards.
d123ee7
to
01328a1
Compare
01328a1
to
9ef6b2c
Compare
e0dac48
to
57a7aab
Compare
57a7aab
to
1bfa9b5
Compare
rebased to resolve conflicts (loopback PR). |
This is still initial support. There are performance issues using it with virtual devices such as native_sim, and I have not had time to test it on real devices, but that is on my list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. build system changes OK
subsys/usb/host/Kconfig.usbip
Outdated
module-str = usbip | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
endif #USBIP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endif #USBIP | |
endif # USBIP |
modprobe usbip-core | ||
modprobe usbip-host | ||
|
||
There are a few basic commands for everyday use. To list exported USB devices, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worth mentioning packages to get for ubuntu here so users don't have to search for why the command is not found?
CONFIG_NET_TCP=y | ||
CONFIG_NET_SOCKETS=y | ||
|
||
#CONFIG_NO_OPTIMIZATIONS=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#CONFIG_NO_OPTIMIZATIONS=y |
The server uses host support to export a USB device to a remote USBIP client. It supports control and bulk transfers, interrupt transfers may also work, but this depends on the host controller used. Signed-off-by: Johann Fischer <[email protected]>
Snippet that helps to build USB device samples with virtual device and host controllers and USBIP support. Signed-off-by: Johann Fischer <[email protected]>
Add initial USB/IP documentation for the new USB support. Signed-off-by: Johann Fischer <[email protected]>
1bfa9b5
to
edd80e6
Compare
The server uses minimal host support to export a USB device to a remote
USBIP client. It supports control and bulk transfers, interrupt
transfers may also work, but this depends on the host controller used.
Only a single USB device can be exported yet.