From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-164227-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 6A043138CCF
	for <garchives@archives.gentoo.org>; Fri, 15 May 2015 22:25:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id DF7A9E083E;
	Fri, 15 May 2015 22:25:41 +0000 (UTC)
Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 69ABFE081B
	for <gentoo-user@lists.gentoo.org>; Fri, 15 May 2015 22:25:40 +0000 (UTC)
Received: by wguv19 with SMTP id v19so67006302wgu.1
        for <gentoo-user@lists.gentoo.org>; Fri, 15 May 2015 15:25:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:reply-to:to:subject:date:user-agent:references:in-reply-to
         :mime-version:content-type:content-transfer-encoding:message-id;
        bh=1zMzdOpsMvnE6Jia1nDnXplWHxq8gDjdtV4lKU24414=;
        b=t+a/3p+TbZVj+vwZ9clpIMh0odvc/Q3dEJ/XUBxW56TU9M1uAomr/9xzyNG2+gAo4Q
         OiFc/zVxXdr3qh7gI3LU1l0hcFX7n3XYggoN+BBLOT79q3yBMXf1Eg5LqxCjDxh/NLvh
         U5ZH72DCdrMPIWid4VhqSl6e7jhNC8RLxYuvddSoiSxC0UelynDuk3+bMlS5ifKrNEJJ
         HVUG97ohqrSplwGPfr00W8aUGizZyVRgyaSVS30Ug9OzDwPANX+s24EkBn9k9RxCsSch
         SFjtJlRbF4LKv+ZPD9D0eBSkBJTvkYcNtPlT2RYRjAkh+kHfcWhfZHVt4svNv64JOSib
         Ppww==
X-Received: by 10.194.22.170 with SMTP id e10mr18523893wjf.38.1431728739226;
        Fri, 15 May 2015 15:25:39 -0700 (PDT)
Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230])
        by mx.google.com with ESMTPSA id mc20sm80319wic.15.2015.05.15.15.25.37
        for <gentoo-user@lists.gentoo.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 15 May 2015 15:25:38 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Net problems
Date: Fri, 15 May 2015 23:25:33 +0100
User-Agent: KMail/1.13.7 (Linux/3.18.11-gentoo; KDE/4.14.3; x86_64; ; )
References: <20150514034538.GB4269@solfire> <201505140654.11319.michaelkintzios@gmail.com> <20150514063441.GD4269@solfire>
In-Reply-To: <20150514063441.GD4269@solfire>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart2506763.3kVV4Mmrou";
  protocol="application/pgp-signature";
  micalg=pgp-sha256
Content-Transfer-Encoding: 7bit
Message-Id: <201505152325.35391.michaelkintzios@gmail.com>
X-Archives-Salt: e1ac77ad-7eb3-4f8f-b8ac-96900b8e4ac5
X-Archives-Hash: 2582c72650c3bf9dc942b826b7d475b2

--nextPart2506763.3kVV4Mmrou
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable

On Thursday 14 May 2015 07:34:41 Meino.Cramer@gmx.de wrote:

