This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"cdc serial" driver needed for usb-gadget module g_multi

i was able to enumerate a flash drive in my computer but failed to install driver for a device called "cdc serial". i had ran out  its physical serial ports.

the g_acm_ms modules simply don't work, not matter what parameter i gave:

modprobe g_acm_ms file=/dev/mmcblk0p1
[ 4340.710601] usb_composite_probe
[ 4340.713958] usb_gadget_probe_driver
[ 4340.717620] usb_gadget_probe_driver
[ 4340.726318] gadget: Mass Storage Function, version: 2009/09/11
[ 4340.732543] gadget: Number of LUNs=1
[ 4340.736389] lun0: LUN: removable file: /dev/mmcblk0p1
[ 4340.741973] gadget: Composite Gadget (ACM + MS), version: 2011/10/10
[ 4340.748718] gadget: g_acm_ms ready
[ 4340.757263] g_acm_ms musb-hdrc.0: failed to start *** g_acm_ms: -22
modprobe: 'kernel/drivers/usb/gadget/g_acm_ms.ko': invalid parameter

so this g_multi module is my saver, please help with the driver issue. 

  • and this is based on am335x

  • https://www.kernel.org/doc/Documentation/usb/linux-cdc-acm.inf

    :)

  • If you need the g_multi gadget, I believe you have to enable the following kernel config option and rebuild the kernel:

    Multifunction Composite Gadget (EXPERIMENTAL) (USB_G_MULTI)

    CONFIG_USB_G_MULTI:

    The Multifunction Composite Gadget provides Ethernet (RNDIS
    and/or CDC Ethernet), mass storage and ACM serial link
    interfaces.

    You will be asked to choose which of the two configurations is
    to be available in the gadget. At least one configuration must
    be chosen to make the gadget usable. Selecting more than one
    configuration will prevent Windows from automatically detecting
    the gadget as a composite gadget, so an INF file will be needed to
    use the gadget.

    Say "y" to link the driver statically, or "m" to build a
    dynamically linked module called "g_multi".

    Symbol: USB_G_MULTI [=n]
    Type : tristate
    Prompt: Multifunction Composite Gadget (EXPERIMENTAL)
    Defined at drivers/usb/gadget/Kconfig:887
    Depends on: <choice> && BLOCK [=y] && NET [=y]
    Location:
    -> Device Drivers
    -> USB support (USB_SUPPORT [=y])
    -> USB Gadget Support (USB_GADGET [=y])
    -> USB Gadget Drivers (<choice> [=m])
    Selects: USB_G_MULTI_CDC [=n]

    Best regards,
    Miroslav

  • Can you clarify: are you looking for a driver for your Linux PC or for the AM335X board?

  • hi TI

    i am working with BBB + ti sdk 07

    i want to use g_multi usb gadget module

    i have inserted the module and the result is

    0p1 stall=0 removable=1latile/run/media/sda1# insmod g_multi.ko file=/dev/mmcblk0
    [ 1484.447496] using random self ethernet address
    [ 1484.452238] using random host ethernet address
    [ 1484.456944] using random self ethernet address
    [ 1484.461620] using random host ethernet address
    [ 1484.469144] usb0: HOST MAC c6:4f:59:23:e0:d0
    [ 1484.478842] usb0: MAC 1e:40:5d:35:a7:03
    [ 1484.490510] Number of LUNs=8
    [ 1484.493564] Mass Storage Function, version: 2009/09/11
    [ 1484.510649] LUN: removable file: (no medium)
    [ 1484.515184] Number of LUNs=1
    [ 1484.518366] LUN: removable file: /dev/mmcblk0p1
    [ 1484.523171] Number of LUNs=1
    [ 1484.535245] g_multi gadget: Multifunction Composite Gadget
    [ 1484.541072] g_multi gadget: userspace failed to provide iSerialNumber
    [ 1484.547826] g_multi gadget: g_multi ready
    root@am335x-evm:/var/volatile/run/media/sda1#

    now my win-7 PC showing  "Multifunction Composite Gadget" in device manager with yellow mark (no driver)

    can i get driver for this (win-7)

    i have installed driver for this got from the BBB SW package but in vain

    my ultimate goal is to test USB ssh for BBB using ti file system

    regards

    Nagendra

  • Any answer on this question ?

    I have the same problem :/

    Windows shows "Multifunction composite gadget" but doesn't load the RNDIS nor the mass storage driver.