Re: USB device fails to attach
Nick Hudson <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
On 05/08/2025 04:46, matthew green wrote: > can you turn on some of the USB_DEBUG and other options > (new kernel), boot it, sysctl -w the new debug things that > appeared to at least 1, and plug in the cart, run > "vmstat -u usbhist" and then put the output from it > somewhere -- it will likely be large. > > at least these i think, too: > > UHCI_DEBUG > OHCI_DEBUG > EHCI_DEBUG > XHCI_DEBUG > UHUB_DEBUG > UMASS_DEBUG > UGEN_DEBUG > > the default history is 50k entries, so it should be more > than enough, but if not, USBHIST_SIZE can increase or > decrease it. What Matt said... You might like to start with just usbdebug = 1 to see why usbd_set_config_index failed https://nxr.netbsd.org/xref/src/sys/dev/usb/usb_subr.c#684 I did put some instructions about USB debug on www.netbsd.org, but I can't find them now. :( Nick