tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: USB slave



On Thu, March 9, 2017 4:38 am, Hiroyuki Bessho wrote:
> At Mon, 6 Mar 2017 17:33:51 +0100,
> Manuel Bouyer wrote:
>>
>> On Mon, Mar 06, 2017 at 04:26:48PM +0000, Emmanuel Dreyfus wrote:
>> > Hello
>> >
>> > Is it possible to use a USB port as a USB slave? I would like to
>> > make it act as a keyboard to output some data to another machine.
>> >
>> > The usb(4) man page suggests the NetBSD kernel can only act as a
>> > USB master. But perhaps there is a hardware limitation there?
>>
>> Yes, the hardware for USB master or slave are differents.
>> To allow a device to act either as master of slave USB OTG has been
>> specified.
>> Some SoC platforms have such controllers.
>> But at this time NetBSD supports OTG only in master mode.
>> Supporting slave mode would require a non-trivial amount of work on the
>> USB
>> stack.
>
>   I have a project to support slave-side USB in NetBSD kernel.  I made
> an interim report about the project at AsiaBSDCon 2016.  I hope I can
> bring up patches for proposal in a few months.

Isn't there already a slave side USB driver for emulated ethernet for
StrongARM/PXA devices ?




Home | Main Index | Thread Index | Old Index