From owner-freebsd-usb@FreeBSD.ORG Wed Jun 30 21:11:09 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 8DFC8106564A for ; Wed, 30 Jun 2010 21:11:09 +0000 (UTC) (envelope-from frank@barda.agala.net) Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by mx1.freebsd.org (Postfix) with ESMTP id 1C3598FC19 for ; Wed, 30 Jun 2010 21:11:08 +0000 (UTC) Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de ) by mailout10.t-online.de with smtp id 1OU4Ht-0006UY-NH; Wed, 30 Jun 2010 22:53:41 +0200 Received: from mailhub.barda.agala.net (b7CvSEZbZhExVHpJvHkmFLI2Z9pVuU9u2wvmx5b5UFjIZscPCY2oqoIDS8CtqHWZr9@[84.133.225.79]) by fwd05.aul.t-online.de with esmtp id 1OU4Hl-1UZ9kG0; Wed, 30 Jun 2010 22:53:33 +0200 Received: from smtp.barda.agala.net (smtp.barda.agala.net [192.168.33.25]) by mailhub.barda.agala.net (Postfix) with ESMTP id 48BA24F6D20 for ; Wed, 30 Jun 2010 22:53:30 +0200 (CEST) Received: from babylon.barda.agala.net (babylon.barda.agala.net [192.168.77.242]) by smtp.barda.agala.net (Postfix) with ESMTP id 4006B4F6D1F for ; Wed, 30 Jun 2010 22:53:30 +0200 (CEST) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-usb@freebsd.org Date: Wed, 30 Jun 2010 22:53:02 +0200 User-Agent: KMail/1.13.3 (FreeBSD/8.1-PRERELEASE; KDE/4.4.4; i386; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201006302253.07315.frank@barda.agala.net> X-ID: b7CvSEZbZhExVHpJvHkmFLI2Z9pVuU9u2wvmx5b5UFjIZscPCY2oqoIDS8CtqHWZr9@t-dialin.net X-TOI-MSGID: ea845dd6-75ea-4184-9164-98128d8c2ea6 Subject: 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:11:09 -0000 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? Bye Frank