From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 14:06:41 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0D8F59EF for ; Thu, 3 Jan 2013 14:06:41 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ia0-f170.google.com (mail-ia0-f170.google.com [209.85.210.170]) by mx1.freebsd.org (Postfix) with ESMTP id D722E9B5 for ; Thu, 3 Jan 2013 14:06:40 +0000 (UTC) Received: by mail-ia0-f170.google.com with SMTP id i1so12846768iaa.1 for ; Thu, 03 Jan 2013 06:06:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=q7mbW7kn6JZCh9nVdAbVhJIVyaCcVJZgoyxEHfeDFZk=; b=u8Zwz6zoWib5UcLg6ltU7kCaCi+3sU3h+RB2MFS3z8fi8KuN+qFoAGqnevCIncmWpE OY5ONB+wDo1df8pp1/7aWL3+TM8SN00xLtwFWrkuSZ/ieUGagyUHj1rlBFb/V5TQY8wQ zN2trnxN7Aay3JiuZ0CZN+LhyGY7gjnREYT2wVw8ify04W/MiKsAmFN3UQBMKQD63f+S RUm5fgdx8TAtNnX3ZqckPZMv5xkyCMNBi+Rig2gtgi2O6sUJwJbIkQtMHlehkhBydrZ0 3jXcYEKU/R9JNDOYcEO0toKwkwqZi4NfBP47ozR+4i45hj1J8/nKbuNGXwWP0tNMsjCZ nkiw== MIME-Version: 1.0 Received: by 10.50.207.70 with SMTP id lu6mr39727025igc.50.1357221994327; Thu, 03 Jan 2013 06:06:34 -0800 (PST) Received: by 10.64.96.196 with HTTP; Thu, 3 Jan 2013 06:06:34 -0800 (PST) In-Reply-To: <201212271004.01598.hselasky@c2i.net> References: <201212271004.01598.hselasky@c2i.net> Date: Thu, 3 Jan 2013 22:06:34 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 14:06:41 -0000 Hans, I was able to give power to one of usb controllers and now I see ehci: http://pastebin.ca/2299028 But even though devices scbus, da, pass are included in kernel config, it is not detecting ufs freebsd install memstick. But from outside I see the led light of usb stick. Can you advise me the ways to debug or next thing to try for this issue? FYI, USB_DEBUG, USB_REQ_DEBUG, USB_VERBOSE options are enabled in config. thanks, Ganbold On Thu, Dec 27, 2012 at 5:04 PM, Hans Petter Selasky wrote: > On Wednesday 26 December 2012 17:05:35 Ganbold Tsagaankhuu wrote: >> Just some information, >> >> Still nothing useful yet, but with the help of andrew@, ray@, gonzo@ >> and other arm guys kernel boots: >> >> https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci.txt >> >> Tried usb/ehci glue code, no success yet, so maybe I will leave it now >> and try next SD/MMC :) >> > > Hi, > > It looks like number of ports is zero. Can you try this: > > Edit sys/dev/usb/controller/ehci.c > > > Find this: > sc->sc_noport = EHCI_HCS_N_PORTS(sparams); > > Add this: > if (sc->sc_noport == 0) > sc->sc_noport = 1; > > Does the EHCI work now? > > --HPS