From owner-freebsd-arm@FreeBSD.ORG Thu Dec 27 09:16:02 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4198CB38 for ; Thu, 27 Dec 2012 09:16:02 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by mx1.freebsd.org (Postfix) with ESMTP id B70A48FC12 for ; Thu, 27 Dec 2012 09:16:01 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id l5so11765662lah.39 for ; Thu, 27 Dec 2012 01:16:00 -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=9R5BQMJ776iSJg3b3UQ+1UTWaskkFhDxI0k7Z2KNoxQ=; b=fRjNGp8KgcdYNOdJqCPjiYiaTGHyL+mN1/5cPo1UmgEbbhAYXsUAtACDh6NIAhq5Lj C/RuOGLpBwrNFXJMpmDWjGIaDu2D8HzBBfQ0gpDPi/mQlu9JNgxm0udBpalemkO87XcB fW5E88+cIi55E8KA6UTDTV7FUcTMZ7hlr9MPQRw51o7IWyu/fxd9OB1oN2q2inc27GV8 7R2ZMznxw8dviqx3KFbTJVVz3+eO4v14i+56DEL/CkMDdRss3CZXvPhAnUYuvpA4BdgP qqKiLxb8Bv5I0AXW4wOUvhaFrmYaVpVamCCshWKPu9itQOQtDQS77lTaK3ygX/HYMhtw w+3g== MIME-Version: 1.0 Received: by 10.152.108.37 with SMTP id hh5mr28058788lab.52.1356599760373; Thu, 27 Dec 2012 01:16:00 -0800 (PST) Received: by 10.152.144.69 with HTTP; Thu, 27 Dec 2012 01:16:00 -0800 (PST) In-Reply-To: <201212271004.01598.hselasky@c2i.net> References: <201212271004.01598.hselasky@c2i.net> Date: Thu, 27 Dec 2012 17:16:00 +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, 27 Dec 2012 09:16:02 -0000 Hans, 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? > Please see msg: https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci-patch.txt Seems it passes. So does this mean it works this way? Ganbold > --HPS