-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FunctionFS descriptors and strings support #8
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
This is the placeholder for code reading/writing FunctionFS descriptors and strings. Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Each skeleton provides only a placeholder for the "create" operation. Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
HI Andrzej, after some review I've realized that we have two issues in this file format (or actually the same issue in two instances)
|
@andrzejtp did you get a chance to revise the changes for @kopasiak's comments? |
Hi Paul,
Unfortunately not.
It is likely I will not have time until September.
Andrzej
W dniu 13.07.2021 o 05:37, Paul Wise pisze:
… @andrzejtp <https://github.com/andrzejtp> did you get a chance to revise the
changes for @kopasiak <https://github.com/kopasiak>'s comments?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALETVHII4KSQ5KBD6FI5VG3TXOYIZANCNFSM4HSJLROQ>.
|
@andrzejtp here is a ping in case you have time for this. |
While not strictly related to composing a gadget with ConfigFS, creating the descriptors and strings is an important step of creating custom USB gadget functions on top of FunctionFS. As such, they are a perfect target for the Gadget Tool.
Following the idea of keeping the state in a place external to gt (configfs in case of gadgets' state), the state of descriptors and strings is kept in external binary files, whose filename is specified the usual way: either explicitly with --state= or using default values.
Descriptors (interface and endpoint) and strings (languages and strings proper) are created either on the command line, or by reading from declarative config files.
Example invocation to store the descriptors in my-descs.bin:
The equivalent can be achieved with this config file:
and this command line:
Strings are created or loaded in a similar fashion:
or with a config file:
and this command line:
One thing to note with strings is that two assumptions have been made: