On 05/20/2015 06:42 PM, Bastien Nocera wrote:
Hey,
After discussing this with Andrzej, I'm no closer to being able to get
this working...
I'm trying to run adbd (the service that would usually run on an
Android phone in developer mode) on a stock distribution, on a device
that used to run Windows 8 (and now a Fedora).
This is my version of adbd:
https://github.com/hadess/adbd/
This is the systemd service file I eventually want to use, but I'm
running those commands "by hand" right now, and they fail in the same
way.
https://github.com/hadess/adbd/blob/master/adbd.service
I'm getting this error from adbd:
OPENING /dev/usb-ffs/adb/ep0 [ /dev/usb-ffs/adb/ep0: writing strings failed: errno=16]
Which comes from this error message:
https://github.com/hadess/adbd/blob/master/adb/usb_linux_client.c#L275
It looks like this can only happen if the gadget FS was already registered:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/gadget/legacy/g_ffs.c#n301
Any ideas?
Could you please try to use ConfigFS interface instead of using g_ffs?
I have used this setup some time ago and it worked fine, so it should be
a good method of checking if adbd is working properly.
On the other hand, you may try to run Robert's examples
(tools/usb/ffs-aio-example) with g_ffs instead of adbd and see what happen.
BTW.
Which kernel version do you use?
Best regards,
--
Krzysztof Opasiak
Samsung R&D Institute Poland
Samsung Electronics
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html