> This is what udevadm monitor prints, when I unplug both Ariettas
> simultanously:
> solfire:/home/mccramer>udevadm monitor
> monitor will print the received events for:
> UDEV - the event which udev sends out after rule processing
> KERNEL - the kernel uevent
>=20
> KERNEL[13781.884965] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/rx-0
> (queues) KERNEL[13781.885027] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/tx-0
> (queues) KERNEL[13781.885067] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1 (net) UDEV=20
> [13781.886418] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/rx-0
> (queues) KERNEL[13781.889122] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0 (usb)
> KERNEL[13781.889194] remove   /devices/pci0000:00/0000:00:13.2/usb4/4-4
> (usb) UDEV  [13781.902185] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/tx-0
> (queues) UDEV  [13781.908021] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1 (net) UDEV=20
> [13781.908429] remove   /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0
> (usb) UDEV  [13781.919474] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4 (usb) KERNEL[13781.993142]
> remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/rx-0
> (queues) KERNEL[13781.993182] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/tx-0
> (queues) KERNEL[13781.993211] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0 (net) UDEV=20
> [13781.993928] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/rx-0
> (queues) UDEV  [13781.994215] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/tx-0
> (queues) KERNEL[13781.998111] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0 (usb)
> KERNEL[13781.998170] remove   /devices/pci0000:00/0000:00:13.2/usb4/4-5
> (usb) UDEV  [13782.000177] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0 (net) UDEV=20
> [13782.000767] remove   /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0
> (usb) UDEV  [13782.013093] remove =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5 (usb)
>=20
>=20
> This is printed, when I connect the first Arietta to the PC:
>=20
> monitor will print the received events for:
> UDEV - the event which udev sends out after rule processing
> KERNEL - the kernel uevent
>=20
> KERNEL[14000.140611] add      /devices/pci0000:00/0000:00:13.2/usb4/4-5
> (usb) KERNEL[14000.141572] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0 (usb)
> KERNEL[14000.141967] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0 (net)
> KERNEL[14000.142000] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/rx-0
> (queues) KERNEL[14000.142046] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/tx-0
> (queues) UDEV  [14000.162311] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5 (usb) UDEV  [14000.163727] add =
=20
>    /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0 (usb) UDEV=20
> [14000.170206] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0 (net) UDEV=20
> [14000.170572] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/rx-0
> (queues) UDEV  [14000.185482] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-5/4-5:1.0/net/usb0/queues/tx-0
> (queues
>=20
>=20
> This is printed, when I connect the second Arietta to the PC:
>=20
> monitor will print the received events for:
> UDEV - the event which udev sends out after rule processing
> KERNEL - the kernel uevent
>=20
> KERNEL[14108.192714] add      /devices/pci0000:00/0000:00:13.2/usb4/4-4
> (usb) KERNEL[14108.193781] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0 (usb)
> KERNEL[14108.194211] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1 (net)
> KERNEL[14108.194247] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/rx-0
> (queues) KERNEL[14108.194269] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/tx-0
> (queues) UDEV  [14108.211967] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4 (usb) UDEV  [14108.213327] add =
=20
>    /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0 (usb) UDEV=20
> [14108.217344] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1 (net) UDEV=20
> [14108.217615] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/rx-0
> (queues) UDEV  [14108.237237] add    =20
> /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4:1.0/net/usb1/queues/tx-0
> (queues)
>=20
>=20
> The assigment to certain USB ports may vary from time to time.
>=20
>=20
> This is what lsusb prints for both devices
>=20
>=20
> Bus 004 Device 007: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB
> Ethernet/RNDIS Gadget Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            2 Communications
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   idVendor           0x0525 Netchip Technology, Inc.
>   idProduct          0xa4a2 Linux-USB Ethernet/RNDIS Gadget
>   bcdDevice            4.00
>   iManufacturer           1 Linux 4.0.1-20150414.001 with atmel_usba_udc
>   iProduct                2 RNDIS/Ethernet Gadget
>   iSerial                 0
>   bNumConfigurations      2
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           75
>     bNumInterfaces          2
>     bConfigurationValue     2
>     iConfiguration          0
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                2mA
>     Interface Association:
>       bLength                 8
>       bDescriptorType        11
>       bFirstInterface         0
>       bInterfaceCount         2
>       bFunctionClass          2 Communications
>       bFunctionSubClass       6 Ethernet Networking
>       bFunctionProtocol       0
>       iFunction               6 RNDIS
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         2 Communications
>       bInterfaceSubClass      2 Abstract (modem)
>       bInterfaceProtocol    255 Vendor Specific (MSFT RNDIS?)
>       iInterface              4 RNDIS Communications Control
>       CDC Header:
>         bcdCDC               1.10
>       CDC Call Management:
>         bmCapabilities       0x00
>         bDataInterface          1
>       CDC ACM:
>         bmCapabilities       0x00
>       CDC Union:
>         bMasterInterface        0
>         bSlaveInterface         1
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x83  EP 3 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0008  1x 8 bytes
>         bInterval              32
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass        10 CDC Data
>       bInterfaceSubClass      0
>       bInterfaceProtocol      0
>       iInterface              5 RNDIS Ethernet Data
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           32
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                2mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass         2 Communications
>       bInterfaceSubClass     12 Ethernet Emulation
>       bInterfaceProtocol      7 Ethernet Emulation (EEM)
>       iInterface              8 CDC Ethernet Emulation Model (EEM)
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
> Device Qualifier (for other device speed):
>   bLength                10
>   bDescriptorType         6
>   bcdUSB               2.00
>   bDeviceClass            2 Communications
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   bNumConfigurations      2
> Device Status:     0x0001
>   Self Powered
>=20
> Bus 004 Device 008: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB
> Ethernet/RNDIS Gadget Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            2 Communications
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   idVendor           0x0525 Netchip Technology, Inc.
>   idProduct          0xa4a2 Linux-USB Ethernet/RNDIS Gadget
>   bcdDevice            4.00
>   iManufacturer           1 Linux 4.0.1-20150414.001 with atmel_usba_udc
>   iProduct                2 RNDIS/Ethernet Gadget
>   iSerial                 0
>   bNumConfigurations      2
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           75
>     bNumInterfaces          2
>     bConfigurationValue     2
>     iConfiguration          0
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                2mA
>     Interface Association:
>       bLength                 8
>       bDescriptorType        11
>       bFirstInterface         0
>       bInterfaceCount         2
>       bFunctionClass          2 Communications
>       bFunctionSubClass       6 Ethernet Networking
>       bFunctionProtocol       0
>       iFunction               6 RNDIS
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           1
>       bInterfaceClass         2 Communications
>       bInterfaceSubClass      2 Abstract (modem)
>       bInterfaceProtocol    255 Vendor Specific (MSFT RNDIS?)
>       iInterface              4 RNDIS Communications Control
>       CDC Header:
>         bcdCDC               1.10
>       CDC Call Management:
>         bmCapabilities       0x00
>         bDataInterface          1
>       CDC ACM:
>         bmCapabilities       0x00
>       CDC Union:
>         bMasterInterface        0
>         bSlaveInterface         1
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x83  EP 3 IN
>         bmAttributes            3
>           Transfer Type            Interrupt
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0008  1x 8 bytes
>         bInterval              32
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        1
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass        10 CDC Data
>       bInterfaceSubClass      0
>       bInterfaceProtocol      0
>       iInterface              5 RNDIS Ethernet Data
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           32
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower                2mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass         2 Communications
>       bInterfaceSubClass     12 Ethernet Emulation
>       bInterfaceProtocol      7 Ethernet Emulation (EEM)
>       iInterface              8 CDC Ethernet Emulation Model (EEM)
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
> Device Qualifier (for other device speed):
>   bLength                10
>   bDescriptorType         6
>   bcdUSB               2.00
>   bDeviceClass            2 Communications
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   bNumConfigurations      2
> Device Status:     0x0001
>   Self Powered
>=20
>=20
> As I wrote in my initial mail:
> I see no difference in both, which may offer a possibilty to act upon
> when plugging in the one or the other (or both) devices/Ariettas.
>=20
> Before I mailed to the group I read the documentation you linked, but
> may be I missed something which reveals the solution to this
> problem...
> But what did I miss?

Not sure you missed anything, but did you try to set up your own udev rules=
 to=20
invoke your script?  I'm not particularly knowledgeable on writing udev rul=
es,=20
but something like this could work if you experiment with it:


KERNEL=3D=3D"usb[0-9]*", ATTR{idVendor}=3D=3D"0525", ATTR{idProduct}=3D=3D"=
a4a2",=20
NAME=3D"Arietta/%n", SUBSYSTEM=3D=3D"net", ACTION=3D=3D"add", RUN+=3D"my_sc=
ript %k start"

KERNEL=3D=3D"usb[0-9]*", ATTR{idVendor}=3D=3D"0525", ATTR{idProduct}=3D=3D"=
a4a2",=20
NAME=3D"Arietta/%n", SUBSYSTEM=3D=3D"net", ACTION=3D=3D"remove", RUN+=3D"my=
_script %k=20
stop"

=2D-=20
Regards,
Mick

--nextPart2506763.3kVV4Mmrou
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAABCAAGBQJVVnJfAAoJELAdA+zwE4Ye0twIAKL2XRvDq2UyU4TJddwqFHkb
sK1B+Ddh7bMaOBpd+IsO7HaAMTosZ1zxdsG6YL5vbBzgB6f8oaB0dtd9m2TpEY6z
314tXPzDo525IM6p9Wvs24x+91c5z8R346pTF8xHN9qVXp+MqYadK7Tc+xR8dWjY
VWfpBIAiPvfvsZcfritkv6ft+q6ptv0+N6qY3rEcEMNC0HS9AEWHFUWBDNZ57CBp
PI/nr/Me0Bjrn76k6pVpm+EkIx7xFIF8X5h36ea1CnZMxx58XiilhQNmGf3gwzkG
piG+WXNIzpKPz4lrkK32wHeODgOMY7i/hBl8zeyS5LBkTYZK1a8I3Y9HQmnG4wE=
=CUPm
-----END PGP SIGNATURE-----

--nextPart2506763.3kVV4Mmrou--