AP121_general_commands_11292010

AP121_general_commands_11292010
AP121_general_commands_11292010

AP Setting Commands for AP 121 Images Update

1) 2MB Flash Update

1) Set the IP addresses of TFTP server and the board under u-boot prompt:

setenv serverip

setenv ipaddr

saveenv

2) Flash the new U-boot with following sequence of commands:

tftp 0x80060000 tuboot.bin

erase 0x9f000000 +0x10000

cp.b $fileaddr 0x9f000000 $filesize

3) Flash the squashfs file system using the following sequence of commands at u-boot

prompt:

tftp 0x80060000 ap121-2.6.31-2MB-squashfs

erase 0x9f010000 +0x130000

cp.b $fileaddr 0x9f010000 $filesize

4) Flash the Linux kernel using the following sequence of commands at u-boot prompt:

tftp 0x80060000 vmlinux.lzma.uImage

erase 0x9f140000 +0xa0000

cp.b $fileaddr 0x9f140000 $filesize

2) 4MB Flash Update

1)Set the IP addresses of TFTP server and the board under u-boot prompt:

setenv serverip

setenv ipaddr

saveenv

2) Flash the new U-boot with following sequence of commands:

tftp 0x80060000 tuboot.bin

erase 0x9f000000 +0x40000

cp.b $fileaddr 0x9f000000 $filesize

3) Flash the squashfs file system using the following sequence of commands at u-boot

prompt:

tftp 0x80060000 ap121-2.6.31-squashfs

erase 0x9f050000 +0x2b0000

cp.b $fileaddr 0x9f050000 $filesize

4) Flash the Linux kernel using the following sequence of commands at u-boot prompt:

tftp 0x80060000 vmlinux.lzma.uImage

erase 0x9f300000 +0xe0000

cp.b $fileaddr 0x9f300000 $filesize

general commands

cfg –x //set factory default

cfg -a =

cfg –e //To display the values of all environment variables

cfg –c //To store the entire environment variables configuration in NVRAM

cfg wlan up

cfg wlan down

cfg wlan status

cfg ath0 list sta

cfg ath0 list chan

cfg ipaddr

cfg netmask

Security

commands to enable WPA

cfg -a WLAN_ON_BOOT=y

cfg -a AP_SSID=AP121

cfg -a AP_SECMODE=WPA // WEP|WPA|WSC|NONE

cfg -a AP_WPA=1 // 1|2 , indicates if WPA-1 or WPA-2 (or both) are to be used in WPA operations.

cfg -a AP_CYPHER="TKIP CCMP" // TKIP||CCMP||"TKIP CCMP"

cfg -a PSK_KEY=12345678 // key 12345678

commands to enable WEP

cfg -a WLAN_ON_BOOT=y

cfg -a AP_SSID=AP121

cfg -a AP_SECMODE=WEP

cfg -a WEPKEY_1=12345 //10 hex digits or 5 characters

for 64 bit, 26 hex digits or 13 characters for 128 bit

cfg -a AP_WEP_MODE=1 //1|2|4 means open|shared|auto

commands to enable WPS+WPA

cfg -a AP_SECMODE=WPA

cfg -a AP_SECFILE=PSK

cfg -a WPS_ENABLE=1

cfg -a AP_WPA=1

cfg -a AP_CYPHER="TKIP CCMP"

cfg -a WSC_PIN=12345670

cfg -a WSC_NAME=AtherosAp

cfg -a AP_ENROLLEE=AtherosAp

cfg -a PSK_KEY=12345678

Debug

export DEBUGMODE=0x100

export HALDEBUG=0x0

export ATHDEBUG=0x0

1.) DEBUGMODE. This is for UMAC layer.

#define IEEE80211_MSG_MLME 0x80000000 /* MLME */

#define IEEE80211_MSG_DEBUG 0x40000000 /* IFF_DEBUG equivalent

*/

#define IEEE80211_MSG_DUMPPKTS 0x20000000 /* IFF_LINK2 equivalant

*/

#define IEEE80211_MSG_CRYPTO 0x10000000 /* crypto work */

#define IEEE80211_MSG_INPUT 0x08000000 /* input handling */

#define IEEE80211_MSG_XRATE 0x04000000 /* rate set handling */

#define IEEE80211_MSG_ELEMID 0x02000000 /* element id parsing

*/

#define IEEE80211_MSG_NODE 0x01000000 /* node handling */

#define IEEE80211_MSG_ASSOC 0x00800000 /* association handling

*/

#define IEEE80211_MSG_AUTH 0x00400000 /* authentication

handling */

#define IEEE80211_MSG_SCAN 0x00200000 /* scanning */

#define IEEE80211_MSG_OUTPUT 0x00100000 /* output handling */ #define IEEE80211_MSG_STATE 0x00080000 /* state machine */

#define IEEE80211_MSG_POWER 0x00040000 /* power save handling

*/

#define IEEE80211_MSG_DOT1X 0x00020000 /* 802.1x authenticator

*/

#define IEEE80211_MSG_DOT1XSM 0x00010000 /* 802.1x state machine

*/

#define IEEE80211_MSG_RADIUS 0x00008000 /* 802.1x radius client

*/

#define IEEE80211_MSG_RADDUMP 0x00004000 /* dump 802.1x radius

packets */

#define IEEE80211_MSG_RADKEYS 0x00002000 /* dump 802.1x keys */

#define IEEE80211_MSG_WPA 0x00001000 /* WPA/RSN protocol */

