AX88772C/AX88772B/AX88772A/AX88760/AX88772/AX88178 Linux SROM tool.
|
|
This tool can be used to read/write the EEPROM of AX88772C/AX88772B/AX88772A/AX88760/AX88772/AX88178.
|
================
|
Getting Start
|
================
|
|
1. Extract the compressed driver source file to your template directory by the
|
following command:
|
|
[root@localhost template]# tar -xf AX88772B_772A_760_772_178_Linux_EEPROM_Programming_Tool_Source_v1.x.0.tar.bz2
|
|
2. Now, the driver source files should be extracted under the current directory.
|
Executing the following command to compile the driver:
|
|
[root@localhost template]# make
|
|
3. If the compilation is well, the ioctl will be created under the current
|
directory.
|
|
Note: The default way to find the interface is to scan the ASIX device using the ethx
|
(x: 0~255).It is defined in the file, ioctl.h.
|
|
(As follows)
|
...
|
// DEFAULT_SCAN : scan "eth0" - "eth255"
|
// INTERFACE_SCAN : scan all available network interfaces
|
#define NET_INTERFACE DEFAULT_SCAN
|
#define DEFAULT_SCAN 0x00
|
#define INTERFACE_SCAN 0x01
|
...
|
|
Adjust the contents of #define NET_INTERFACE to select the method you want.
|
|
================
|
Usage
|
================
|
|
1. If you want to read out values of the EEPROM to a file, go to the driver directory and
|
execute the following command:
|
|
[root@localhost driver_dir]# ./ioctl reeprom file_name eeprom_size
|
|
2. If you want to write values of a file to the EEPROM, go to the driver directory and
|
execute the following command:
|
|
[root@localhost driver_dir]# ./ioctl weeprom file_name eeprom_size
|
|
3. If you want to change the MAC address of a dongle, go to the driver directory and
|
execute the following command:
|
|
[root@localhost driver_dir]# ./ioctl chgmac mac_addr eeprom_size
|
|
4. If you need more information about the instructions, go to the driver directory and
|
execute the following commands:
|
|
[root@localhost driver_dir]# ./ioctl reeprom help
|
|
or
|
|
[root@localhost driver_dir]# ./ioctl weeprom help
|