From nobody Sun Apr 24 10:01:26 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AD78119973F7; Sun, 24 Apr 2022 10:01:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KmNvq71Hnz3vhN; Sun, 24 Apr 2022 10:01:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [176.74.213.87]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D815D26012D; Sun, 24 Apr 2022 12:01:26 +0200 (CEST) Message-ID: <4ce2559a-56a7-cad4-a884-16781e6e84b2@selasky.org> Date: Sun, 24 Apr 2022 12:01:26 +0200 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: USB-OTG on BananaPi M1 Content-Language: en-US To: Peter Jeremy , freebsd-arm@freebsd.org, freebsd-usb@freebsd.org References: From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KmNvq71Hnz3vhN X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-0.25 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.30)[0.301]; NEURAL_SPAM_LONG(0.75)[0.749]; MLMMJ_DEST(0.00)[freebsd-arm,freebsd-usb]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 1159 Lines: 49 On 4/24/22 03:31, Peter Jeremy wrote: > (I actually want to emulate a keyboard but I thought I'd start with > something that's documented to work). Some hints for that: > usbtest > [0] - Select Computer Mode: > > 1) This computer is Running the Device Side > 2) This computer is Running the Host Side > x) Return to previous menu > >>1 > [0.1] - Select Device Mode Test Group: > > 1) Audio (UAUDIO) > 2) Mass Storage (MSC) > 3) Ethernet (CDCE) > 4) Keyboard Input Device (UKBD) > 5) Mouse Input Device (UMS) > 6) Message Transfer Protocol (MTP) > 7) Modem (CDC) > 8) Generic Endpoint Loopback (GENERIC) > x) Return to previous menu > >>4 > [0.1.4] - Select Keyboard Model: > > 1) Generic Keyboard > x) Return to previous menu > >>1 > [0.1.4.1] - Default Keyboard Settings: > > 1) Set silent mode (selected) > 2) Set pattern mode > 3) Change pattern: 'abcdefpattern' > 4) Change key press interval: 1023 ms > x) Return to previous menu > s: Ready for enumeration And: /boot/kernel/g_keyboard.ko Patches are welcome! --HPS