hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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