Skip to content

Commit 92860d9

Browse files
committed
Document access via driver debug interface
Add quick description of how to access EEPROM data using driver specific debug interface. This should help user to select an optimal access method.
1 parent bd4f30b commit 92860d9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This is a utility to dump and update the EEPROM content of Atheros based wireles
66
atheepmgr supports several operations such as parsing and printing the EEPROM content, updating the EEPROM contents and so on. The utility can access EEPROM content of a real NIC and can works with EEPROM data that has been dumped to the file. You can find a few usage examples below.
77

88
The following EEPROM content access techniques are supported:
9+
* via driver specific debug interface (using Linux ath9k/ath10k drivers)
910
* via mapping of the PCI device I/O region (using libpciaccess)
1011
* via mapping of the directly specified device I/O region
1112
* file dump
@@ -87,6 +88,22 @@ or using chip name instead of EEPROM map (layout) name:
8788

8889
*NB*: chip autodetection is not supported for file access, so you should specifiy EEPROM map (layout) or chip name manually. To see a full list of supported EEPROM maps use a *-h* option.
8990

91+
### Print EEPROM content of a network interface via driver
92+
93+
*NB*: at the moment only Linux ath9k/ath10k debug interfaces are supported, you driver should be build with enabled debugfs support (true for OpenWrt distro).
94+
95+
This access method useful in case of your Linux kernel blocks device I/O memory access via the /dev/mem. To access device EEPROM you should specify either network interface:
96+
97+
```
98+
# atheepmgr -t 5415 -D wlan0
99+
```
100+
101+
or Linux ieee80211 phy name:
102+
103+
```
104+
# atheepmgr -t 5416 -D phy1
105+
```
106+
90107
### Dump NIC EEPROM content to the file
91108

92109
Example: preserve a wireless NIC EEPROM content to the eep.bin file

0 commit comments

Comments
 (0)