* [U-Boot] Sam9g45 USB CDC
@ 2010-10-05 18:42 Marcel
2010-10-05 19:54 ` Marcel
2010-10-09 7:22 ` Remy Bohmer
0 siblings, 2 replies; 3+ messages in thread
From: Marcel @ 2010-10-05 18:42 UTC (permalink / raw)
To: u-boot
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Sam9g45 USB CDC
2010-10-05 18:42 [U-Boot] Sam9g45 USB CDC Marcel
@ 2010-10-05 19:54 ` Marcel
2010-10-09 7:22 ` Remy Bohmer
1 sibling, 0 replies; 3+ messages in thread
From: Marcel @ 2010-10-05 19:54 UTC (permalink / raw)
To: u-boot
Hi,
Never mind, I overlooked the string descriptors.
The funny thing is that the Linux host just continues where the windows host
simply stops communicating with the device.
regards,
Marcel
> 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)
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Sam9g45 USB CDC
2010-10-05 18:42 [U-Boot] Sam9g45 USB CDC Marcel
2010-10-05 19:54 ` Marcel
@ 2010-10-09 7:22 ` Remy Bohmer
1 sibling, 0 replies; 3+ messages in thread
From: Remy Bohmer @ 2010-10-09 7:22 UTC (permalink / raw)
To: u-boot
Hi,
2010/10/5 Marcel <korgull@home.nl>:
> 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.
RNDIS is not supported in U-boot.
> Is there any Windows driver available for the Linux CDC interface ?
This driver works reliable in our situation combined with the
CDC-layer of U-boot:
http://www.thesycon.de/eng/usb_cdcecm.shtml
Kind regards,
Remy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-09 7:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05 18:42 [U-Boot] Sam9g45 USB CDC Marcel
2010-10-05 19:54 ` Marcel
2010-10-09 7:22 ` Remy Bohmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox