WIP: Support for NetBSD #44
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!44
Loading…
Reference in a new issue
No description provided.
Delete branch "netbsd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Patch by nia from pkgsrc.se (NetBSD ports)
Should work fine, but I'll test it in a VM.
builds.sr.ht mostly has NetBSD CI support finished, but it could still take a while until a NetBSD image is usable; but afterwards a NetBSD CI can be added.
Compiles fine in my NetBSD VM, but (same as with OpenBSD) the USB stack doesn't seem to work correctly with QEMU ("hub1: device problem, disabling port 2") when passing through my USB device to the VM
To be honest, using libusb backend for HID device under NetBSD/OpenBSD are not that helpful as it is not easy to use the libusb to replace the HID driver. It will be good to use native HID api.
I think this the statement can be applied to Linux platform too.
Maybe we could have two separate backends for BSD too: libusb + native.
For Linux it is at least possible to detach kernel hid driver. But it is okay to have libusb + native.
Take note this is different from FreeBSD case. Back in 2012 I did tested quite a bit of FreeBSD USB stuff including HIDAPI as the USB stack allows generic driver along with HID driver for generic HID device.
I tested quite a bit of FreeBSD HPS USB stack back in 2007/2008 time. Then I tested for Alan Ott for FreeBSD HIDAPI in 2012.
But I am no longer be able to test under macOS, NetBSD/OpenBSD/HaiKu now that my Mac Mini 2011 was dead.
Reference:
http://www.apcupsd.com/manual/manual.html#bsd-usb-configuration
Pull request closed