usb0 unmanaged (g_ether)



Hi!

The usb0 connection is not working. The device is shown as unmanaged by
nmcli:

DEVICE    TYPE      STATE      CONNECTION
eth0      ethernet  connected  Ethernet  
usb0      ethernet  unmanaged  --        
sit0      iptunnel  unmanaged  --        
lo        loopback  unmanaged  -- 


The g_ether module is loaded. I set fixed MAC address with
`/etc/modprobe.d/g_ether.conf` and it seems to work:


using host ethernet address: 8E:8E:76:6C:34:0E
using self ethernet address: 8E:8E:76:28:44:AB
usb0: HOST MAC 8e:8e:76:6c:34:0e
usb0: MAC 8e:8e:76:28:44:ab
using random self ethernet address
using random host ethernet address
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready


The output of `lsmod` is:

Module                  Size  Used by
usb_f_ecm               9123  1
g_ether                 4488  0
usb_f_rndis            20935  2 g_ether
u_ether                10799  3 usb_f_ecm,g_ether,usb_f_rndis
libcomposite           44168  3 usb_f_ecm,g_ether,usb_f_rndis


And nmcli shows the following device properties:

GENERAL.DEVICE:                         usb0
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                        
GENERAL.PRODUCT:                       
GENERAL.DRIVER:                         at91_udc
GENERAL.DRIVER-VERSION:                 29-May-2008
GENERAL.FIRMWARE-VERSION:               at91_udc
GENERAL.HWADDR:                         8E:8E:76:28:44:AB
GENERAL.MTU:                            1500
GENERAL.STATE:                          10 (unmanaged)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /virtual/device/placeholder/3
GENERAL.IP-IFACE:                       usb0
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     no
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --


In NetworkManager journalctl the only references are:

Jan 17 10:47:20 D130102 NetworkManager[239]: <info>  [1516186040.5564]
devices added (path:
/sys/devices/platform/ahb/ahb:apb/fffa4000.gadget/gadget/net/usb0,
iface: usb0)
Jan 17 10:47:20 D130102 NetworkManager[239]: <info>  [1516186040.5568]
device added (path:
/sys/devices/platform/ahb/ahb:apb/fffa4000.gadget/gadget/net/usb0,
iface: usb0): no ifupdown configuration found.

Jan 17 10:47:53 D130102 NetworkManager[239]: <info>  [1516186073.8659]
manager: (usb0): new Ethernet device
(/org/freedesktop/NetworkManager/Devices/4)

Any idea why the device is not managed by NM?


Thanks!

Ana



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]