Здравствуйте.
Подскажите, пожалуйста, в чём может быть проблема?
Запускаю Ваш пример 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
Здравствуйте. Подскажите, пожалуйста, в чём может быть проблема? Запускаю Ваш пример 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 messageioctl(USB_RAW_IOCTL_RUN): No such device
is output to the console. Thanks.