Android OS Forum banner
1 - 20 of 29 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 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
 

·
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
 

·
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
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #23 ·
Yes you can edit the nvs with any hex/binary editor. Only reason I haven't put that up is due to the touchyness of doing that. Changing the file can cause issues with the other files expecting one thing and getting another.

Basically, yeah you can make your MAC whatever you want....however, if done incorrectly it can lead to complete loss of data; no internet, tapatalk, nothing.

Just try and remember.... every phone has two MAC's in a way. The one seen and used (and now made by us :) ), and the one "hidden" "unused" one (yes I know it IS used, just saying for general purposes ... ) native to the device (just like a comp), so if you mess with it without knowing what your doing ... bad things can happen lol.

Sent from my DROIDX
 

·
Android Mechanic
Joined
·
203 Posts
Do you know it wasn't made or just don' t think it was made based off of the mv error in terminal? If you know it wasn't made then we can go from there. If you just think it wasn't made because terminal wouldn't move it but didn't manually look, I'd start there. Use root explorer or whichever you use and check under the / directory *make sure your in the / tho and not in /data or /system or something* if it's there, cool - just move it manually. If it ain't there, well again ... we can go from there.

Also you can try the command with as /nvs_map.bin instead ... sometimes it likes to have all the path and sometimes it doesn't care lol
 

·
Android Mechanic
Joined
·
203 Posts
Hmm so it is not giving any errors when being made, but afterwards its not in the root directory? Hmm that's weird.

Just out of curiosity what is listed in your /system/etc/wifi, /pds/wifi, and /data/misc/wifi folders? Maybe its something to do with 602 and apex as opposed to 2nd init roms. If you have the means to email whatever is in those too it'd help, [email protected].

I'll look into that error tho and see what I can find if I can recreate it and whatnot. Usually you get that if you are creating the wrong file for the phone or using one for a different device (hence the cross device part). My guess is maybe the files? It should give errors if it fails to create when those commands are given.
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #34 ·
Sorry I am just now getting back you Micah.... normally I try my best to be quicker, things are just crazy right now (hell I'm actually wearing cat and brains right now just to give an example....). Regardless, I'm glad to hear it helped and more so glad to hear you fixed whatever was causing the connectivity issue! Data can be a fickle thing on android sometimes I am finding while experimenting with this stuff. Take this browser for example, I made it from scratch mixing and matching diff source compiling. Still testing it I tweak internal values for different builds.... last night I literally changed one of the thru-put values by 1 .. literally ONE point ... and when installed completely kaboomed my data lol. Soon as I took it off and lowered it by 1 again, *poof* phone is happy again lol.

So yeah, glad you got it fixed and sorry I didn't get back to iou sooner! Any other issues let me know.

And dangerous, lol so true. But we all have em ... trust me... lmao if only you knew how many 'oops' moments I have .... ahaha.
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #40 ·
ttavis323 said:
YOU ARE THE MAN!!!!!!!!!!!!!!!!!!!!!

Ended up with a replacement about a month ago because of this. Spent an hour on the phone with Verizon tech then another 45 minutes with Motorola........they were clueless.

Posted a link to your thread in a couple other forums where eberyone was beating their collective heads against the wall over this....

Much respect!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Haha, well damn ... thanks, just glad it could help! I feel you with the tech support folks, they are horrendous at Verizon and Motorola both... tho has to be said you can get some pretty good ones once you get to tier 3+, of course to get that high you need a small miracle, 10 Twinkies, a handful of $100 monopoly bills, and another miracle.....

As for the problem with wlan ... what BMc said, are you root? And what does dmesg tell you?

Sent from my DROIDX
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #44 ·
What happens if you type "svc wifi start"? Any errors come up? Your interface is not starting for some reason. That's why you are getting your errors I believe. Look thru the dmesg and see what errors its giving for it, or post/pm the logs. Hard to say without having the info.

Also that first line, what was the string you typed? Couldn't really make it out, only ask cause a lot of people mix up the 1 (one) and l (lower case L), well that and I'm appearently blind .... lmao.

Sent from my DROIDX
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #51 ·
I'll take a look, sorry I didnt get back to your pm. Things have been getting a little crazy around here.
 

·
Android Mechanic
Joined
·
203 Posts
Discussion Starter · #53 ·
Yup, I'll have to go over some stuff with you sometime soon to try and figure it out. I'm just getting my ass handed to me IRL atm, so might take a day or two. Hopefully I can look over yours and rlenzo's tomorrow and start getting with everybody to figure their problems out. I apologize for the time its taken to get with y'all, but like I said, things been getting crazy here so far.
 
1 - 20 of 29 Posts
Top