nusbrd: pass $usbdebug to nusb/usbd

This can be usefull for debugging usb enumeration issues from boot,
if one has the chance to pass parameters on the bootloader.

It was initially suggested in a troubleshooting session todo as
a quick modification, but it can be usefull in general.
This commit is contained in:
cinap_lenrek 2024-12-09 01:30:16 +00:00
parent eb52c928b1
commit aa1e68e9fe
2 changed files with 10 additions and 2 deletions

View file

@ -448,7 +448,7 @@ will appear when using the WIFI interface for netbooting.
To avoid the prompt, the To avoid the prompt, the
.I password .I password
can be specified with the boot parameter above. can be specified with the boot parameter above.
.SS \fLwpaopts=\fivalue\fP .SS \fLwpaopts=\fIvalue\fP
Pass Pass
.I value .I value
as additional options to as additional options to
@ -956,6 +956,14 @@ When defined,
.IR nusbrc (8) .IR nusbrc (8)
will use the dynamically assigned usb device address to name will use the dynamically assigned usb device address to name
usb devices instead of the device unique name. usb devices instead of the device unique name.
.SS \fLusbdebug=\fIvalue\fP
When defined, pass
.I value
as arguments to
.IR usbd (4).
Usually used to pass
.B -d
flags for verbose debug printing.
.SS VIDEO .SS VIDEO
.SS \fL*nocga=\fP .SS \fL*nocga=\fP
This inhibits the kernel and This inhibits the kernel and

View file

@ -5,7 +5,7 @@ if(! bind -a '#u' /dev)
mkdir -p -m 700 '#σc/usb' mkdir -p -m 700 '#σc/usb'
mkdir -p -m 700 '#σc/usbnet' mkdir -p -m 700 '#σc/usbnet'
if(! nusb/usbd) if(! nusb/usbd $usbdebug)
exit exit
@{ @{