Wednesday, September 9, 2009

Installing Reliance Netconnect 1X modem in Linux

I finally got the solution of installing supported kernel and its working.

First of all u have download the latest driver from the reliance netconnect on this web address(the drivers are generally provided in the cd u got with ur modem) :

http://www.rcom.co.in/Communications...downloads.html

The driver in my case is under the High speed 1x > LXU , download the zip file and extract it.You can find ur appropriate driver by checking your modem name.

Actually in my case of LG LXU modem the drivers are for Linux kernel image for version 2.6.27-7 , so i installed this kernel .You can check the kenel version for which ur drivers are supported by browsing in relaince drivers folder : "relaince/MAC_LINUX_usb_driver/LINUX"(in my case of lxu800) and check the version on the folder(in my case it is LXU800_V2.6.27-7-generic, it can be any of v____generic ).

Now when u r done checking ur modem supported kernel version and downloading the relaince drivers , we r going to install the appropriate kernel (in my case kernel image 2.6.27-7-generic for LXU800 modem).


For LG LXU MODEM users :

Now for downloading and installing follow these steps :



*for debain or ubuntu(download the deb file) -


Step 1 : Download the working kernel files:

(a) linux-image for kernel -
http://launchpadlibrarian.net/193569...-7.16_i386.deb

(b) linux-headers -
for debian or ubuntu
http://launchpadlibrarian.net/193569...-7.16_i386.deb

(c) linux-headers_all -
http://launchpadlibrarian.net/193569...7-7.16_all.deb

Step 2 : Next, install the three downloaded DEB files with dpkg:

sudo dpkg -i linux-*

3. Reboot your computer.

4. Put your current kernel on hold (otherwise it would be upgraded once again during your next "aptitude update && aptitude safe-upgrade" routine):

sudo aptitude hold linux-image-2.6.27-7-generic linux-headers-2.6.27-7-generic linux-headers-2.6.27-7

*for other linux users dl the tar.gz file -

(1). Download tar.gz
https://launchpad.net/ubuntu/intrepi...6.27-7-generic
this package of tar.gz comtains all the files of kernel image and headers.After downloading this package install it -
(2). install -
tar -xvf linux-image-2.6.27-7-generic.tar.gz
cd linux-image-2.6.27-7-generic
./configure
make install
install

(3). Reboot your computer.

(4). Put your current kernel on hold (otherwise it would be upgraded once again during your next "aptitude update && aptitude safe-upgrade" routine):

sudo aptitude hold linux-image-2.6.27-7-generic linux-headers-2.6.27-7-generic linux-headers-2.6.27-7


For other Reliance Modem users(other than LG lxu 800) -

Find the version of the kernel supported by relaince driver as explained previously.
And find the kernel package from the package search option according to ur kernel-
* linux-image * linux-headers * linux -headers_all
download and install it.


After installing the kernel supported by ur realiance drivers , now follow the steps given by the installtion guide in the reliacnce driver folder
reliance/MAC_LINUX_usb_driver/LINUX(for lxu800)

I am including the guide if u don't have it(for LG LXU800 modem) -


How to manually install LXU800 driver (Linux 2.6.27-7-generic version)


1. Open the console. (ex> gnome-terminal)
2. Change user account to super user account.
[devguru@localhost]$ sudo -s
Password:
[root@localhost]#cd bin(in the reliance folder)
3. Install LXU800 driver.
[root@localhost bin]# ls
env.sh package setup_func.sh setup.sh uninstall_func.sh uninstall.sh
[root@localhost bin]# bash setup.sh
Kernel Modules are loaded.
[root@localhost bin]#
Setup with `bash setup.sh` command.
4. Check Installed State.
[root@localhost bin]# lsmod |grep LXU
LXU800Mdm 13728 0
[root@localhost bin]# more /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
/sbin/modprobe -f LXU800Mdm
exit 0
[root@localhost bin]#
5. For Uninstalling LXU800 driver.
[root@localhost bin]# pwd
Home/localhost/bin
[root@localhost bin]# cd /
[root@localhost]# cd /usr/local/LGE/LXU800
[root@localhost /usr/local/LGE/LXU800]# bash LGE_ LXU800_uninstall.sh
Uninstall Completed
[root@localhost /usr/local/LGE/LXU800]#
6. Check Uninstalled State.
[root@localhost /usr/local/LGE/LXU800]# lsmod | grep LXU
[root@localhost /usr/local/LGE/LXU800]# more /etc/rc.local
#!/bin/sh
#

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
exit 0
[root@localhost ~]#

* Prepare Testing and connection
1. Insert LXU800 modem in Linux usb port, and create the shortcut of modem
equipment and serial port.
[root@localhost bin]# ls /dev/*LXU*
/dev/ttyLXU800Mdm0
[root@localhost bin]# ln -s /dev/ttyLXU800Mdm0 /dev/ttyACM0
[root@localhost bin]# ls -l /dev/*ACM*
lrwxrwxrwx 1 root root 18 2008-12-12 18:56 /dev/ttyACM0 -> /dev/ttyLXU800Mdm0

* How to “Modem Dial-up Connect”
1. Open the console. (ex> gnome-terminal)
2. Change user account to super user account.
[devguru@localhost]$ sudo -s
Password:
[root@localhost]#
3. Type “editor /etc/wvdial.conf” in order to edit “wvdial.conf” file.
[root@localhost]# editor /etc/wvdial.conf
4. Modify “wvdial.conf” file like below image and then save that file to exit.
Where, username and password are MDN(mobile-directory-number).

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
Initz = ATQ0 M1 L1 X3 V1 E1 S0= 0 &C1 &D2 +FCLASS=0
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0


Username = ur username
Password = ur password
Phone = #777
Stupid Mode = 1

New PPPD = yes
Abort on no dial tone = False

5. Insert LXU800 modem in Linux usb port.
6. Open “Xterm” window.
[root@localhost]# xterm
7. Type “wvdial” to connect to the internet in “Xterm” window.
[root@localhost]# wvdial
8. If you cannot see above image, retry above 1, 2, 5, 6, 7, 8 steps.
9. If you type “Ctrl-C” and push “Enter” button, you can exit from internet connection.

2 comments:

  1. Thanks dude. I was very upset for installing this bcoz I couldn't. I was trying to find the steps to install it since last 4 months. I have not installed it yet but I'll let u know if there is some problem.
    thanks thanks thanks thanks..................................................................................

    ReplyDelete
  2. Great work yaar...
    People like you who help others are very rare nowadays...
    Great work!!!

    ReplyDelete