On Fri, Nov 30 2012, Sebastian Andrzej Siewior wrote: > That won't work. You can only symlink an instance to one UDC. It is an > instance after all. If you want two ACM ports you need two ACM folder > in your functions folder: > > acm.ttyS0 > acm.ttyS1 Yeah, but what Felipe just made me realise is that if that's the case, than it makes no sense to have the functions directory outside of the gadget. Instead we should have something like: Within /sys/kerne/config/usb_gadget: udcs/dummy.0/gadget -> ../../gadgets/blah udcs/dummy.1/gadcet -> ../../gadgets/foo gadgets/blah/functions/acm.0 gadgets/blah/functions/mass-storage.0 gadgets/blah/configs/0/functions/0 -> ../../../function/acm.0 gadgets/blah/configs/0/functions/1 -> ../../../function/mass-storage.0 gadgets/blah/configs/1/functions/0 -> ../../../function/acm.0 gadgets/blah/configs/2/functions/0 -> ../../../function/mass-storage.0 gadgets/blah/udc -> ../../udcs/dummy.0 gadgets/foo/functions/ether.0 gadgets/foo/functions/mass-storage.0 gadgets/foo/configs/0/functions/0 -> ../../../function/ether.0 gadgets/foo/configs/0/functions/1 -> ../../../function/mass-storage.0 gadgets/foo/configs/1/functions/0 -> ../../../function/ether.0 gadgets/foo/configs/2/functions/0 -> ../../../function/mass-storage.0 gadgets/foo/udc -> ../../udcs/dummy.0 blah and foo are arbitrary. Same goes for numbers after the dot in function names. -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--
Attachment:
pgpDB97VvYtd0.pgp
Description: PGP signature