修改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:
********FIRSTMAKESUREYOUCHECKALLWIFIFOLDERSFORTHEFILE-NVS_MAP.BIN!!!THESEINLUDE:/system/etc/wifi;/pds/wifi;/data/misc/wifi.IFIT'SINONEOFTHOSEFOLDERSTHENMOVEITTOWHEREITNEEDSTOGOMANUALLYORCHANGETHETERMINALCOMMANDSINSTEP5ACCORDINGLY.THENCONTINUETOSTEP6!************
1)Turnphoneon
2)MakesurethatWifiison
3)Startupterminalonyourphoneandenter[/CODE]:
dmesg
Goingtogetalonglistofrandomstrings/errors/etc.IFyourbravereadthruem,itisidentifyingwhatmaybemessingupinyourphonelol.Uptowardsthetopyou'llseethestufffortiwlangivingerrorsaboutnonvs,fw,etc..nowgobacktothebottomoftheterminal.
4)Firstcdtoanywherebut"/",Nowenterthisseriesin(Thepartyouenterisgreen.Therestiswhatyou'llbeansweredwith.Becarefulandcopytherightstuffandpayattentiontothespaces!):
Quote
user_main,start
\>Driver/,Connection/,Management/,Show/,Privacy/,scAn/,roaminG/,qOs/,poWer/,eVents/,Btcoexsistance/,Report/,dEbug/,biT/,aboUt,Quit
/wp1l2f2
\>Driver/,Connection/,Management/,Show/,Privacy/,scAn/,roaminG/,qOs/,poWer/,eVents/,Btcoexsistance/,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
/trh07
\>Driver/,Connection/,Management/,Show/,Privacy/,scAn/,roaminG/,qOs/,poWer/,eVents/,Btcoexsistance/,Report/,dEbug/,biT/,aboUt,Quit
.../biT>Bip/,Radiodebug/
.../Radiodebug>Gethdkversion,cHanneltune,Txdebug/,rxStatistics/
Channeltuneofchannel7wasperformedOK
/tbb3751280
\>Driver/,Connection/,Management/,Show/,Privacy/,scAn/,roaminG/,qOs/,poWer/,eVents/,Btcoexsistance/,Report/,dEbug/,biT/,aboUt,Quit
.../biT>Bip/,Radiodebug/
.../Bip>updateBuffercalrefpoint,Txbip,Rxbip/
BufferCalReferencePointwasconfiguredsuccesfully
/tbt10000000
\>Driver/,Connection/,Management/,Show/,Privacy/,scAn/,roaminG/,qOs/,poWer/,eVents/,Btcoexsistance/,Report/,dEbug/,biT/,aboUt,Quit
.../biT>Bip/,Radiodebug/
.../Bip>updateBuffercalrefpoint,Txbip,Rxbip/
EnteringFillMACAddressToNVS
Mac[0]=##
Mac[1]=##
Mac[2]=##
Mac[3]=##
Mac[4]=##
Mac[5]=##
exitingFillMACAddressToNVS
/
\>Driver/,Connection/,Management/,Show/,Privacy/,scAn/,roaminG/,qOs/,poWer/,eVents/,Btcoexsistance/,Report/,dEbug/,biT/,aboUt,Quit
q
Congratsskippy,youjustmadeabasicgeneralnvs_map.binthatsmadebyyourphoneFORyourphone.Butyouain'tdoneyet....
5)Nowyougottamoveit.Youcandothiswithrootexplorermanuallyoragaininterminal.Terminalcommandswouldbe:
#cpnvs_map.bin/pds/wifi
#mvnvs_map.bin/system/etc/wifi
*EDIT*Forthosegettingerrorswithmoving:makesurethesystemisread/write(rw)notreadonly(ro)andtryagain,oruserootexplorer.*EDIT*
6)Inyour"/"directoryyou'llfindaninitscriptnamedinit.mapphone_cdma.rc.Insidetheretowardsthebottomyou'llfindthisstrandifyouopenit:
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
Youcantryleavingitlikethatandmanuallyexecuteitlikeanyotherscriptwithrootexplorer/scriptmanager/whatever....OryoucanchangeitlikeIdoto:
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/