From owner-freebsd-usb@FreeBSD.ORG Wed Jun 30 21:29:42 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8580C106564A for ; Wed, 30 Jun 2010 21:29:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swip.net [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id E0A198FC08 for ; Wed, 30 Jun 2010 21:29:41 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=ps-31XnyCUMA:10 a=GQCbJdZ--msA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=c4CDZTOEIw2uyCs4e3IA:9 a=1WUbOrAQmY7dIRSFGUYA:7 a=-DzxRGpAGeD491ouO3fefHR0K84A:4 a=wPNLvfGTeEIA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1238911218; Wed, 30 Jun 2010 23:29:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 30 Jun 2010 23:26:39 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201006302253.07315.frank@barda.agala.net> In-Reply-To: <201006302253.07315.frank@barda.agala.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006302326.40046.hselasky@c2i.net> Cc: Subject: Re: Connecting an Atmel AT91SAM7X microcontroller X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 21:29:42 -0000 On Wednesday 30 June 2010 22:53:02 Frank J. Beckmann wrote: > Hello, > > I'm trying to connect an Atmel AT91SAM7X microcontroller to my system > running FreeBSD 8.1-PRERELEASE. The Linux instructions tell me to use the > usbserial module via > > modprobe usbserial vendor=0x03eb product=0x6124 > > So I added > > product ATMEL AT91 0x6124 AT91 Microcontroller > > to > > /usr/src/sys/dev/usb/usbdevs > > and > > {USB_VPI(USB_VENDOR_ATMEL, USB_PRODUCT_ATMEL_AT91, 0)}, > > to > > /usr/src/sys/dev/usb/serial/ugensa.c > > The microcontroller now gets recognized but attaching it fails: > > ugen1.2: at usbus1 > ugensa0: > on usbus1 > ugensa0: No interfaces > device_attach: ugensa0 attach returned 6 > ugensa0: > on usbus1 > ugensa0: No interfaces > device_attach: ugensa0 attach returned 6 > > > usbconfig -d ugen1.2 dump_all_config_desc > > gives: > > ugen1.2: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0043 > bNumInterfaces = 0x0002 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00c0 > bMaxPower = 0x0000 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0002 > bInterfaceSubClass = 0x0002 > bInterfaceProtocol = 0x0000 > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x00 > RAW dump: > 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 > > > Additional Descriptor > > bLength = 0x04 > bDescriptorType = 0x24 > bDescriptorSubType = 0x02 > RAW dump: > 0x00 | 0x04, 0x24, 0x02, 0x00 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x06 > RAW dump: > 0x00 | 0x05, 0x24, 0x06, 0x00, 0x01 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x01 > RAW dump: > 0x00 | 0x05, 0x24, 0x01, 0x00, 0x01 > > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0083 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0008 > bInterval = 0x00ff > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0001 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x000a > bInterfaceSubClass = 0x0000 > bInterfaceProtocol = 0x0000 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0001 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0082 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > What do I have to do to connect that microcontroller? > Hi, Try loading/patching the umodem driver. --HPS