88c78b6a0c
For instance, to set a "macaddr" when the new CONFIG_MTD_CONFIG_NAMED option is selected, you would do: nsh> cfgdata set macaddr [0xfc 0x01 0x0b 0x45 0xa1 0x12] <-- brackets denotes an array of bytes nsh> cfgdata set hostname myboard or using the old ID,INSTANCE numeric method: nsh> cfgdata set 0,0 [0xfc 0x01 0x0b 0x45 0xa1 0x12] <-- brackets denotes an array of bytes nsh> cfgdata set 1,0 myboard You can also display all config items: nsh> cfgdata print all Name Len Data macaddr 6 0xFC 0x01 0x0B 0x45 0xA1 0x12 hostname 8 myboard
16 lines
315 B
Plaintext
16 lines
315 B
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config SYSTEM_CFGDATA
|
|
tristate "Cfgdata Command"
|
|
default n
|
|
depends on MTD_CONFIG && NSH_BUILTIN_APPS
|
|
---help---
|
|
Enable support for the CFGDATA tool.
|
|
|
|
if SYSTEM_CFGDATA
|
|
endif
|
|
|