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
[RFE] missing kernel modules for some USB gadget functions #1654
Comments
I think you'll find that the configs file does match the appropriate defconfig (bcm2709_defconfg for a Pi 2, 3 or Zero 2 such as you have), but in a non-obvious way. The Pi 4 defconfig (bcm2711_defconfig) does include
The same is also try for Pi 1 and Pi Zero (bcmrpi_defconfig), but not for Pi 2 and Pi 3/Zero 2 (bcm2709_defconfig). That will be because until Zero 2 W (which I suspect is what you have) there has been no way of using gadget mode, so that support is disabled. I will enable the NCM gadget support. You also ask for
Are you sure this is what you need, and not the more obvious mass storage support?:
|
Didn't know that. Thanks for pointing out.
Yes, I'm using USB OTG gadget on RPi Zero 2 W.
I'm aware that there is separate Mass Storage function and TCM function. The TCM function handles BOT (Bulk-Only Transfer) and UAS (USB-Attached SCSI). I think that this may help reduce some overhead. I'm not sure, just wanna try. Please also enable
|
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
The following features have been enabled in the Pi 3 (and Zero 2 W) kernel, bringing it in line with the Zero W: +CONFIG_USB_CONFIGFS=m
+CONFIG_USB_CONFIGFS_SERIAL=y
+CONFIG_USB_CONFIGFS_ACM=y
+CONFIG_USB_CONFIGFS_OBEX=y
+CONFIG_USB_CONFIGFS_NCM=y
+CONFIG_USB_CONFIGFS_ECM=y
+CONFIG_USB_CONFIGFS_ECM_SUBSET=y
+CONFIG_USB_CONFIGFS_RNDIS=y
+CONFIG_USB_CONFIGFS_EEM=y
+CONFIG_USB_CONFIGFS_MASS_STORAGE=y
+CONFIG_USB_CONFIGFS_F_LB_SS=y
+CONFIG_USB_CONFIGFS_F_FS=y
+CONFIG_USB_CONFIGFS_F_UAC1=y
+CONFIG_USB_CONFIGFS_F_UAC2=y
+CONFIG_USB_CONFIGFS_F_MIDI=y
+CONFIG_USB_CONFIGFS_F_HID=y
+CONFIG_USB_CONFIGFS_F_UVC=y
+CONFIG_USB_CONFIGFS_F_PRINTER=y You'll have to make more of a case for
Following the link it says:
Since USB_GADGETFS is enabled now you shouldn't need USB_FUNCTIONFS. For |
Thank you. |
kernel: enable several virtual devices for hosting virtual machines See: raspberrypi/linux#4712 kernel: configs: add LEDS_PWM=y See: raspberrypi/linux#4668 kernel: configs: add CONFIG_HID_PLAYSTATION=m and CONFIG_PLAYSTATION_FF=y See: raspberrypi/linux#4721 kernel: configs: Add USB gadget support (for Zero 2 W) See: #1654
kernel: enable several virtual devices for hosting virtual machines See: raspberrypi/linux#4712 kernel: configs: add LEDS_PWM=y See: raspberrypi/linux#4668 kernel: configs: add CONFIG_HID_PLAYSTATION=m and CONFIG_PLAYSTATION_FF=y See: raspberrypi/linux#4721 kernel: configs: Add USB gadget support (for Zero 2 W) See: raspberrypi/firmware#1654
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
BugLink: https://bugs.launchpad.net/bugs/1958146 Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com> (cherry picked from commit 7e7163e742418f88c6bd92c3fb7bfcb208e06e02 rpi-5.15.y) Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Bring the Pi 3 kernel in line with the Pi Zero and Pi 4 by enabling USB gadget support, which is useful on Zero 2 W. See: raspberrypi/firmware#1654 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Is this the right place for my bug report?
The
/proc/config.gz
on my RPi doesn't matchdefconfig
s from https://github.com/raspberrypi/linux. And the Linux kernel is shipped via firmware update, instead of a raspbian package. So I think this is the right place to report this issue.Describe the bug
I want to make use of USB CDC-NCM (for networking) and TCM (for storage) gadget functions on RPi. However the Linux configuration does not enable aforementioned modules.
To reproduce
Expected behaviour
expected
CONFIG_USB_F_NCM=m
andCONFIG_USB_F_TCM=m
Actual behaviour
CONFIG_USB_F_TCM
andCONFIG_USB_F_TCM
are not configured.System
cat /etc/rpi-issue
)?vcgencmd version
)?uname -a
)?The text was updated successfully, but these errors were encountered: