⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ath_info.8.svn-base

📁 最新之atheros芯片driver source code, 基于linux操作系统,內含atheros芯片HAL全部代码
💻 SVN-BASE
字号:
.TH "ATH_INFO" "8" "September 2007" "" "".SH "NAME"\fbath_info\fP \- print module version info, write some eeprom fields.SH "SYNOPSIS".B ath_info[-w [-g N:M]] [-v] [-f] <pci_address> [<field1> <val1> [<field2> <val2> ...]].SH "DESCRIPTION"\fBath_info\fP prints some version information of Atheros WLAN modules. It furthermoreallows to change regulatory domain and PCI ID fields in the EEPROM..PPYou must first retrieve the PCI memory address of the module by.B lspci -vand maybe activate the module by.B setpci(see example below).\fBDISCLAIMER:\fP Use the write function only if you know what you are doing! There is the chance tobrick your module. The authors aren't responsible for any damage caused by using this program..PP\fB Transmitting on illegal frequencies may violate state laws. Obey the local regulations!\fP.SH "OPTIONS".TP.B \-wWrite to the EEPROM. You need to specify at least one \fBfield value\fP pair (see below)..TP.B \-g N:MSet the GPIO pin N to level M (N=0..5, M=0,1). Only useful with \fB-w\fP.\fBath_info\fP sets GPIO 4 to 0 (low) for chipsets newer or equal to 5213 to enable writing to the EEPROM.If your module has a different layout, you may need to overwrite this..TP.B \-vverbose printouts.TP.B \-fforce, don't ask before writing to EEPROM (with \fB-w)..TP.B <pci_address>The PCI address of the module. You must retrieve it with \fBlspci\fP..TP.B <field> <value>Field and value names for EEPROM writing. Possible fields are:.B pci_dev_id, pci_vendor_id, pci_class, pci_rev_id, pci_subsys_dev_id, pci_subsys_vendor_id, regdomain.SH "EXAMPLE"Execute the commands below from a root account.Retrieve the module's PCI memory address with \fBlspci\fP:.LP.nf# lspci -v0b:00.0 Ethernet controller: Atheros Communications, Inc. AR5211 802.11ab NIC(rev 01)        Subsystem: Standard Microsystems Corp [SMC] Unknown device 2335        Flags: medium devsel, IRQ 20        Memory at 6c000000 (32-bit, non-prefetchable) [size=64K]        Capabilities: [44] Power Management version 2.fiThe above card has its memory mapped at 0x6c000000..PPIf no madwifi driver is running or the module isn't recognized by thedriver anymore, e.g. due to wrong PCI id values (check your syslog),you must manually enable the PCI device with \fBsetpci\fP. The argument to "-s" comesfrom the output above:.LP.nfsetpci -s 0b:00.0 command=0x41f cache_line_size=0x10.fi.PPRetrieve some information of the module:.LP.nf# ./ath_info 0x6c000000 \-==Device Information==\-MAC Version:  5211  (0x40) MAC Revision: 5211  (0x42) 5GHz PHY Revision: 5111  (0x17) 2GHz PHY Revision: 2111  (0x23)  -==EEPROM Information==-EEPROM Version:     3.2 EEPROM Size:        16KRegulatory Domain:  0x20 -==== Capabilities ====-|  802.11a Support: yes  ||  802.11b Support: yes  ||  802.11g Support: no   ||  RFKill  Support: no   | ========================.fi.PPSet the regulatory domain to 0. You need to confirm to write with 'y' (-f turns this off).Check \fBhttp://madwifi.org/wiki/UserDocs/CountryCode\fP for more information onregdomains and country codes:.LP.nf# ./ath_info -w 0x6c000000 regdomain 0 -==Device Information==-MAC Version:  5211  (0x40) MAC Revision: 5211  (0x42) 5GHz PHY Revision: 5111  (0x17) 2GHz PHY Revision: 2111  (0x23)  -==EEPROM Information==-EEPROM Version:     3.2 EEPROM Size:        16KRegulatory Domain:  0x20  -==== Capabilities ====-|  802.11a Support: yes  ||  802.11b Support: yes  ||  802.11g Support: no   ||  RFKill  Support: no   | ========================GPIO registers: CR 00000000 DO 00000000 DI 00000000           regdomain (0x00bf) := 0x0000WARNING: The write function may easy brick your device orviolate state regulation on frequency usage.Proceed on your own risk!Shall I write the above value(s)? (y/n)y.fi.SH "BUGS"The write function is currently not tested with 5210 devices..PPUse at your own risk, entering a false device address will have really nasty results!.PPAn invalid magic in the EEPROM will cause \fBath_info\fP to fail.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -