From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Date: Tue, 5 Oct 2010 20:42:00 +0200 Subject: [U-Boot] Sam9g45 USB CDC Message-ID: <201010052042.01043.korgull@home.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, It looks like I've got most thing implemented regarding USB CDC for the Sam9g45. I do however have some basic questions. One of the things is that I don't see any descriptors in Windows. I installed some inf file found on the net for Ethernet RNDIS but maybe that was wrong. Is there any Windows driver available for the Linux CDC interface ? Second I connected the device to my Linux host and dmesg says looks a bit better : usb 1-4: USB disconnect, address 39 usb 1-4: new high speed USB device using ehci_hcd and address 40 usb 1-4: New USB device found, idVendor=0525, idProduct=a4a1 usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-4: Product: Ethernet Gadget usb 1-4: Manufacturer: Atmel AT91SAM9G45 usb 1-4: configuration #1 chosen from 1 choice lusb output is shown below. I see the following line : iMacAddress 3 (??) Is this normal or did I perhaps miss something crucial here ? One thing I notice is that things are rather slow in Linux and probably also the reason why things don't work in windows yet. It takes a couple of seconds for lsusb to show information and my guess is that still something is wrong. Best regards, Marcel $lsusb -v -d 0525:a4a1 Bus 001 Device 036: ID 0525:a4a1 Netchip Technology, Inc. Linux-USB Ethernet 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 0xa4a1 Linux-USB Ethernet Gadget bcdDevice 3.18 iManufacturer 1 iProduct 2 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 80 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 7 bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 2 Communications bInterfaceSubClass 6 Ethernet Networking bInterfaceProtocol 0 iInterface 5 CDC Header: bcdCDC 1.10 CDC Union: bMasterInterface 0 bSlaveInterface 1 CDC Ethernet: iMacAddress 3 (??) bmEthernetStatistics 0x00000000 wMaxSegmentSize 1536 wNumberMCFilters 0x0000 bNumberPowerFilters 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 9 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 10 CDC Data bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 2 bInterfaceClass 10 CDC Data bInterfaceSubClass 0 Unused bInterfaceProtocol 0 iInterface 4 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 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 0x0200 1x 512 bytes bInterval 0 can't get device qualifier: Connection timed out can't get debug descriptor: Connection timed out cannot read device status, Connection timed out (110)