[U-Boot] [PATCH] dfu:tests: Modify dfu_gadget_test.sh to accept USB device major:minor number

Tormod Volden lists.tormod at gmail.com
Thu Aug 13 14:37:06 CEST 2015


On Wed, Aug 12, 2015 at 11:44 PM, Lukasz Majewski wrote:
> In the dfu-util it is possible to set major:minor number by unsing -d flag
> (-d 0451:d022).
> Such option is very handy when many DFU devices are connected to a single
> host PC. This commit allows testing when above situation emerges.

> +If many DFU devices are connected, it is necessary to specify USB device major
> +and minor numbers (0451:d022). One can get them by running "lsusb" command on
> +a host PC.

The 0451:d022 is a USB vendor/product ID in the device's own USB
descriptor. To me "major" and "minor" sounds more like some host OS
allocated properties, like Linux device major and minor numbers. I
would have called it "USB device vendor/product ID" instead.

"dfu-util allows filtering on USB device vendor/product ID by using
the -d flag (-d 0451:d022)."

"If many DFU devices are connected, it may be useful to filter on USB
vendor/product ID (0451:d022)."

Best regards,
Tormod

PS. There is a typo "unsing" above.


More information about the U-Boot mailing list