Hello,

Were you able to solve this problem? I am facing the same issue here.

Thank you.

Andrei

On Wednesday, November 22, 2017 at 8:23:15 PM UTC+2, ssci...@gmail.com 
wrote:
>
> I am trying to get a BBBW to register itself as a pure HID device.
>
> I'm starting with a modified version of Phil Polstra's bash script 
> presented at DEF CON (attached). His script was built originally for 
> Ubuntu, but I'm running the latest 9.1 Debian image.
>
> I have updated the original last line from echoing 'musb-hdrc.0.auto' to 
> 'musb-hdrc.0' (for versions 4.9.x, which mine is).
>
> Here's what happens:
>
> *debian@beaglebone*:*~*$ sudo bash create-hid-BB.sh
>
> create-hid-BB.sh: line 44: echo: write error: Device or resource busy
> *debian@beaglebone*:*~*$ sudo bash create-hid-BB.sh
>
> create-hid-BB.sh: line 29: echo: write error: Device or resource busy
>
> create-hid-BB.sh: line 30: echo: write error: Device or resource busy
>
> create-hid-BB.sh: line 31: echo: write error: Device or resource busy
>
> cp: error writing 
> '/sys/kernel/config/usb_gadget/kb/functions/hid.usb0/report_desc': Device 
> or resource busy
>
> ln: failed to create symbolic link 
> '/sys/kernel/config/usb_gadget/kb/configs/c.1/hid.usb0': File exists
>
> create-hid-BB.sh: line 44: echo: write error: Device or resource busy
>
> *debian@beaglebone*:*~*$ sudo bash create-hid-BB.sh
>
> create-hid-BB.sh: line 29: echo: write error: Device or resource busy
>
> create-hid-BB.sh: line 30: echo: write error: Device or resource busy
>
> create-hid-BB.sh: line 31: echo: write error: Device or resource busy
>
> cp: error writing 
> '/sys/kernel/config/usb_gadget/kb/functions/hid.usb0/report_desc': Device 
> or resource busy
>
> ln: failed to create symbolic link 
> '/sys/kernel/config/usb_gadget/kb/configs/c.1/hid.usb0': File exists
>
> create-hid-BB.sh: line 44: echo: write error: Device or resource busy
>
> I also tried:
>
>    1. Restarting the system.
>    2. Leaving g_multi in place.
>    3. Building a kb folder in another folder with the customizations 
>    specified in the attached script.
>    4. Copying the kb folder to /sys/kernel/config/usb_gadget/
>    5. This also fails with the same messages. It's almost like the moment 
>    there's a /sys/kernel/config/usb_gadget/kb folder, the system connects to 
>    it and starts using it. (Note that during this time, my computer is NOT 
>    registering the BBBW as a HID device yet).
>
> It seems like it shouldn't be this difficult. How can I make a BBBW pure 
> HID?
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/afbbf597-171a-4dc2-bdeb-d4ed30bf73d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to