Re: USB-OTG on BananaPi M1

Hans Petter Selasky <[email protected]>
Newsgroups gmane.os.freebsd.devel.usb,gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.