VectorLinux

The nuts and bolts => Web & Internet => Topic started by: tunit on July 11, 2012, 12:44:03 am

Title: [SOLVED] Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 11, 2012, 12:44:03 am
Hello Everyone, it feels great to be part of the VL community. I am very new to VL, this being only my second day using VL and it is my second linux distro after damn small linux... I am absolutely in love with VL, it is a fast, lightweight, less resource-intensive, stable and secure OS with killer looks. However, me and many other users like me in my country use this AX226 wimax usb modem to get online. I think I will need some driver for my modem that I can compile with VL which will allow me to use it in VL, right now I get online using Vista.

I have digged up from the net a driver for this modem but it compiles with fedora 16, apparently. I was wondering if anyone here can help make one for VL with little tweaking of this driver here and there. Here's the link:

http://code.google.com/p/wimaxcmgui/downloads/detail?name=source_bcm_wimax.tar.gz&can=2&q= (http://code.google.com/p/wimaxcmgui/downloads/detail?name=source_bcm_wimax.tar.gz&can=2&q=)  

Hope that someone kind would help out. It would be great to be online from VL rather than Vista. Thanks a lot and best wishes.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 11, 2012, 07:43:35 am
what kernel are you using there?
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 11, 2012, 09:15:17 pm
I'm using VL 7 standard Gold so the kernel is Linux Kernel 3.0.8.

oh I've found another link with linux drivers for this wimax usb modem, I'll try and see if I can use any of these for VL...I don't know how though, I'll start with vasmcc..

link: http://code.google.com/p/bcm-wimax/ (http://code.google.com/p/bcm-wimax/)
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 11, 2012, 11:19:53 pm
Ok, one of the downloads has three .sh files which I could only run (the option build is disabled) using Geany, but it exits with the code 126 saying permission denied. I was working as root, still this message.. I am confused as I am totally inexperienced in this thing.. they haven't included any readme either.. I have a feeling if I can run these three .sh files somehow, I can resolve this..
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 12, 2012, 01:52:14 pm
download this: http://ftp-osl.osuosl.org/pub/vectorlinux/veclinux-7.0/kernels/3.0.8-1vl70/bcm_wimax-0.1_3.0.8-x86-1vl70.txz

use "installpkg bcm_wimax-0.1_3.0.8-x86-1vl70.txz" as root to install it
then run "depmod -aq"
and "modprobe bcm_wimax"
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 05:20:59 am
download this: http://ftp-osl.osuosl.org/pub/vectorlinux/veclinux-7.0/kernels/3.0.8-1vl70/bcm_wimax-0.1_3.0.8-x86-1vl70.txz

use "installpkg bcm_wimax-0.1_3.0.8-x86-1vl70.txz" as root to install it
then run "depmod -aq"
and "modprobe bcm_wimax"


All the commands run fine until modprobe bcm_wimax, in which case the cursor does not return back to root prompt.

My attempt with the .sh files have failed as well.. I was able to run those and produce a .conf file.. but the install failed to build a server and therefore I think the command to run the .conf file isn't working. I've checked with the forum of the developers and they are saying that I have to make a driver from the sources given, their auto installer i.e. the .sh files were only meant to run on ubuntu 10.4 LTS and  Mint Isadora 9. So I guess until someone (more technical than me) makes the driver for it in VL, I cannot use this modem to get online from VL.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 13, 2012, 05:58:55 am
The pkg you installed above was the VL driver.
running "modprobe bcm_wimax" inserts the driver into the kernel. I am not sure why that would fail, unless there is another driver trying to run your modem.
try rebooting with the modem unplugged then modprobe the driver and then plug in the modem.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 06:55:37 am
The pkg you installed above was the VL driver.
running "modprobe bcm_wimax" inserts the driver into the kernel. I am not sure why that would fail, unless there is another driver trying to run your modem.
try rebooting with the modem unplugged then modprobe the driver and then plug in the modem.


Hey thanks I've tried that and modprobe succeeded. But what do I do now? How do I type in my username and password to connect? In the wicd program there are no wireless device or network visible. Do I have to use command line for this?
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 08:58:41 am
I've checked out the Howto on wireless setup and have gone upto this-
vector:/~
root:# iwlist wlan0 scan
wlan0     No scan results

now I cannot go forward as there are no ESSID in scan results. I have added alias wlan0 to bcm_wimax in modprobe.conf but could not find ifplugd anywhere, but since I am using VL7 I don't need to change ifplugd right? Please let me know what you think.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 13, 2012, 10:09:55 am
try downloading this http://wimaxcmgui.googlecode.com/files/wimaxcmgui-1.0.0-no-fw-cert-cfg
and run it "chmod +x wimaxcmgui-1.0.0-no-fw-cert-cfg" and "./wimaxcmgui-1.0.0-no-fw-cert-cfg"
then "service wimax start" and finally "wimaxcmgui"
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 03:20:44 pm
try downloading this http://wimaxcmgui.googlecode.com/files/wimaxcmgui-1.0.0-no-fw-cert-cfg
and run it "chmod +x wimaxcmgui-1.0.0-no-fw-cert-cfg" and "./wimaxcmgui-1.0.0-no-fw-cert-cfg"
then "service wimax start" and finally "wimaxcmgui"

The connection manager launches but it says "No device" that is my usb modem is not being detected, I've tried unplugging it and rebooting my pc, with no improvement. This is quite strange because after lsusb, the device does show up on one of my usb ports-

Bus 002 Device 003: ID 19d2:bccd ONDA Communication S.p.A.

Another thing, sometimes VL7 loader freezes while displaying messsage "loading udev" during which the usb modem light blinks a few times and does not recover until a hard boot.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 13, 2012, 03:30:46 pm
post the output of dmesg that pertains to your hardware. you may need firmware.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 05:28:48 pm
Yay! I've managed to connect using the following-

changed the device id of my modem so it could be used for linux using this software: http://wimaxcmgui.googlecode.com/files/beceem-control-panel.exe (http://wimaxcmgui.googlecode.com/files/beceem-control-panel.exe)

and then used this connection manager to create user account and then connect:
http://wimaxcmgui.googlecode.com/files/banglalion-wimax-for-linux-1.0.0-ax226-wu216 (http://wimaxcmgui.googlecode.com/files/banglalion-wimax-for-linux-1.0.0-ax226-wu216)

BUT!! I cannot browse internet although I'm connected! Does this has anything to do with dhcp? I think we are very close to solving this one. Please help.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 13, 2012, 06:04:10 pm
make sure you have an ip address, you can check with ifconfig
make sure you have a dns server in /etc/resolv.conf
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 06:22:46 pm
make sure you have an ip address, you can check with ifconfig
make sure you have a dns server in /etc/resolv.conf

That's the problem. I am not getting an IP... the gui providers said that with some distros it could take a while for the ip to load..and I should click the IP text in the gui to reload ip but it does not work, I've clicked on it a lot of times. So without IP I am being disconnected after every few minutes. Let me try the ifconfig and dns server thing now.. brb.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 06:41:30 pm
I've got the following outputs and I cannot make anything out of it...

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:863 errors:0 dropped:0 overruns:0 frame:0
          TX packets:863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76312 (74.5 Kb)  TX bytes:76312 (74.5 Kb)


# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.cof.tail can replace this line

Should I try the iwlist scan command and the dhcpcd with ssid commands mentioned in the howto? maybe these will work now since I can connect now..
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 07:28:04 pm
No good. I've emailed the gui support to let them know about this no IP problem. Let's see what they say about it. Thanks for your help, and please let me know if you come up with anything else.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 13, 2012, 10:28:39 pm
root:# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
         
eth1      no wireless extensions.


root:# dhcpcd
dhcpcd[3156]: version 5.2.12 starting
dhcpcd[3156]: eth1: broadcasting for a lease
dhcpcd[3156]: eth0: waiting for carrier
dhcpcd[3156]: wlan0: waiting for carrier
dhcpcd[3156]: timed out
dhcpcd[3156]: forked to background, child pid 3199
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: uelsk8s on July 14, 2012, 08:53:32 am
you have 3 different network cards there eth0, eth1 and wlan0.
we need to know which is which.
run "dmesg|grep eth" and "dmesg|grep wlan"
once you find the right one you should be able to bring it up with "ifconfig eth1 up" and then "dhcpcd eth1"
change eth1 to the correct nic.
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 14, 2012, 08:32:11 pm
you have 3 different network cards there eth0, eth1 and wlan0.
we need to know which is which.
run "dmesg|grep eth" and "dmesg|grep wlan"
once you find the right one you should be able to bring it up with "ifconfig eth1 up" and then "dhcpcd eth1"
change eth1 to the correct nic.

I have found out eth1 to be the correct nic. and then did this -

banglalion:/~
root:# ifconfig eth1 up
banglalion:/~
root:# dhcpcd eth1
dhcpcd[3265]: version 5.2.12 starting
dhcpcd[3265]: eth1: broadcasting for a lease
dhcpcd[3265]: timed out

So it times out... is there something wrong with my dns server configuration and that's why I am unable to lease an IP.. maybe it's requesting a wrong dns server or something?
Title: Re: Driver for AX226 Wimax USB modem by ZTE
Post by: tunit on July 14, 2012, 10:16:25 pm
SUCCESS!!!!!!!

I am posting from VL7!! Big thanks to uelsk8s and ofcourse Minhazul the developer of the driver. I did the following-



banglalion:/~
root:# ifconfig eth1 up
banglalion:/~
root:# service wimax start
Starting WiMAX daemon
********** CSCM Server Started ********** 07/15/12 11:27:31
banglalion:/~
root:# dhcpcd eth1
dhcpcd[4093]: sending commands to master dhcpcd process
banglalion:/~
root:# dhcpcd -d
dhcpcd[4121]: dhcpcd already running on pid 3451 (/var/run/dhcpcd.pid)
banglalion:/~
root:# wimaxcmgui

I will just enter the SOLVED tag on this thread now. THANKS AGAIN!