Hi folks,
I've been struggling for days to let RPiZ play
HID (USB keyboard). Without success.
My image is stretch now:
Linux raspberrypi 4.9.79+ #1086 Wed Jan 31 17:31:04 GMT 2018 armv6l GNU/Linux
And the device is "Raspberry Pi Zero W Rev 1.1" according to /proc/device-tree/model
From elinux.org I learned it is a Q1 2017 Revision (9000c1) based on the output of cat /proc/cpuinfo
While most info found in the net is based on older kernel versions and hardware the most promising approaches seem to be
https://www.rmedgar.com/blog/using-rpi- ... efinition
http://isticktoit.net/?p=1383
Both failed for me. Both rely on configFS. And at a certain point of the procedure echo (done as root) results in "write error: Device or resource busy"
One fails writing to
/sys/kernel/config/usb_gadget/mykeyboard/functions/hid.usb0/report_desc
The other fails writing to
/sys/kernel/config/usb_gadget/isticktoit/functions/hid.usb0/report_length
What takes me wonder in this discussion you had here is the addition of
modules-load=dwc2,g_ether
In cmdline.txt. That particular file would not be touched by the other approaches.
Would you advice to add modules-load=dwc2,g_hid for my purpose?
Output of lsmod follows
Thanks for any support.
Desperately
Me
Module Size Used by
fuse 94600 3
rfcomm 37905 6
cmac 3134 1
bnep 11949 2
hci_uart 21222 1
btbcm 7917 1 hci_uart
bluetooth 376017 29 hci_uart,bnep,btbcm,rfcomm
usb_f_hid 11655 2
spidev 7034 0
enc28j60 20402 0
brcmfmac 269955 0
brcmutil 9911 1 brcmfmac
snd_bcm2835 23131 1
cfg80211 527260 1 brcmfmac
snd_pcm 97889 1 snd_bcm2835
snd_timer 22706 1 snd_pcm
rfkill 21373 6 bluetooth,cfg80211
snd 68784 5 snd_timer,snd_bcm2835,snd_pcm
spi_bcm2835 7424 0
bcm2835_gpiomem 3791 0
fixed 3029 0
uio_pdrv_genirq 3718 0
uio 10166 1 uio_pdrv_genirq
libcomposite 49907 10 usb_f_hid
dwc2 122113 0
udc_core 40452 3 dwc2,libcomposite,usb_f_hid
i2c_dev 6642 0
ip_tables 12512 0
x_tables 20921 1 ip_tables
ipv6 385136 18