Basically: nvs_map.bin is what is used to set you MAC address, part of calibrating, as well as other parameters that I won't get into here (can check out the other posts as I make them if curious). So if your wifi is acting weird, keep having your MAC change, getting calibration errors, etc... check /pds/wifi/ and /system/etc/wifi/ for this bin file. If its not there than this is how you make it:
********FIRST MAKE SURE YOU CHECK ALL WIFI FOLDERS FOR THE FILE - NVS_MAP.BIN!!! THESE INLUDE: /system/etc/wifi ; /pds/wifi ; /data/misc/wifi . IF IT'S IN ONE OF THOSE FOLDERS THEN MOVE IT TO WHERE IT NEEDS TO GO MANUALLY OR CHANGE THE TERMINAL COMMANDS IN STEP 5 ACCORDINGLY. THEN CONTINUE TO STEP 6!************
1) Turn phone on
2) Make sure that Wifi is on
3) Start up terminal on your phone and enter[/CODE]:
dmesg
Going to get a long list of random strings/errors/etc. IF your brave read thru em, it is identifying what may be messing up in your phone lol. Up towards the top you'll see the stuff for tiwlan giving errors about no nvs, fw, etc.. now go back to the bottom of the terminal.
4) First cd to anywhere but "/" ,Now enter this series in (The part you enter is green. The rest is what you'll be answered with. Be careful and copy the right stuff and pay attention to the spaces!):
Quote
Congrats skippy, you just made a basic general nvs_map.bin thats made by your phone FOR your phone. But you ain't done yet....
5) Now you gotta move it. You can do this with root explorer manually or again in terminal. Terminal commands would be:
# cp nvs_map.bin /pds/wifi
# mv nvs_map.bin /system/etc/wifi
*EDIT* For those getting errors with moving: make sure the system is read/write (rw) not read only (ro) and try again, or use root explorer. *EDIT*
6) In your " / " directory you'll find an init script named init.mapphone_cdma.rc . Inside there towards the bottom you'll find this strand if you open it:
service wlan_loader /system/bin/wlan_loader \ -f /system/etc/wifi/fw_wlan1271.bin -i /system/etc/wifi/tiwlan.ini \ -e /pds/wifi/nvs_map.bin disabled oneshot
You can try leaving it like that and manually execute it like any other script with rootexplorer/script manager/ whatever.... Or you can change it like I do to:
service wlan_loader /system/bin/wlan_loader \ -e /system/etc/wifi/nvs_map.bin \ -f /system/etc/wifi/fw_wl1271.bin \ -i /system/etc/wifi/tiwlan.ini disabled oneshot
Both may work or one of the two, depends on how cranky your phones being. Either way manually execute them via rootexplorer or scriptmanager. After you execute it you'll notice a whole crap load of folders got made in the directory....its fine, take a breath and leave them for now.
http://rootzwiki.com/topic/5650-wip-guide-nvs-map-creation-aka-how-i-fixed-my-wifimac-issues/