NetBSD-Users archive

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

Re: OpenPGP Card (USB) in NetBSD 10.0



On Wed, Nov 27, 2024 at 11:09:22AM +0000, Abu Hussain Al Mukhtar wrote:
> ugen* at uhub? vendor 0x20a0 product <0x...> flags 1
> 
> That is indeed what is needed to get the gpg card functionality up and
> running, though  unfortunately, it killed the u2f functionality of the
> device, which is present and working in the generic kernel.
> Are these functionalities mutually exclusive for one single device on
> NetBSD? I have no experience with the configuration of custom kernels,
> so any hint on how can I get both functionalities working at the same
> time with the same device is greatly appreciated.

The fido support needs a usbhid device, while the crypto stuff needs a
usbgen device. The device probably offers two interfaces, and we just
have to make sure to attach them separately (like we do e.g. for
JTAG/serial combos in uftdi).

With a kernel that makes it attach as usbgen, can you show the output
of usbgen from pkgsrc/sysutils/usbutil for your device? Like:

	usbgen -f ugen0 -v -D

That would probably help to find a patch that allows both modes at the
same time.

Martin


Home | Main Index | Thread Index | Old Index