From owner-freebsd-arm@freebsd.org Fri Feb 10 17:34:42 2017 Return-Path: Delivered-To: freebsd-arm@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 14047CD83B1 for ; Fri, 10 Feb 2017 17:34:42 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA72D327 for ; Fri, 10 Feb 2017 17:34:41 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 2905e3bc-efb7-11e6-b3c2-c9f38144898e X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 2905e3bc-efb7-11e6-b3c2-c9f38144898e; Fri, 10 Feb 2017 17:34:23 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v1AHYW6I017074; Fri, 10 Feb 2017 10:34:33 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1486748072.10020.253.camel@freebsd.org> Subject: Re: usb trouble cubox bsd 11 - FreeBSD 11.0-STABLE #0 r310359: Wed Dec 21 18:19:11 UTC 2016 From: Ian Lepore To: LE TUTOUR Jean , Warner Losh Cc: "freebsd-arm@freebsd.org" Date: Fri, 10 Feb 2017 10:34:32 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 17:34:42 -0000 On Fri, 2017-02-10 at 16:59 +0000, LE TUTOUR Jean wrote: > Hello, freebsd team: > > Please see listing below > I have two problems: > > > > > usb seems not work : nothing in dmesg , when I plug something in > > usb > > /sbin/shutdown: Permission denied.  :  I am  freebsd/freebsd > Don't you have any idea ? It works on linux , generally, sorry > Whith a debian  on the same plateform, no problems > > [...] For shutdown, you must be root, or a member of the group 'operator' to use the command. I don't have time right now to dig into this too deeply, but I can add a few comments about usb on imx6 systems... Usb is known to work on cubox (we use the same uSOM module in products at $work). The usb root ports on imx6 do not recognize device-removed events for some reason.  You can plug any device into the host port and it should be recognized, but when you remove it the system doesn't notice.  That means if you plug something else in, that also doesn't get noticed, and it's stuck that way until the next reboot.  You can work around that by plugging in a hub -- it does notice when you remove devices from hub ports. On the stable-11 branch, the usb host port should work, but the OTG port is not properly configured as a second host port.  On a cubox that would appear as only one of the slots working (I can't remember if it's the upper or lower connector that works). I fixed the OTG-as-host in 12-current recently (r311850), but haven't MFC'd the fix to the stable-11 or 10 branches yet.  Maybe I can find time to do that this weekend. -- Ian