#define IEEE80211_MSG_ACL 0x00000800 /* ACL handling */

#define IEEE80211_MSG_WME 0x00000400 /* WME protocol */

#define IEEE80211_MSG_IQUE 0x00000200 /* IQUE features */

#define IEEE80211_MSG_DOTH 0x00000100 /* 11.h */

#define IEEE80211_MSG_INACT 0x00000080 /* inactivity handling

*/

#define IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */

#define IEEE80211_MSG_ACTION 0x00000020 /* action management

frames */

#define IEEE80211_MSG_WDS 0x00000010 /* WDS handling */

#define IEEE80211_MSG_SCANENTRY 0x00000008 /* scan entry */

#define IEEE80211_MSG_SCAN_SM 0x00000004 /* scan state machine

*/

#define IEEE80211_MSG_ACS 0x00000002 /* auto channel

selection */

#define IEEE80211_MSG_ANY 0xffffffff /* anything */

2.) HALDEBUG for HAL layer.

#define HAL_DBG_RESET 0x00000001

#define HAL_DBG_PHY_IO 0x00000002

#define HAL_DBG_REG_IO 0x00000004

#define HAL_DBG_RF_PARAM 0x00000008

#define HAL_DBG_QUEUE 0x00000010

#define HAL_DBG_EEPROM 0x00000040

#define HAL_DBG_NF_CAL 0x00000080

#define HAL_DBG_CALIBRATE 0x00000100

#define HAL_DBG_CHANNEL 0x00000200

#define HAL_DBG_INTERRUPT 0x00000400

#define HAL_DBG_DFS 0x00000800

#define HAL_DBG_DMA 0x00001000

#define HAL_DBG_REGULATORY 0x00002000

#define HAL_DBG_TX 0x00004000

#define HAL_DBG_TXDESC 0x00008000

#define HAL_DBG_RX 0x00010000

#define HAL_DBG_RXDESC 0x00020000

#define HAL_DBG_ANI 0x00040000 #define HAL_DBG_BEACON 0x00080000

#define HAL_DBG_KEYCACHE 0x00100000

#define HAL_DBG_POWER_MGMT 0x00200000

#define HAL_DBG_MALLOC 0x00400000

#define HAL_DBG_FORCE_BIAS 0x00800000

#define HAL_DBG_POWER_OVERRIDE 0x01000000

#define HAL_DBG_SPUR_MITIGATE 0x02000000

#define HAL_DBG_PRINT_REG 0x04000000

#define HAL_DBG_TIMER 0x08000000

#define HAL_DBG_UNMASKABLE 0xFFFFFFFF

3.) ATHDEBUG for lmac.

enum {

ATH_DEBUG_XMIT = 0x00000001, /* basic xmit operation */

ATH_DEBUG_XMIT_DESC = 0x00000002, /* xmit descriptors */

ATH_DEBUG_RECV = 0x00000004, /* basic recv operation */

ATH_DEBUG_RECV_DESC = 0x00000008, /* recv descriptors */

ATH_DEBUG_RATE = 0x00000010, /* rate control */

ATH_DEBUG_RESET = 0x00000020, /* reset processing */

/* 0x00000040 was ATH_DEBUG_MODE */

ATH_DEBUG_BEACON = 0x00000080, /* beacon handling */

ATH_DEBUG_WATCHDOG = 0x00000100, /* watchdog timeout */ ATH_DEBUG_SCAN = 0x00000200, /* scan debug prints */

ATH_DEBUG_GREEN_AP = 0x00000400, /* GreenAP debug prints */

ATH_DEBUG_HTC_WMI = 0x00000800, /* htc/wmi debug prints */

ATH_DEBUG_INTR = 0x00001000, /* ISR */

ATH_DEBUG_TX_PROC = 0x00002000, /* tx ISR proc */

ATH_DEBUG_RX_PROC = 0x00004000, /* rx ISR proc */

ATH_DEBUG_BEACON_PROC = 0x00008000, /* beacon ISR proc */

ATH_DEBUG_CALIBRATE = 0x00010000, /* periodic calibration */

ATH_DEBUG_KEYCACHE = 0x00020000, /* key cache management */

ATH_DEBUG_STATE = 0x00040000, /* 802.11 state transitions

*/

ATH_DEBUG_NODE = 0x00080000, /* node management */

ATH_DEBUG_LED = 0x00100000, /* led management */

ATH_DEBUG_FF = 0x00200000, /* fast frames */

ATH_DEBUG_TURBO = 0x00400000, /* turbo/dynamice turbo */

ATH_DEBUG_UAPSD = 0x00800000, /* uapsd */

ATH_DEBUG_DOTH = 0x01000000, /* 11.h */

ATH_DEBUG_CWM = 0x02000000, /* channel width managment

*/

ATH_DEBUG_PPM = 0x04000000, /* Force PPM management */ ATH_DEBUG_PWR_SAVE = 0x08000000, /* PS Poll and PS save */

ATH_DEBUG_SWR = 0x10000000, /* SwRetry mechanism */

ATH_DEBUG_AGGR_MEM = 0x20000000,

ATH_DEBUG_BTCOEX = 0x40000000, /* BT coexistence */

ATH_DEBUG_FATAL = 0x80000000, /* fatal errors */

ATH_DEBUG_ANY = 0xffffffff

};

###########################################################

E.g. to turn on all debug messages of HAL layer, just use:

cfg -a HALDEBUG=0xffffffff

and then restart WLAN by "cfg wlan up"

相关主题
相关文档
最新文档