Monday, October 29, 2012

Ubuntu USB WiMAX driver make


 

 

How to install YES USB WiMAX Modem (GCT Semiconductor) in Ubuntu


I had some difficulties installing a GCT Semiconductor WiMAX (model GDM 7205) USB dongle from YES mobile Malaysia. However in the end I got it to work (but not via the gnome-nettool).

Essentially I built the driver (from here
http://code.google.com/p/gctwimax/). However I also needed to patch the WPA supplicant, patch the driver, fix a missing header in dbus, and install several dependencies. Here is the log of what I covered.

# check the device

lsusb

# You should see Bus 00X Device 00X: ID 1076:7f00 GCT Semiconductor, Inc.


#Install Dependencies

sudo apt-get update
sudo apt-get install zlib1g-dev libssl-dev patch libusb-1.0-0-dev libdbus-1-dev

# Create a Working Directory & Download the files you need, WiMAX,
WPA_Supplicant, PATCH
mkdir ~/Wimax
cd Wimax
wget http://gctwimax.googlecode.com/files/wpa_supplicant-0.7.2-generate-libeap-peer.patch
wget http://gctwimax.googlecode.com/files/gctwimax-0.0.3rc4.tar.gz
wget http://gctwimax.googlecode.com/files/gctwimax-0.0.3rc4_libusb_context_fix.patch
wget http://hostap.epitest.fi/releases/wpa_supplicant-0.7.3.tar.gz
wget http://cgit.freedesktop.org/dbus/dbus/plain/dbus/dbus-arch-deps.h.in?h=dbus-1.0-branch

#fix DBUS missing file

sudo cp dbus-arch-deps.h.in\?h\=dbus-1.0-branch /usr/include/dbus-1.0/dbus/dbus-arch-deps.h

#Extract patch and build the WPA supplicant

tar xf wpa_supplicant-0.7.3.tar.gz
cd wpa_supplicant-0.7.3
patch -p1 < ~/Wimax/wpa_supplicant-0.7.2-generate-libeap-peer.patch
make -C src/eap_peer
sudo make -C src/eap_peer install
sudo ldconfig

#Extract patch and build the gctwimax driver

cd ~/Wimax
tar xf gctwimax-0.0.3rc4.tar.gz
cd gctwimax-0.0.3rc4
patch -p1 < ~/Wimax/gctwimax-0.0.3rc4_libusb_context_fix.patch

# to make without dbus uncomment the next line remove the CFLAGS option

make CFLAGS=-DWITH_DBUS
sudo make install

# Edit your configuration file


# for Yes change the following lines


# use_nv=0, #anonymous_identity="",

# make certain the login name is correct as its case sensitive

# for other networks refer to the comments in the gctwimax.config file

sudo gedit /usr/share/gctwimax/gctwimax.conf

#test your login (normal and daemon mode)

sudo gctwimax -C /usr/share/gctwimax/gctwimax.conf
sudo gctwimax -C /usr/share/gctwimax/gctwimax.conf -d

If you got problem browsing the web, (always redirect to the yes website for device authentication), just edit your /usr/share/gctwimax/gctwimax.conf. Find the line with use_nv=1 and change the value to 0.



Refrence:
http://9m2pju.blogspot.com/2012/07/linux-and-yes-4g-wimax-modem.html

3 comments: