]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wilink8-wlan/wl18xx-target-scripts.git/blob - root/calibrate.sh
mr scripts v1
[wilink8-wlan/wl18xx-target-scripts.git] / root / calibrate.sh
1 #!/system/bin/sh
3 #
4 # calibrate.sh
5 #
6 # calibration of the wlan device over Blaze platform
7 # Script takes two arguments:
8 # 1. INI file for calibration (depend on device and FEM, full path required)
9 # 2. MAC address (e.g 08:00:28:12:34:56)
10 #
11 # Copyright (C) {2011} Texas Instruments Incorporated - http://www.ti.com/
12 #
13 # Licensed under the Apache License, Version 2.0 (the "License");
14 # you may not use this file except in compliance with the License.
15 # You may obtain a copy of the License at
16 #
17 #       http://www.apache.org/licenses/LICENSE-2.0
18 #
19 # Unless required by applicable law or agreed to in writing, software
20 # distributed under the License is distributed on an "AS IS" BASIS,
21 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 # See the License for the specific language governing permissions and  
23 # limitations under the License.
24 #
26 echo "removing current nvs file"
27 rm /system/etc/firmware/ti-connectivity/wl1271-nvs.bin
29 echo "creating new nvs file using autocalibrate command"
30 calibrator plt autocalibrate wlan0 /system/lib/modules/wl12xx_sdio.ko $1 /etc/firmware/ti-connectivity/wl1271-nvs.bin $2
32 echo "dumping nvs content:"
33 calibrator get dump_nvs /etc/firmware/ti-connectivity/wl1271-nvs.bin