Android OS Forum banner
1 - 20 of 121 Posts

·
Android Mechanic
Joined
·
203 Posts
*disclaimer* This is a WIP, do it at your own risk. There is not much danger here, but I have seen some impressive feats of o-crap-iticity. So do this at your own risk, especially the advanced section coming later. I aint responable yo!

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 *NOT VIA ADB SHELL...DO IT IN THE 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) 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!):

# 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:

Code:
service wlan_loader /system/bin/wlan_loader \<br />
							-f /system/etc/wifi/fw_wlan1271.bin -i /system/etc/wifi/tiwlan.ini \<br />
							-e /pds/wifi/nvs_map.bin<br />
						   disabled<br />
						   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:

Code:
service wlan_loader /system/bin/wlan_loader \<br />
						   -e /system/etc/wifi/nvs_map.bin \<br />
						   -f /system/etc/wifi/fw_wl1271.bin \<br />
						   -i /system/etc/wifi/tiwlan.ini<br />
						   disabled<br />
						   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.

Whatever # I'm up to) Back in console type in the dmesg command.

Just scroll up and look for the stuff about the tiwlan just like before, except this time instead of errors it should say it found a nvs_map.bin and take off calibrating and downloading firmware etc, and of course .... your new MAC. Assuming all that went beuno, reboot.

If it didn't, then repeat steps 6+ with wifi turned off.

When you come back the extra folders may self delete or they may not, if they didn't erase all the stuff not used (i.e. the 770 folder etc). Now you should be good to go.

Again this is a work in progress, as I have time I will make a post explaining what those random numbers and letters you entered meant. Also, I will post other options to change the parameters in addition to any other updates on the project W-never-never-Lan .... or the other 234251 projects I have going.
 

·
Android Mechanic
Joined
·
203 Posts
*EDIT* Sorry folks, the speed hacks and turning it into N mode is still buggy ... so taking down the command strings until I find a fix. *EDIT*

Also as a side note: I have been asked this a lot. Yes, it is possible to change the MAC after you do all this by using a hex editor. However doing so recklessly can cause you to lose all your data completely! This is why I haven't posted how to. If you feel you must anyways, its rather easy ... but you do so on your own terms. Once I find the safest and most reliable way of doing this I will post it.
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #5 ·
Will do! Tbh, have too .... Mr popularity here never has an empty in box for pm's lmao. Do me a favor tho bud.... email me the file you were talking to me about so I can start thinking and not take 4 yrs again.....

As for W-never-never-lan..... Will start again tomorrow on this stuff, sorry folks ... I know I said I'd put up some of the other stuff tonight. Buuut adhd and I got sucked into the sbf splitting crap .... you'd tthink I'd learn .....

Sent from my DROIDX
 

·
Android Apprentice
Joined
·
25 Posts
Will this work on DROID 2

Can I just copy the whole command and paste it all the same time?

Sent from my DROIDX using RootzWiki Forums
 

·
Registered
Joined
·
4,241 Posts
"blackadept said:
Will do! Tbh, have too .... Mr popularity here never has an empty in box for pm's lmao. Do me a favor tho bud.... email me the file you were talking to me about so I can start thinking and not take 4 yrs again.....

As for W-never-never-lan..... Will start again tomorrow on this stuff, sorry folks ... I know I said I'd put up some of the other stuff tonight. Buuut adhd and I got sucked into the sbf splitting crap .... you'd tthink I'd learn .....

Sent from my DROIDX
What files you need black?
Also check yur pm's lol
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #8 ·
Lol 1.9.5, err that is the one you wanted me to test and mess around with right? Sorry days and nights been kinda running together lately, making me extra "special".

Sent from my DROIDX
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #9 ·
O and as far as the Droid 2, depends on the hardware and software. I'd think it would, or atleast he similar. But again, depends on what your wireless is on the Droid 2. I'll try and look up the specs later and let you know.

Sent from my DROIDX
 

·
Registered
Joined
·
4,241 Posts
"blackadept said:
Lol 1.9.5, err that is the one you wanted me to test and mess around with right? Sorry days and nights been kinda running together lately, making me extra "special".

Sent from my DROIDX
Lol 1.9.5 I'm still debugging. Ill send out the beta test once it actually runs
 

·
Android Beginner
Joined
·
32 Posts
Worked like a charm on my DX with MIUI. I had quit using the WIFI due to this problem. Now it works fine. I did use your revised #6 on my phone.

Thanks!
 

·
Average Android
Joined
·
559 Posts
On a lark I decided to see if my phone had the nvs_map.bin file... it didn't. I was experiencing wifi problems using CM4DX, but ever since I switched to Rev's unofficial builds with the GB kernel I haven't had any problems. Never the less, I ran through the process and everything seems like it worked OK. Of course, I haven't been home to check how it works on wifi yet. Guess we'll see.
 

