Install ZTE AX226 on Ubuntu 11.04 and 12.04

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 Kazakhstani diji provider using WiMax technology, which currently provides, unfortunately, only ZTE AX226 modems. Out of the box, this modem does not provide for 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 done without an internet connection!
First of all, we need certificate files: CA certificate, username (MAC address), device certificate (PEM format), private key of the device (PEM format).
You will need to take the CA.pem certificate CA file from the C: \ Program Files \ DTV WiMAX \ bin folder , where drivers are usually installed.
In order to get the rest of the certificate files and the key file, we need Process Explorer
  • 1. Connect to the Internet at Wndows
  • 2. Process Explorer, create a dump of the connection manager's memory (cm.dmp) (right-click in the cm.exe list Create dump >> Create Full Dump)
  • 3. Then download the script to obtain ZTE AX226 modem certificates.
  • 4. Unpack the script in any convenient folder and copy the cm.dmp dump file 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 wimaxd.conf modem connection and control configuration file . My wimaxd.conf file looks like this:
ScanMinFrequencyMHz 2000 ## minimum frequency search
ScanMaxFrequencyMHz 2900 ## maximum search frequency
ScanStepFrequencyMHz 1 ## step search
BandwidthMHz 10
CenterFrequencyMHz 0
NetworkSearchTimeoutSec 10
LPSearchInShutDownEnabled No
NetworkEntryTimeoutSec 10
AuthEnabled Yes
EAPMethod 4

UserIdentity '12345ABCDE@aksoran.kz' ## my MAC address, and the point Connectivity
UserPassword ''
TTLSAnonymousIdentity ''

BEGIN LINUX
CACertPath '/usr/share/dtv.kz' ## certificate location folder
END

BEGIN LINUX
CACertFileName '/usr/share/dtv.kz/ca.pem'## path to
END

BEGIN LINUX certificate file
TLSDeviceCertFileName '/usr/share/dtv.kz/devcer.pem' ## path to the certificate
TLSDevicePrivateKeyFileName '/usr/share/dtv.kz/privatkey.pem' ## path to the certificate
the END
PrivateKeyPasswordFormat 'Ascii'

AuthenticationTimeoutSec 10
InvertMSKByteOrder No
AlwaysIncludeTLSLength no
EAPPollingLoopIntervalMs 50
FirmwareRSAPrivateKeyEncrypt no
InnerNAIChange yes or The

the BEGIN the LINUX
BeceemEngineFileName '/usr/src/USB_350/Source/CSCM/bin_pc_linux/bin/libengine_beceem.so'
the 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 determine the search range of the base station to which we will connect, so if you set a small search range, the base station risks being undetected. However, if you specify a large search range, the modem will search for base stations for a very long time. Therefore, I recommend that you indicate a large frequency range at the first start, and after the stations are determined, specify a smaller range. (How to determine which frequencies at the nearest base stations is described below)

Then we put 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 super admin mode:
sudo nautilus


Now we proceed directly to installing the ZTE AX226 driver.
  • 1. Download the Sprint4G-Lite-Pack (26mb)
  • 2. Unpack the archive into the home directory (!)
  • 3. Unpack your cm.dmp dump file (or your certificates, if you already made them) and ca.pem into the ~ / Sprint4G-lite-Pack / getcert / folder.
  • 4. We plug the modem into the USB port
  • 5. We execute in the console:
    sudo -i -H
    cd / home / user_name / Sprint4G-lite-Pack
    ./install_lite.sh
    And we answer the questions of the installer.
  • You can read your MAC address on the modem. We are looking for a string like MAC: 001EB34A7596. When installing, enter only 001EB34A7596 without the word "MAC:"
  • You can find out the kernel version using 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 detected in the system by running the command
lsusb
The modem should look something like this
Bus 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.
Note:
When updating the driver kernel, you will have to reinstall it!


When the modem is installed and detected, you can install the Wimax applet for the ZTE AX226 modem:
  • 1. Download the wimax-applet_1.4.8_all.zip archive
  • 2. Install the .deb package by running the command
    sudo dpkg -i /path/do/package/wimax-applet_1.4.8_all.deb
  • 3. Launch the applet just by finding it in dash
  • 4. We translate the control into manual mode and the applet searches for base stations
  • 5. After the search is complete, select the BS with the highest CINR and connect to it
When choosing a BS, their frequencies are also displayed, which will help us determine the approximate frequency range of the BS, which we indicate in wimaxd.conf.
Installation is complete. The modem is ready to go.

Wimax applet for ZTE AX226 modem is written by TwiN user .
Sprint4G-Lite-Pack is also compiled by TwiN user .
Some of the materials used from here

Also popular now: