zhaoxingyu12 commented on PR #3371:
URL: https://github.com/apache/nuttx-apps/pull/3371#issuecomment-3793898266
> @zhaoxingyu12 please include some testing results. Did you test CFGDATA
too? Maybe we need to add CFGDATA to "SIM" or "QEMU" to make the test easy to
do. Currently only two boards are using it
I have conducted tests on QEMU, and the test results are in line with
expectations.
1. enabled these configurations.
CONFIG_MTD_CONFIG_NVS=y
CONFIG_SYSTEM_CFGDATA=y
CONFIG_MTD_CONFIG_NAMED=y
2. register lomtdconfig
dd if=/dev/zero of=/data/nvs.img bs=8192 count=10
lomtd -c 2 /dev/config /data/nvs.img
3. test pass
goldfish-armv7a-ap> cfgdata print mykey
Error reading config entry 'mykey'
goldfish-armv7a-ap> cfgdata set mykey "myvalue"
goldfish-armv7a-ap>
goldfish-armv7a-ap> cfgdata print mykey
myvalue
goldfish-armv7a-ap> cfgdata all
Name
Len Data
mykey
8 myvalue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]