The article is devoted to installing ZTE AX226 modem drivers on Ubuntu 11.04 and 12.04, and then connecting to the Internet, using the example of a Kazakhstan-based diji provider using WiMax technology, which currently provides, unfortunately, only ZTE AX226 modems. Out of the box, this modem does not provide for work in Linux systems and the popular madwimax package, which is used when connecting to the Yota provider using the Samsung U200 modem, is useless here. However, there are solutions for installing the ZTE AX226 modem in Ubuntu, but unfortunately they are scattered around the forums.
Installation can be carried out without an internet connection!First of all, we will need the following certificate files: CA certificate, user name (MAC address), device certificate (PEM format), device private key (PEM format).
The
ca.pem certificate CA file will need to be taken from the
C: \ Program Files \ DTV WiMAX \ bin folder where the drivers are usually installed.
In order to retrieve the rest of the certificate files and key file, we need
Process Explorer- 1. In Wndows we connect to the Internet
- 2. Process Explorer create a memory dump of the connection manager (cm.dmp) (right-click in the list cm.exe Create dump >> Create Full Dump)
- 3. Then download the script to get the ZTE AX226 modem certificates.
- 4. Unpack the script into any convenient folder and copy the dump file cm.dmp to the same folder.
- 5. Run the getcert.sh script file in the console:
/ full / path / to / folders / getcert.sh
In the folder where the script and the dump file were, two
devcer.pem and
privatkey.pem files will appear, ready for use.
Next, we will prepare the configuration file for connecting and controlling the modem
wimaxd.conf . My wimaxd.conf file looks like this:
ScanMinFrequencyMHz 2000 ## minimum search frequency
ScanMaxFrequencyMHz 2900 ## maximum search frequency
ScanStepFrequencyMHz 1 ## search step
BandwidthMHz 10
CenterFrequencyMHz 0
NetworkSearchTimeoutSec 10
LPSearchInShutDownEnabled No
NetworkEntryTimeoutSec 10
AuthEnabled Yes
EAPMethod 4
UserIdentity '12345ABCDE@aksoran.kz' ## my MAC address and connection point
UserPassword ''
TTLSAnonymousIdentity ''
BEGIN LINUX
CACertPath '/usr/share/dtv.kz' ## certificate location folder
END
')
BEGIN LINUX
CACertFileName '/usr/share/dtv.kz/ca.pem' ## path to the certificate file
END
BEGIN LINUX
TLSDeviceCertFileName '/usr/share/dtv.kz/devcer.pem' ## path to the certificate file
TLSDevicePrivateKeyFileName '/usr/share/dtv.kz/privatkey.pem' ## path to the certificate file
END
PrivateKeyPasswordFormat 'Ascii'
AuthenticationTimeoutSec 10
InvertMSKByteOrder No
AlwaysIncludeTLSLength No
EAPPollingLoopIntervalMs 50
FirmwareRSAPrivateKeyEncrypt No
InnerNAIChange yes
BEGIN LINUX
BeceemEngineFileName '/usr/src/USB_350/Source/CSCM/bin_pc_linux/bin/libengine_beceem.so'
END
AuthEthernetToRADIUS No
RADIUSIPAddress '10 .128.47.40 '
RADIUSPort 1812
RADIUSSecret 'whatever'
AutoReConnectEnabled No
AutoReConnectIntervalSec 5
LinkStatusRequestPeriodSec 2
BEGIN LINUX
IPRefreshCommand 'dhclient eth1'
NetEntryIPRefreshEnabled Yes
TerminateDHCPClient Yes
END
BEGIN LINUX
FirmwareFileName '/lib/firmware/macxvi350.bin'
ConfigFileName '/lib/firmware/macxvi.cfg'
END
CSCMDebugLogLevel 4
BEGIN LINUX
CSCMDebugLogFileName '/tmp/CM_Server_Debug.log'
END
CSCMDebugLogFileMaxSizeMB 1
AuthLogLevel 5
BEGIN LINUX
AuthLogFileName '/tmp/CM_Auth.log'
END
BEGIN LINUX
EnableAuthSysLogPrints No
END
AuthLogFileMaxSizeMB 1
EngineLoggingEnabled Yes
EngineLogFileMaxSizeMB 2
BEGIN LINUX
EngineLogFileName '/tmp/CM_Engine.log'
END
RADIUSClientLogLevel 0
Pay attention to the lines
ScanMinFrequencyMHz 2000 ## minimum search frequency
ScanMaxFrequencyMHz 2900 ## maximum search frequency
They define the search range of the base station to which we will connect, so if you set a small search range, then the base station risks not being detected. However, if you specify a large search range, the modem will search for base stations for a very long time. Therefore, I recommend specifying a large range of frequencies when you first start, and after the stations are identified, indicate a smaller range. (How to determine which frequencies of the nearest base stations are described below)
Then we place the
wimaxd.conf file, as well as the
ca.pem ,
devcer.pem and
privatkey.pem certificate files in the
/usr/share/dtv.kz folder, using Nautilus in the super-administrator mode:
sudo nautilus
Now let's proceed directly to installing the driver ZTE AX226.
- 1. Download Sprint4G-Lite-Pack (26mb)
- 2. Unpack the archive in your home directory (!)
- 3. Unpack your cm.dmp dump file (or your certificates if you have already done them) and ca.pem into the ~ / Sprint4G-lite-Pack / getcert / folder.
- 4. We plug the modem into the USB port
- 5. Perform in the console:
sudo -i -H
cd / home / user_name / Sprint4G-lite-Pack
./install_lite.sh
And answer the questions of the installer.
- Your MAC address can be read on the modem. We are looking for a string of the form MAC: 001EB34A7596. When installing, we enter only 001EB34A7596 without the word "MAC:"
- You can find out the kernel version with the command
uname -r
For example, I have a kernel version 3.2.0-26-generic-pae , respectively, I answer:/usr/src/linux-headers-linux-headers-3.2.0-26-generic-pae
After the installation is completed, we check whether the modem was determined in the system by running the command
lsusb
The modem should decide
something like thisBus 001 Device 007: ID 19d2: 0172 ZTE WCDMA Technologies MSM AX226 WIMAX MODEM (After Modeswitch)
If instead of ID
19d2: 0172 we see ID
19d2: bccd , then we try to disconnect and reconnect the modem.
Comment:When updating the driver kernel, you have to reinstall!
When the modem is installed and detected, you can install the Wimax applet for the ZTE AX226 modem:
- 1. Download the archive wimax-applet_1.4.8_all.zip
- 2. Install the .deb package by executing the command
sudo dpkg -i /path/to/package/wimax-applet_1.4.8_all.deb
- 3. Launch the applet by simply finding it in dash
- 4. We transfer control to manual mode and the applet searches for base stations.
- 5. After the search is completed, select the BS with the highest CINR and connect to it.
The choice of the BS also displays their frequencies, which will help us determine the approximate frequency range of the BS, which we indicate in
wimaxd.confInstallation completed. The modem is ready to go.
Wimax applet for ZTE AX226 modem is written by
TwiN user
Sprint4G-Lite-Pack is also built by
TwiN user
.Some materials used
from here