...
xconfig
is a command line tool to manipulate the XML-configuration data directly. Care should be taken when using these commands as miss-configured or corrupted XML- configuration data might render a system unusable. The following code block shows a list of all possible parameters.
Code Block | ||
---|---|---|
| ||
FLASH-N-GO:/# xconfig Usage: $0 [command] [options] Script to manipulate the XML-configuration data of GuF i.MX Boards inside the NAND Flash. xconfig expect one of the following commands to define its behavior: list show the current contents of the XML-configuration as obtained from NAND import import an external XML-configuration file into the NAND Flash addnode add a new (empty) XML node delnode delete XML node(s) and its/their children addattribute add a new or change an existing attribute delattribute delete an existing attribute If no command and option given xconfig will display its version and exit. Syntax: xconfig list [-v] [-p <path>] -v show whole (sub)tree instead of summary, the format is suitable to be used as input to "xconfig import" -s search for a specific pattern -l show long path syntax instead of xml --node filter result by node name, basic wildcards are allowed --attribute filter result by attribute name, basic wildcards are allowed formate format is either --attribute linux* matches all nodes that have an attribute starting with linux or or --attribute key="value" matching nodes that have an attribute 'key' have an attribute 'key' with the value 'value' -p <path> path to subtree, e.g.: -p /configurationFile/variables/setting[@key='enable_serialdiag] if omitted, the whole tree is shown xconfig import [-v] [-y] [-b] <file> -v be verbose -y assume yes - apply changes without user interaction <file> path to file to import -b deprecated - do not use xconfig addnode [-y] -p <path> -n <name> -y same as above -p <path> path to parent node -n <name> name of new node xconfig delnode [-y] -p <path> -y same as above -p <path> path to node xconfig addattribute [-y] -p <path> -n <attr-name> -v <value> -y same as above -p <path> path to parent node -n <attr-name> name of the attribute -v <value> new value of attribute xconfig delattribute [-y] -p <path> -n <attr-name> -y same as above -p <path> path to parent node -n <attr-name> name of the attribute xconfig listattributes -p <path> -p <path> path to node xconfig getattribute -p <path> -n <attr-name> -p <path> path to parent node -n <attr-name> name of the attribute |