From owner-freebsd-arm@freebsd.org Thu Mar 28 13:06:57 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47252155CB2B for ; Thu, 28 Mar 2019 13:06:57 +0000 (UTC) (envelope-from per@hedeland.org) Received: from outbound1g.eu.mailhop.org (outbound1g.eu.mailhop.org [52.28.6.212]) (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 272DD6FB47 for ; Thu, 28 Mar 2019 13:06:52 +0000 (UTC) (envelope-from per@hedeland.org) ARC-Seal: i=1; a=rsa-sha256; t=1553777441; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=KwqpeWxEnNElo14hEL6UmMZ99lgcIVqGmjJk9JXMWo82b0AOHHWesaB6PjFw1Qj/YEesiugg+cHTX QztqM7NolEzoZwueBX2ojYhDwRp7aK7xNQKT8McUK13hODtLEyP+Cpaek1Ai6tO7pEdWJ820+sOmJC LyxXOgG8zvAKsb97Tp/GNJ2yGBc+mJjADOGrEN5L2suxkdaxih5lgdV7ksTWc+oUxi2n1TuA1gwUFv BWQgTG9nyROsB6UZ0n4+Eln6NNx/hcva6L+42QEyJtKquxkXO86KJ/L4WA37ovz0FrXnEjflCTVasr 4pVRDG2LslcSv/SZ4sLjQ+8XuDGRejA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:content-type:mime-version:date:message-id:cc: subject:from:to:dkim-signature:from; bh=mEkXS6SqelzBtWNm1L8GdmFxGy6Ew0zDUmDgTJ8kGXg=; b=lmx/mP3lWjQsxOTfVuFuxAea/iwuo7NbC6h3et0MDrQvof6iCzsEnt74yuDBl+ZdymHCNnNIAOnuK XwtKbW853JSjcAfupS8KGjNSMz5uP5W4tI78Rf+abujibnSbdc2mSVDbLNtx0GU/mJVFaoi5par2LN W5ExLd8ikrVPtF/sdGYgwiT4gtRSN3YCeV6b1L7fCF9onsOcAFeBrTSECvML/iAIus7EYpwXw2sape jW6KNrVeOxiQnv7u88SWzd5CNTOMb+BuylTYe+C85sj+O3FH2kldhr7IxRYr+VvT7vfCP+oAYEmBQ9 ieTrw+z8J9/nI5161A9duMmQ3ZUDUAQ== ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=none smtp.mailfrom=hedeland.org smtp.remote-ip=81.228.155.78; dmarc=none header.from=hedeland.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:content-type:mime-version:date:message-id:cc: subject:from:to:from; bh=mEkXS6SqelzBtWNm1L8GdmFxGy6Ew0zDUmDgTJ8kGXg=; b=dUafAj1ezjnNt39JGDWjdsUlCCE//pxBW3Z1rDZE5CChDJ2ThDGUxjX7B9XlsZApwlCZ+/0+XTZYB 2JEhDs8JJr1U5WcqFJDnhin67OUdvrJNt9mdHz/dA/sJaoXhn7aDGC3FYk6wK0hQ7+leXsoYFV2FQp hjt2Lf84p8ZVWuTcFq//b2SOoz2tT4Tko3KCqX5FHgK/Y4rrUogEiXw8ybgJ6BF2tZcjkdZzMPKqRo PfAoINVEh2SdsG+gZVA8RMz6UI9M043+mEW8cnWfS80Iwxax8OqADlGKsd4Pf/vd+TYmcf0o6fMdKu mKsFfPop5viJL9Rjr7dgru3aFF9cw7Q== X-MHO-RoutePath: cGVyaGVkZWxhbmQ= X-MHO-User: 16af662b-5158-11e9-908b-352056dbf2de X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 81.228.155.78 X-Mail-Handler: DuoCircle Outbound SMTP Received: from hedeland.org (unknown [81.228.155.78]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id 16af662b-5158-11e9-908b-352056dbf2de; Thu, 28 Mar 2019 12:50:39 +0000 (UTC) Received: from pluto.hedeland.org (pluto.hedeland.org [10.1.1.5]) by tellus.hedeland.org (8.15.2/8.15.2) with ESMTPS id x2SCocjN053181 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 28 Mar 2019 13:50:38 +0100 (CET) (envelope-from per@hedeland.org) To: freebsd-arm@freebsd.org From: Per Hedeland Subject: How to force host mode for RPi Zero USB? Cc: freebsd-questions@freebsd.org Message-ID: <222dd329-e0d5-31ad-512a-898040c44c1c@hedeland.org> Date: Thu, 28 Mar 2019 13:50:38 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 272DD6FB47 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outbound.mailhop.org header.s=dkim-high header.b=dUafAj1e X-Spamd-Result: default: False [-3.54 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[outbound.mailhop.org:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[hedeland.org,mx2.mailhop.org]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-0.28)[asn: 16509(-1.31), country: US(-0.07)]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_ALLOW(-1.00)[i=1]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:16509, ipnet:52.28.0.0/16, country:US]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[outbound.mailhop.org:s=dkim-high]; RECEIVED_SPAMHAUS_PBL(0.00)[78.155.228.81.zen.spamhaus.org : 127.0.0.11]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[hedeland.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.6.28.52.list.dnswl.org : 127.0.20.0]; R_SPF_NA(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 13:06:57 -0000 Hi, I have a 4-port USB hub that attaches directly to the RPi Zero board: http://www.uugear.com/product/zero4u/ . This seems to work fine on FreeBSD - as long as I have an OTG adapter/cable connected to the then otherwise unused data port on the Zero, which is a quite annoying requirement IMHO. Without it, the FreeBSD USB stack uses device mode (as described in the handbook), and (of course) doesn't even see the add-on hub. According to the hub documentation (http://www.uugear.com/doc/Zero4U_UserManual.pdf), "Linux" uses host mode by default, and requries a DT overlay to use device mode. The FreeBSD automatic switching is arguably more elegant, but is IMHO inferior in a case like this (it's of course also impossible to make any USB devices work when connected to the Zero data port *without* an OTG adapter/cable). So, as $SUBJECT - surely there is a way to force host mode? --Per Hedeland