From owner-freebsd-mips@freebsd.org Mon Oct 3 00:25:52 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7F90AC60C6 for ; Mon, 3 Oct 2016 00:25:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FDC0D79 for ; Mon, 3 Oct 2016 00:25:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x22b.google.com with SMTP id r145so106601775ior.0 for ; Sun, 02 Oct 2016 17:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1tmdtwhj86JHllLKlXuz1sqygnESFci7xBX4qaJrym4=; b=WKQmPiJGAZSNsi1IksTqjKtagaivHJ0Au1d7BaoL8iSoo16qX1YQWqj057DgX8Jmcw 0Musor6dsMU4DxfUuJfKQzw9rkpaZF3zV6JuQrtiQAbrRA5S4rjI24aOH+6snhVj6mUx jabj6aJYxts9pKcn+iWl4sReKcpfSSV9O0dASGWz6vzNKcYDdNq3DDGoiW14UrcrrnTh ufZQjeehfcn7CAU7O7X6EC8IuFtqrxEamtS0H48wh3zfY+Af1tLHQNYZaqqPAUHxYau1 QBsZ0s4SCDuxt9LoCqY6tR/eUcfOzxZdfcPuBVrH/4RM0yexSYR6JBcQLnlF9DTyukj2 lvVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1tmdtwhj86JHllLKlXuz1sqygnESFci7xBX4qaJrym4=; b=feB/H39Xw4RyGrkyCjqXbRuaXuUrKqF2DwLBmaMrYM3mcCwlE4NxtYRkn36Z9oD/o4 R5XUHdK4XgqQbcC3s66fgNIJrtZiGZZHtz8YSlX6iN4o/EcOl2tLngS3J7QhMDGqIk2T kvTeUV92fbAr6mWVeh9JZpkepB4gdQ6DDYMCLAuDPz6J4nAsfoLX6jrgeVRbgQfSa9Hf PUY6XCNHc0MM60XOP/fmFhvDvK3OcG5lEUdZtV9m/35b7DAZyzuQqVBUI6X/Ke+SJy+F jfwhT/hhxMqbK0t1AyMVWUk7QMJ9zH/pH6SxeeALqLv5xEbZLjxL49paECnjmDK0VYJf jKNg== X-Gm-Message-State: AA6/9RmCEjBWWzbbU3BgXk/P829Ag9NuRCdVIYe3/TJ6fKSoet18K4tAEP9ijKxqUYOGNitb4vyeIAxVszZP0A== X-Received: by 10.107.181.211 with SMTP id e202mr17930055iof.99.1475454351847; Sun, 02 Oct 2016 17:25:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Sun, 2 Oct 2016 17:25:51 -0700 (PDT) In-Reply-To: <262371.61155.qm@web101715.mail.ssk.yahoo.co.jp> References: <379174.95890.qm@web101716.mail.ssk.yahoo.co.jp> <063ff05f-d464-823a-495c-abb800dfdaf5@freebsd.org> <105245.8987.qm@web101701.mail.ssk.yahoo.co.jp> <181104.30133.qm@web101710.mail.ssk.yahoo.co.jp> <262371.61155.qm@web101715.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Sun, 2 Oct 2016 17:25:51 -0700 Message-ID: Subject: Re: Solve: AR7161 USB To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 00:25:52 -0000 Well, there are board specific config and hints files for this reason. :) Other boards have specific config/hints files that are to enable USB. This happens way too frequently :( -adrian On 2 October 2016 at 16:41, Mori Hiroki wrote: > Hi. > > I add this setting to rc script to WZR-HP-AG300H at ZRouter > build system. > > I think sys/mips/conf have only soc base setting. Because of > soc and board setting is very scrambled. It is hard find target > setting. We are never correct all world board setting. > > Regards > > Hiroki Mori > > > ----- Original Message ----- >> From: Adrian Chadd >> To: Mori Hiroki >> Cc: "freebsd-mips@freebsd.org" >> Date: 2016/9/30, Fri 06:41 >> Subject: Re: Solve: AR7161 USB >> >> Cool. There's some stuff you can put in hints to set on/off gpio >> functions. Can you provide a diff to the right .hints file so it's >> done at boot time? >> >> >> -adrian >> >> On 28 September 2016 at 23:46, Mori Hiroki wrote: >>> Hi >>> >>> Thanks for your advice. I can use USB on AR7161. >>> >>> # gpioctl 2 1 >>> # usbconfig >>> >>> ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr= >>> SAVE (0mA) >>> ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr >>> =SAVE (0mA) >>> ugen0.2: at usbus0, cfg=0 md=HOST >> spd=FULL ( >>> 12Mbps) pwr=ON (100mA) >>> >>> Thanks. >>> >>> Hiroki Mori >>> >>> ----- Original Message ----- >>>> From: Adrian Chadd >>>> To: Mori Hiroki >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2016/9/29, Thu 13:21 >>>> Subject: Re: AR7161 USB >>>> >>>> it could be something to do with port or phy power. check the default >>>> gpio settings for your board; some don't enable usb phy power. >>>> >>>> >>>> -a >>>> >>>> >>>> On 28 September 2016 at 20:51, Mori Hiroki >> wrote: >>>>> Hi. >>>>> >>>>> on WZR-HP-G300NH(AR9132) OK >>>>> >>>>> >>>>> >>>>> # usbconfig >>>>> ugen0.1: at usbus0, cfg=0 md=HOST >> spd=HIGH >>>> (480Mbps) pwr >>>>> =SAVE (0mA) >>>>> ugen0.2: at usbus0, >> cfg=0 md=HOST >>>> spd=FULL ( >>>>> 12Mbps) pwr=ON (100mA) >>>>> # >>>>> >>>>> >>>>> on WZR-HP-AG300H(AR7161) NG >>>>> >>>>> # usbconfig >>>>> ugen0.1: at usbus0, cfg=0 md=HOST >> spd=FULL >>>> (12Mbps) pwr= >>>>> SAVE (0mA) >>>>> ugen1.1: at usbus1, cfg=0 md=HOST >> spd=HIGH >>>> (480Mbps) pwr >>>>> =SAVE (0mA) >>>>> >>>>> I use ZRouter on build. I check hints file. I seem same as >>>>> sys/mips/conf/AP96.hints. >>>>> >>>>> Thanks >>>>> >>>>> Hiroki Mori >>>>> >>>>> >>>>> >>>>> ----- Original Message ----- >>>>>> From: Sean Bruno >>>>>> To: freebsd-mips@freebsd.org >>>>>> Cc: >>>>>> Date: 2016/9/27, Tue 23:10 >>>>>> Subject: Re: AR7161 USB >>>>>> >>>>>> >>>>>> >>>>>> On 09/27/16 04:02, Mori Hiroki wrote: >>>>>>> Hi. >>>>>>> >>>>>>> I try to use AR7161 target(WZR-HP-AG300H) on head today. >>>>>>> But I can't use USB this target. Device is probe on >> boot but >>>> USB device >>>>>>> insert not detect device. >>>>>>> >>>>>>> Any one use this ? >>>>>>> >>>>>>> Regards. >>>>>>> >>>>>>> Hiroki Mori >>>>>> >>>>>> Is umass.ko loaded? (I assume you are using a USB storage >> device). >>>>>> >>>>>> sean >>>>>> >>>>> _______________________________________________ >>>>> freebsd-mips@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>>>> To unsubscribe, send any mail to >>>> "freebsd-mips-unsubscribe@freebsd.org" >>>> >>> _______________________________________________ >>> freebsd-mips@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>> To unsubscribe, send any mail to >> "freebsd-mips-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"