`
kongweile
  • 浏览: 506795 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

修改MAC,没有nvs_map.bin时该怎么做

 
阅读更多

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

wlan_cu -itiwlan0 -b
user_main, start
\> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit

/ w p 1 l 2 f 2
\> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
.../poWer> set_Power_mode, set_powersave_powerLevel, set_deFault_powerlevel, set_doZe_mode_in_auto, traffic_Thresholds, eNable, Disable, set_dcO_itrim

/ t r h 0 7
\> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
.../biT> Bip/, Radio debug/
.../Radio debug> Get hdk version, cHannel tune, Tx debug/, rx Statistics/
Channel tune of channel 7 was performed OK

/ t b b 375 128 0
\> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
.../biT> Bip/, Radio debug/
.../Bip> update Buffer calref point, Tx bip, Rx bip/
BufferCalReferencePoint was configured succesfully

/ t b t 1 0 0 0 0 0 0 0
\> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
.../biT> Bip/, Radio debug/
.../Bip> update Buffer calref point, Tx bip, Rx bip/
Entering FillMACAddressToNVS
Mac[0]=##
Mac[1]=##
Mac[2]=##
Mac[3]=##
Mac[4]=##
Mac[5]=##
exiting FillMACAddressToNVS

/
\> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit

q


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/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics