xairy / raw-gadget

USB Raw Gadget — a low-level interface for the Linux USB Gadget subsystem
333 stars 35 forks source link

ioctl(USB_RAW_IOCTL_RUN): No such device #6

Closed gggrafff closed 4 years ago

gggrafff commented 4 years ago

Здравствуйте. Подскажите, пожалуйста, в чём может быть проблема? Запускаю Ваш пример https://github.com/xairy/raw-gadget/blob/master/examples/keyboard.c, но операция ioctl(fd, USB_RAW_IOCTL_RUN, 0) возвращает -1, в консоль выводится сообщение ioctl(USB_RAW_IOCTL_RUN): No such device. Спасибо.

Hello. Can you tell me what the problem might be? Running your example https://github.com/xairy/raw-gadget/blob/master/examples/keyboard.c, but the ioctl(fd, USB_RAW_IOCTL_RUN, 0) operation returns -1, and the message ioctl(USB_RAW_IOCTL_RUN): No such deviceis output to the console. Thanks.

$ uname -a
Linux ants-H110M-S2H 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ lsmod | grep raw_gadget
raw_gadget             24576  0
udc_core               57344  1 raw_gadget
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description:    Linux Mint 19.3 Tricia
Release:    19.3
Codename:   tricia
gggrafff commented 4 years ago

Извините за невнимательность. Я просто не установил https://github.com/xairy/raw-gadget/tree/master/dummy_hcd. Спасибо за Ваш замечательный проект.