Open yxue2 opened 3 years ago
@yxue2 please try running the gadget as root, if that doesn't work then please strace the gadget and see which file is getting which error. NO_ACCESS corresponds to these three errno
values:
EACCES 13 Permission denied
EROFS 30 Read-only file system
EPERM 1 Operation not permitted
When I followed the example gadget_uac2.c to create UAC2 gadget, usbg_create_function returns NO_ACCESS error. And I found that &f_uac2_attrs causes this error in usbg_set_function_attrs method.
Do you have any idea what causes it?