mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
| .. | ||
| src | ||
| libmnfinfo.so | ||
| Makefile | ||
| mnf_info | ||
| mnfinfo.so | ||
| README.md | ||
libmnfinfo
How it works: depending on the platform, selected in the menuconfig, a different platform flag is defined during compilation. Depending on that flag, a header file with platform-specific MTD field defines is included. Here are all the defines, (currently) used for these headers:
MAX_SIM_ID- maximum allowed SIM index on the platform.MTD_CONFIG_RO- absolute path of a read-only MTD partition. Used for most field reads.MTD_CONFIG_RW- absolute path of a read/write MTD partition. Used for SIM PIN value reads/writes.MAC_OFFSET- MAC field offset in theMTD_CONFIG_ROpartition.MAC_LENGTH- MAC field length in theMTD_CONFIG_ROpartition.NAME_OFFSET- product name field offset in theMTD_CONFIG_ROpartition.NAME_LENGTH- product name field length in theMTD_CONFIG_ROpartition.WPS_OFFSET- WPS field offset in theMTD_CONFIG_ROpartition.WPS_LENGTH- WPS field length in theMTD_CONFIG_ROpartition.SERIAL_OFFSET- product serial code field offset in theMTD_CONFIG_ROpartition.SERIAL_LENGTH- product serial code field length in theMTD_CONFIG_ROpartition.BATCH_OFFSET- batch index field offset in theMTD_CONFIG_ROpartition.BATCH_LENGTH- batch index field length in theMTD_CONFIG_ROpartition.HWVER_OFFSET- hardware version index field offset in theMTD_CONFIG_ROpartition.HWVER_LENGTH- hardware version index field length in theMTD_CONFIG_ROpartition.SIMPIN_OFFSET- SIM card PIN code field offset in theMTD_CONFIG_RWpartition.SIMPIN_LENGTH- SIM card PIN code field length in theMTD_CONFIG_RWpartition.WIFI_OFFSET- Wi-Fi password field offset in theMTD_CONFIG_ROpartition.WIFI_LENGTH- Wi-Fi password field length in theMTD_CONFIG_ROpartition.
Only defines with actual values should be written. All other defines should be removed from the platform-specific header file.