In this tutorial we install a modem driver and setting up dial up connection in Linux debian ubuntu fedora.
*************** DRIVER INSTALATION START **********************
-----------------------------1
To list all PCI devices.
root@priyar:# lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
01:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
01:01.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01) <-------- Internal modem
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
----------------------------2
To check modem installed or not.
root@priyar:# ls /dev/ttyS
ttyS0 ttyS1 ttyS2 ttyS3 < --------------------No ttySHSF0 file
-----------------------------3
root@priyar:# ls /dev/modem <------------------- file not exist
-----------------------------4
Download "hsfmodem_7.80.02.04full_i386.deb.zip" from http://www.linuxant.com/drivers/hsf/full/downloads.php
Extarct "hsfmodem_7.80.02.04full_i386.deb.zip" to Desktop
root@priyar:~# cd /home/root/Desktop/hsfmodem_7.80.02.04full_i386.deb
-----------------------------5
Change to extracted directory.
root@priyar:~/Desktop/hsfmodem_7.80.02.04full_i386.deb# ls
hsfmodem_7.80.02.04full_i386.deb LICENSE
-----------------------------6
Installing downloaded driver.
root@priyar:~/Desktop/hsfmodem_7.80.02.04full_i386.deb# dpkg -i hsfmodem_7.80.02.04full_i386.deb
Selecting previously deselected package hsfmodem.
(Reading database ... 115654 files and directories currently installed.)
Unpacking hsfmodem (from hsfmodem_7.80.02.04full_i386.deb) ...
Setting up hsfmodem (7.80.02.04full) ...
----------------------------7
Checking for installed binary.
root@priyar:~# hsf
hsfconfig hsfdcpd hsfmodconflicts hsfstop
----------------------------8
Running the command for modem configuration.
root@priyar:~# hsfconfig <----------------------------- is a command.
Conexant HSF softmodem driver, version 7.80.02.04full
If you need license keys, assistance or more information, please go to:
http://www.linuxant.com/
When reporting a problem for the first time, please send
us the file generated by "hsfconfig --dumpdiag".
No pre-built modules for: Debian-5.0 linux-2.6.26-1-686 i686-SMP
Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)
Please install the 'kernel-headers-2.6.26-1-686' package. You can install
it with the 'apt-get install kernel-headers-2.6.26-1-686' command.
Where is the linux source build directory that matches your running kernel?
[/usr/src/linux] <------------- Type linux source build directory path or press Enter key.
WARNING: missing file /usr/src/linux/include/linux/autoconf.h <--------------*
The cause of this is usually a missing or unconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).
First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.
The Linux kernel can then be reconfigured by running "make menuconfig"
under the kernel source directory (usually /usr/src/linux).
Verify that the proper options for your system are selected.
Then compile and install your new kernel (for more information about
this procedure, see the README file under the kernel source directory),
reboot the system using the new kernel, and re-run "hsfconfig".
Note: Here Modem Configuration Failed.
-----------------------------9
Checking /usr/src/ directory content.
root@priyar:~# ls /usr/src/
linux-kbuild-2.6.26
-----------------------------10
Checking /lib/modules/2.6.26-1-686/ directory content.
root@priyar:~# ls /lib/modules/2.6.26-1-686/ <----------here no /build directory
extra/ modules.ccwmap modules.inputmap modules.pcimap modules.usbmap
kernel/ modules.dep modules.isapnpmap modules.seriomap updates/
modules.alias modules.ieee1394map modules.ofmap modules.symbols
-----------------------------11
Installing Header files.
root@priyar:~#apt-get install linux-headers-2.6.26-1-686
root@priyar:~#apt-get install linux-headers-2.6.26-1-common
-----------------------------12
Checking /usr/src/ directory content after header file installation.
root@priyar:~# ls /usr/src/ <----- you can see newly installed source linux-headers-2.6.26-1-686 linux-headers-2.6.26-1-common linux-kbuild-2.6.26 ----------------------------13
Checking /lib/modules/2.6.26-1-686/ directory content after header file installation.
root@priyar:~# ls /lib/modules/2.6.26-1-686/ <----------here you can see /build directory
build kernel modules.ccwmap modules.ieee1394map modules.isapnpmap modules.pcimap modules.symbols updates
extra modules.alias modules.dep modules.inputmap modules.ofmap modules.seriomap modules.usbmap
Note: you can see "autoconf.h" in /build directory "/lib/modules/2.6.26-1-686/build/include/linux/autoconf.h"
----------------------------14
Running the command for modem configuration again.
root@priyar:~# hsfconfig
Conexant HSF softmodem driver, version 7.80.02.04full
If you need license keys, assistance or more information, please go to:
http://www.linuxant.com/
When reporting a problem for the first time, please send
us the file generated by "hsfconfig --dumpdiag".
No pre-built modules for: Debian-5.0 linux-2.6.26-1-686 i686-SMP
Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)
Where is the linux source build directory that matches your running kernel?
[/lib/modules/2.6.26-1-686/build] <------------- Type linux source build directory path or press Enter key.
Building modules for kernel 2.6.26-1-686, using source directory
/lib/modules/2.6.26-1-686/build. Please wait...
done.
Please enter region name for modem unit 0 [USA]: india <--------------*
Setting region for modem unit 0: "INDIA"
To change, use "hsfconfig --region" or "AT+GCI=
The current region can be displayed by entering "ATI9" in a terminal program.
Note: we respect user privacy. Email addresses are not communicated
nor used for any purpose other than to manage licenses!
Please enter your email address [sajuptpm@gmail.com]: sajuptpm@gmail.com <----------*
License keys can be obtained from http://www.linuxant.com/
Without one, the modem operates in FREE mode (max 14.4Kbps data only, no fax)
The registration ID for modem unit 0 is: E3EC-62BB-6044
Please enter license key [FREE]: <-------------------- Type or Press Enter key
Setting license for modem unit 0: "sajuptpm@gmail.com/FREE"
Note: HDA support not compiled in the driver
Note: kernel module snd-via82xx-modem overridden by hsfmc97via
Note: kernel module snd-intel8x0m overridden by hsfmc97ich hsfmc97sis
Note: kernel module snd-atiixp-modem overridden by hsfmc97ati
Current parameters: ("hsfconfig --info")
Config for modem unit 0: /dev/ttySHSF0 <--------------*
Device instance: 0-PCI-14f1:2f00-14f1:2004
HW revision : Basic2 2.18 Standard DAA 3VoltsIA
HW profile name: hsfpcibasic2hsfi
Registration ID: E3EC-62BB-6044
License owner : sajuptpm@gmail.com
License key : FREE
License status : FREE (max 14.4kbps data only)
Current region : INDIA (T.35 code: 0053)
The /dev/modem alias (symlink) points to ttySHSF0 <-----------*
To enable full 56K modem and FAX functionality, enter your license information
with "hsfconfig --license".
License owner and key data must EXACTLY match the information respectively
provided to and by Linuxant. Otherwise, license status will remain "FREE"!
Note: Here Modem Configuration Successful.
-----------------------------15
To view installed modules.
root@priyar:~# modprobe -l | grep hsf
/lib/modules/2.6.26-1-686/extra/hsfpcibasic2.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97ati.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97sis.ko
/lib/modules/2.6.26-1-686/extra/hsfserial.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97ich.ko
/lib/modules/2.6.26-1-686/extra/hsfusbcd2.ko
/lib/modules/2.6.26-1-686/extra/hsfosspec.ko
/lib/modules/2.6.26-1-686/extra/hsfengine.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97via.ko
/lib/modules/2.6.26-1-686/extra/hsfhda.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97ali.ko
/lib/modules/2.6.26-1-686/extra/hsfpcibasic3.ko
/lib/modules/2.6.26-1-686/extra/hsfsoar.ko
-----------------------------16
root@priyar:~# ls /dev/ttyS < -------------------- You can see ttySHSF file.
ttyS0 ttyS1 ttyS2 ttyS3 ttySHSF0 ttySHSF1 ttySHSF2 ttySHSF3 ttySHSF4 ttySHSF5 ttySHSF6 ttySHSF7
-----------------------------17
root@priyar:~# ls -l /dev/modem
lrwxrwxrwx 1 root root 8 2009-10-07 17:51 /dev/modem -> ttySHSF0
-----------------------------18
root@priyar:~# ls -l /dev/ttySHSF0
crw-rw---- 1 root dialout 240, 64 2009-10-07 19:07 /dev/ttySHSF0
-----------------------------
*************** DRIVER INSTALATION FINISHED **********************
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
*************** SETTING DIAL UP CONNECTION START *****************
Setting dial up connection using installed modem.
-----------------------------1
#apt-get install ppp pppconfig
-----------------------------2
root@priyar:~# pppconfig
***Main Menu***
Select "Create" with the arrow keys, then press Enter key.
***Provider Name***
Type provider (Eg:bsnl) and press Enter key.
***Configure Nameservers (DNS)***
select the "Dynamic" option and press Enter key.
***Authentication Method for provider***
Select "Chat" with the arrow keys, then press Enter key.
***Login Prompt***
Change "ogin:" to "Username:",then press Enter key. <---- Important in the case of BSNL connection.
***Password Prompt***
Use default or Change "ssword:" to "Password:",then press Enter key.
***User Name***
Enter the username given to you by your ISP.
***Password***
Enter the password your ISP gave you.
***Speed***
Enter your modem port speed (e.g. 9600, 19200, 38400, 57600, 115200).I suggest that you leave it at 115200.
***Pulse or Tone***
Select method of dialing.
***Phone Number***
Enter the number to dial.(Eg:172222)
***Choose Modem Config Method***
Select "yes" and press Enter key.
***Select Modem Port ***
Select "Manual Enter the port by hand." and press Enter key.
***Manually Select Modem Port***
Type /dev/ttySHSF0 and press Enter key.
***Properties of provider***
Select "Finished Write files and return to main menu" and press Enter key.
Finished configuring connection and writing changed files.The chat strings for
connecting to the ISP are in /etc/chatscripts/bsnl, while the options for pppd
are in /etc/ppp/peers/bsnl.You may edit these files by hand if you wish.
***Main Menu***
Select "Quit Exit this utility" and press Enter key.
-----------------------------3
To establish a connection.
root@priyar:~# pon bsnl
-----------------------------4
To view the progress of the connection.
root@priyar:~# tail -f /var/log/messages
Oct 7 19:07:04 priyar pppd[4453]: pppd 2.4.4 started by root, uid 0
Oct 7 19:07:05 priyar chat[4455]: abort on (BUSY)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO CARRIER)
Oct 7 19:07:05 priyar chat[4455]: abort on (VOICE)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO DIALTONE)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO DIAL TONE)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO ANSWER)
Oct 7 19:07:05 priyar chat[4455]: abort on (DELAYED)
Oct 7 19:07:05 priyar chat[4455]: send (ATZ^M)
Oct 7 19:07:05 priyar chat[4455]: expect (OK)
Oct 7 19:07:05 priyar chat[4455]: ATZ^M^M
Oct 7 19:07:05 priyar chat[4455]: OK
Oct 7 19:07:05 priyar chat[4455]: -- got it
Oct 7 19:07:05 priyar chat[4455]: send (ATDT172222^M)
Oct 7 19:07:05 priyar chat[4455]: expect (CONNECT)
Oct 7 19:07:05 priyar chat[4455]: ^M
Oct 7 19:07:31 priyar chat[4455]: ATDT172222^M^M
Oct 7 19:07:31 priyar chat[4455]: CONNECT
Oct 7 19:07:31 priyar chat[4455]: -- got it
Oct 7 19:07:31 priyar chat[4455]: send (^M)
Oct 7 19:07:31 priyar chat[4455]: expect (Username:)
Oct 7 19:07:31 priyar chat[4455]: 115200 ^M
Oct 7 19:07:32 priyar chat[4455]: C^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: *******************************************^M
Oct 7 19:07:32 priyar chat[4455]: * *^M
Oct 7 19:07:32 priyar chat[4455]: * WELCOME TO NIB C1 NODE, DOT, KOLLAM *^M
Oct 7 19:07:32 priyar chat[4455]: * *^M
Oct 7 19:07:32 priyar chat[4455]: * !!!!! WISH YOU HAPPY SURFING !!!!! *^M
Oct 7 19:07:32 priyar chat[4455]: * *^M
Oct 7 19:07:32 priyar chat[4455]: *******************************************^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: User Access Verification^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: Username:
Oct 7 19:07:32 priyar chat[4455]: -- got it
Oct 7 19:07:32 priyar chat[4455]: send (4752333333^M)
Oct 7 19:07:32 priyar chat[4455]: expect (ssword:)
Oct 7 19:07:32 priyar chat[4455]: 4752333333^M
Oct 7 19:07:32 priyar chat[4455]: Password:
Oct 7 19:07:32 priyar chat[4455]: -- got it
Oct 7 19:07:32 priyar chat[4455]: send (??????)
Oct 7 19:07:32 priyar chat[4455]: send (\d)
Oct 7 19:07:33 priyar pppd[4453]: Serial connection established.
Oct 7 19:07:33 priyar pppd[4453]: Using interface ppp0
Oct 7 19:07:33 priyar pppd[4453]: Connect: ppp0 <--> /dev/ttySHSF0
Oct 7 19:07:40 priyar pppd[4453]: PAP authentication succeeded
Oct 7 19:07:40 priyar pppd[4453]: local IP address 61.1.233.144
Oct 7 19:07:40 priyar pppd[4453]: remote IP address 61.1.232.5
-----------------------------5
To check connection.
root@priyar:~#ping www.google.com
or
root@priyar:~# nslookup www.google.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.7.99
Name: www.l.google.com
Address: 66.102.7.103
Name: www.l.google.com
Address: 66.102.7.104
Name: www.l.google.com
Address: 66.102.7.105
Name: www.l.google.com
Address: 66.102.7.106
Name: www.l.google.com
Address: 66.102.7.147
-----------------------------6
Connection termination.
root@priyar:~# poff bsnl
-----------------------------
*************** SETTING DIAL UP CONNECTION END *****************
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
*************** TIPS AND TRICKD START **************************
----------------------------T1
apt-get install linux-headers-2.6.26-1-686
apt-get install linux-headers-2.6.26-1-common
Header files for Linux 2.6.26-1-486
This package provides the architecture-specific kernel header files for
Linux kernel 2.6.26-1-486, generally used for building out-of-tree kernel
modules. These files are going to be installed into
/usr/src/linux-headers-2.6.26-1-486, and can be used for building modules
that load into the kernel provided by the linux-image-2.6.26-1-486
package
Common header files for Linux 2.6.26-1
This package provides the architecture-specific common kernel header files
for Linux kernel version 2.6.26-1, generally used for building out-of-tree
kernel modules. To obtain a complete set of headers you also need to
install the linux-headers-2.6.26-1-(flavour) package, matching the flavour
of the kernel you intend the build for.
----------------------------T2
To stop Modules
root@priyar:~# hsf
hsfconfig hsfdcpd hsfmodconflicts hsfstop
root@priyar:~# hsfstop < -----------To Stoping modules ----------------------------T3 To uninstall installed Driver. First change directory to extracted directory. root@priyar:~# cd /home/root/Desktop/hsflinmodem-4.06.06.02
root@priyar:~/Desktop/hsflinmodem-4.06.06.02# make uninstall <----Uninstalling driver
----------------------------T4
echo 1 > /dev/modem
echo 1 > /dev/ttySHSF0
----------------------------T5
apt-get remove
dpkg -r hsfmodem
dpkg -P hsfmodem
dpkg -Pa
----------------------------T6
vim /var/lib/dpkg/status
----------------------------T7
root@priyar:~# modprobe -l | grep hsf
/lib/modules/2.6.26-1-686/extra/hsfpcibasic2.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97ati.ko
/lib/modules/2.6.26-1-686/extra/hsfmc97sis.ko
/lib/modules/2.6.26-1-686/extra/hsfserial.ko
----------------------------T8
root@priyar:~# modinfo hsfpcibasic2
filename: /lib/modules/2.6.26-1-686/extra/hsfpcibasic2.ko
supported: yes
license: GPL
description: Conexant low-level hardware driver
author: Copyright (C) 2003-2004 Linuxant inc.
alias: pci:v000016ECd00002F00sv*sd*bc*sc*i*
----------------------------
*************** TIPS AND TRICKD END ***************************
No comments:
Post a Comment