·
Developer
Joined
·
1,605 Posts
Appears to work swimmingly on the D2 (it's the same chip lol)

and yes... i said "swimmingly" :p

Thanks for the info/write-up man

Rev
 

·
Supporting Member
Joined
·
19 Posts
Hi blackadept,

Thanks for the thorough help post but it's not working for me on my Droid X. I'm using terminal on my X and getting the following errors:

after:

\> 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

I am getting:

set-dc0-itrim **Error: '1'

and after:

# mv nvs_map.bin /system/etc/wifi

I am getting:

failed on 'nvs_map.bin' - cross-device link

I get the same fail for # mv nvs_map.bin /pds/wifi

Any suggestions as to what I could be doing wrong?

Thanks for the help
ctcfirearms
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #16 ·
Question is tho bud, did you wear your floaties this time?!?!

Lol

PS:Rev if you want I think I might have an even easier fix for you maybe.... going thru the initial build. Let me know man

Also, I realized that I flaked on the advanced configuration, part deux of the series.... sorry folks. I promise I'll put it up soon!

Does it make of any better that you didn't get it cause I'm working on some presents?! Lmao, gotta love bribery.

Sent from my DROIDX
 

·
I just hide here
Joined
·
2,237 Posts
ctcfirearms said:
Hi blackadept,

Thanks for the thorough help post but it's not working for me on my Droid X. I'm using terminal on my X and getting the following errors:

after:

\> 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

I am getting:

set-dc0-itrim **Error: '1'

and after:

# mv nvs_map.bin /system/etc/wifi

I am getting:

failed on 'nvs_map.bin' - cross-device link

I get the same fail for # mv nvs_map.bin /pds/wifi

Any suggestions as to what I could be doing wrong?

Thanks for the help
ctcfirearms
After / w p 1 1 2 f 2 ....... i get **Error '1'** Iv tried this with wifi on and off and connected to a network and not connected to a network.....do i need to be connected to make this work? and is there something wrong with that first line?

and then if i just keep going thru it. When i get to the mv nvs_map.bin part i get cant rename 'nvs_map.bin': No such file or directory.
 

·
Supporting Member
Joined
·
19 Posts
SyNiK4L said:
After / w p 1 1 2 f 2 ....... i get **Error '1'** Iv tried this with wifi on and off and connected to a network and not connected to a network.....do i need to be connected to make this work? and is there something wrong with that first line?

and then if i just keep going thru it. When i get to the mv nvs_map.bin part i get cant rename 'nvs_map.bin': No such file or directory.
I was entering / w p 1 1 2 f 2

but I figured out that it is / w p 1 l 2 f 2 ***note it is a lower case L between the 1 and the 2***

however, When i get to the mv nvs_map.bin part I still get - failed on 'nvs_map.bin' - cross-device link???
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #20 ·
Yup synk that's a lower case L not a 1 like poster above pointed out, so that line should read;

/ w p 1 l 2 f 2

So / (space) w (lowercase)(space) 1 (number)(space) l (lower case L)(space) 2 (number)(space) f (lowercase)(space) 2 (number)(space) \

And on from there. I figure maybe copy/paste from phones browser over. Damn lower case is hard to tell sometimes with different fonts, lots of asked me about that.

As far as the errors, what roms/builds y'all on? Depending on how you set up your terminal you might could also try:

# cp -rf /nvs_map.bin /system/etc/wifi
#mv -rf /nvs_map.bin /pds/wifi

It might just be wanting an absolute path and not let yah short-hand it. Also, with the errors and what not happening because of syntax, might want to make sure its actually being made, and made correctly, and outputting itself to the / directory.

As far as the other error, did either of you have another nps_map.bin file on your phone in any of the 3 spots? Also, what was the permission of the nvs prior to your moving it?

As for a zip, prolly not. Not cause I'm lazy (don't worry I am) or mean (depends on who you ask) but doesn't really make sense too. What I could do tho is look into make a simple script that you folks could run from wherever (prolly terminal tho) to automate it maybe.

I'll look into that and start writing it. Only issue might be that as its a W.I.P. I'm still trying to find the best calibration, ini edits, lib edits, that kind of stuff. Could suck if I did make the script and a day later it was changed, lol. Don't wanna get beat! Lol jp, yeah, I'll look into writing it. Good idear, will have to give me time tho as rl is crazy. Guess I could just make it basic for now tho till I test these other builds more...

Sent from my DROIDX
 
1 - 20 of 121 Posts
Top