LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2007, 06:49 AM   #1
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Rep: Reputation: 15
Intel 537 modem problem in Ubuntu 6.06


Hii guys,

I recently installed ubuntu 6.06 LTS on my system,, i have an intel 537 modem which i tried to use to connect to the internet on ubuntu,, i followed the following procedure as written on the ubuntu official website:


Code:
Prerequisites:

You will need the following:

1. A compatible Intel softmodem - supported models are 537, 537EP, 537SP, 537AA or 537EA. To find out what model you have, see the section in [WWW] the parent on [WWW] scanModem. 536* modems may work but they are not tested.

2. A 32-bit kernel. Most likely, you will have installed the 32-bit flavor of Ubuntu, but if you chose the 64-bit edition for amd64, you will not be able to use these drivers. For instance, if  uname -r  prints to the terminal something ending in 386, 686, or generic, you probably have a 32-bit kernel. amd64 kernels are 64-bit and not supported.

3. The Intel537EP driver, available at [WWW] Intel's site There are other versions, this one is the latest. Depending on your system, you may have to try multiple versions.

4. GCC 3.4 (for certain releases of Ubuntu), developer tools, and the kernel headers. Developer tools and kernel headers are on the Ubuntu CD while GCC 3.4 is not. See [WWW] this section for more information and instructions. What you generally need are  build-essential  and  linux-headers-`uname -r` 

5. Some knowledge on using the terminal (also called command line). Documentation on how to use the terminal are available [WWW] here

Installing on 6.06 (obsoleted by 6.06.1)

On 6.06, a complicated series of hacks are necessary. First, unpack the 537EP driver to a directory of your choice. A folder called Intel-537 should be created when you unpack. Rename that folder to whatever uname -r prints. After that, type the following in the directory you unpacked to:

make clean
make 537
sudo make install

This will create and install the driver and a set of scripts. However, the boot script provided by Intel does not work on 6.06. Therefore, we have to gksudo gedit /etc/init.d/537_boot and replace the script with the following:

#!/bin/sh
kernel=`uname -r`
serial="/etc/init.d/$kernel/Intel537.ko"
device="537"
registry="hamregistry"
group="root"
mode="664"
if [ -a /etc/SuSE-release ]; then
{
group="dialout"
}
fi
case "$1" in
start | b)
if ! ( modprobe -f $serial 1>/dev/null 2>/dev/null ); then
{
if ! ( insmod -f $serial 1>/dev/null 2>/dev/null ); then
{
echo error loading $serial
rmmod $serial
exit 1
}
fi
}
fi
major=`cat /proc/devices | awk "\\$2==\"Intel537\" {print \\$1}"`
echo major="($major)"
rm -f /dev/$device
mknod /dev/$device c $major 1 2> /dev/null 1> /dev/null
chgrp $group /dev/$device
chmod $mode /dev/$device
ln -sf /dev/Intel5370 /dev/modem 1> /dev/null 2> /dev/null
if ! ps -C $registry 1> /dev/null 2> /dev/null; then
{
if ! ( /usr/sbin/$registry 2> /dev/null 1> /dev/null & ); then
{
echo "Modem registry ($registry) could not start."
echo "Please see international users secion in readme.txt for more info."
}
fi
}
fi
exit 0
;;
stop)
rmmod 537 1> /dev/null 2> /dev/null
rmmod 537_core 1> /dev/null 2> /dev/null
rmmod $serial 1> /dev/null 2> /dev/null
;;
restart | reload)
/bin/bash "$0" stop
/bin/bash "$0" start
exit 0
;;
status)
if lsmod | grep "$serial " >/dev/null; then
{
lsmod | grep "$serial " > /dev/null
}
else
{
echo "$serial NOT loaded"
}
fi
if ps -C $registry 1> /dev/null 2> /dev/null; then
{
ps -C $registry
}
else
{
echo "$registry NOT running"
}
fi
exit 0
;;
*)
echo unknown $serial script parameter
exit 1
esac
exit 0

If you get an access denied error, type sudo chmod 300 /etc/init.d/537_boot and try again. To finish, copy the folder that you unpacked the driver to /etc/init.d with sudo cp -r (foldername) /etc/init.d. After a restart, you should be able to dial a connection with your favorite dialer.

After doing all this when i tried to connect to the internet using gnome-ppp ,, it gave an error that no modem was found on your computer.

Please help in setting up my internet connection,, desperately waiting for a reply...
 
Old 06-11-2007, 10:49 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you successfully compiled the module without errors, you're close. Normally the install portion of the compile would set a link from /dev/537 to /dev/modem. I'm guessing gnome-ppp is looking towards/for /dev/modem. Not sure how gnome-ppp works, but make sure the symbolic link between those two exists and it looks to either one. Also, in my RPM distributions, I have to add "Intel537" to /etc/modprobe.preload to have the module automatically loaded after a re-boot as the Intel scripts did not do this part. Check to see if the module is loaded by issuing command:
Code:
lsmod
It should be in the list of modules, if not, issue command to load it and try again:
Code:
sudo modprobe Intel537
EDIT: If the modprobe command produces an error, the system is probably not aware of the module, using the search for files feature, see if you can find "Intel537.ko", it should be somewhere in /lib/modules/uname -r, if it is, try issuing command to make the system aware of it:
Code:
depmod -a

Last edited by Junior Hacker; 06-11-2007 at 10:55 PM.
 
Old 06-11-2007, 11:33 PM   #3
St.Jimmy
Member
 
Registered: Jun 2006
Location: Boaz,Alabama
Distribution: Ubuntu 10.10 / Windows 7 Pro 64-Bit / Snow Leopard 10.6.4 64-Bit
Posts: 152

Rep: Reputation: 30
use these drivers instead
http://linmodems.technion.ac.il/pack...19_01_2007.tgz
this assumes you have a 537EP modem
Code:
su -
cd location/of/drivers
make clean
export MODEM_TYPE=537EP
make 537
make install
 
Old 06-12-2007, 06:27 AM   #4
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
hii junior hacker,,

when i wrote the code
Code:
lsmod
Intel 537 was listed, so i did not proceed with the steps you specified as they were all for the case when Intel 537 was not listed

Then i proceeded with doing what St.Jimmy had written in his post,,

After doing what he had written in his post , when i again wrote the code,

Code:
lsmod
This time Intel537 was not listed on it,,

so i followed the steps you specified but inspite of that my modem was not detected.


Hii, St,Jimmy

I followed the steps you had written in your post, everything went on smoothly , but still my modem is not working ,,

The result of typing make 537 is.

Code:
raees@mrl-desktop:/media/hda7/modem2/intel-537EP_secure-2.60.80.1$ sudo make 537   Module 

   precompile check
   Current running kernel is: 2.6.15-26-386
   /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
   autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
   version.h matches running kernel
2.6.15-26-386
make[1]: Entering directory `/media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv'
make -C /lib/modules/2.6.15-26-386/build SUBDIRS=/media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.15-26-386'
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/coredrv.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/clmmain.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/rts.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/task.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/uart.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/wwh_dflt.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/locks.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/softserial_io.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/softserial_ioctl.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/softserial.o
  CC [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/afedsp_int.o
  LD [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/Intel537.o
  Building modules, stage 2.
  MODPOST
Warning: could not find /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/.537core.lib.cmd for /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/537core.lib
  CC      /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/Intel537.mod.o  LD [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/Intel537.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.15-26-386'
make[1]: Leaving directory `/media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv'
The result of the code make install is

Code:
raees@mrl-desktop:/media/hda7/modem2/intel-537EP_secure-2.60.80.1$ sudo make install
rm -f /usr/sbin/hamregistry.bin
bash 537_inst
running kernel 2.6.15-26-386
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
installing 537 module
install DEBIAN 537 boot script and links
starting module and utilities
I am still desperately waiting for more suggestions..
 
Old 06-12-2007, 02:52 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by humble
hii junior hacker,,

when i wrote the code
Code:
lsmod
Intel 537 was listed, so i did not proceed with the steps you specified as they were all for the case when Intel 537 was not listed
As I mentioned earlier, you're almost there. I would stay with the first package you tried as it was near successful, just the link to /dev/modem is not working. I've had times where the link to /dev/modem from /dev/537 was not seen even though it was there. To fix it, I made a different link as such:
Code:
sudo ln -s /dev/537 /dev/ttyStest
I used wvdial as it looks to all "/dev/ttyS" devices, if you would rather use your gnome-ppp, try to link it to /dev/ttyS0 and see if gnome-ppp will find it, but the link will disappear after a re-boot and will have to be re-done every time you want to go on-line. Wvdial is a fairly failsafe dialer. If you do try wvdial, to configure it you would then issue command after installing it:
Code:
sudo wvdialconf /etc/wvdial.conf
It should say it found a modem at /dev/ttyStest and wrote the configuration file at /etc/wvdial.conf. Then with an editor, open the /etc/wvdial.conf file and edit it to include your ISP information. Below is a sample of what the configuration file would look like:
Code:
[Dialer Defaults]
Modem = /dev/ttyStest
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
; Phone = <your isp phone #>
; Username = <your user name>
; Password = <your ISP password>
You would edit it to look something like this one below:
Code:
[Dialer Defaults]
Modem = /dev/ttyStest
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = 000-0000
Username = username
Password = password
Stupid Mode = yes
The "Stupid Mode" line may not be required, try without it first. After editing the file, issue command to have it dial out:
Code:
sudo wvdial
The soft link from /dev/537 to /dev/ttyStest will disappear after a re-boot, so what I would then do was change the second line in /etc/wvdial.conf after a successful dial out from "Modem = /dev/ttyStest" to "Modem = /dev/modem", because the link to /dev/modem will come back and it exists, it's just that for me, wvdial would not see /dev/modem when I would try to configure it in Mandrake 10.2, but it would see the /dev/ttyStest, so I then switched it to /dev/modem in /etc/wvdial.conf after wvdial found a modem and it worked every time after.

Wvdial may not be on your disc(s), you may want to try the link to /dev/ttyS0 first and see if gnome-ppp will dial out and get you on-line, if it does, then you can either try the same trick with it's configuration file which may also be /etc/wvdial.conf by changing the second line to look at /dev/modem, or download wvdial and it's dependencies which are wvstreams and libpcap.

Last edited by Junior Hacker; 06-12-2007 at 03:26 PM.
 
Old 06-12-2007, 08:15 PM   #6
St.Jimmy
Member
 
Registered: Jun 2006
Location: Boaz,Alabama
Distribution: Ubuntu 10.10 / Windows 7 Pro 64-Bit / Snow Leopard 10.6.4 64-Bit
Posts: 152

Rep: Reputation: 30
Quote:
Originally Posted by humble
Hii, St,Jimmy



Code:
Warning: could not find /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/.537core.lib.cmd for /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/537core.lib
  CC      /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/Intel537.mod.o  LD [M]  /media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv/Intel537.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.15-26-386'
make[1]: Leaving directory `/media/hda7/Modem2/intel-537EP_secure-2.60.80.1/coredrv'
That should be okay

Code:
raees@mrl-desktop:/media/hda7/modem2/intel-537EP_secure-2.60.80.1$ sudo make install
rm -f /usr/sbin/hamregistry.bin
bash 537_inst
running kernel 2.6.15-26-386
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
installing 537 module
install DEBIAN 537 boot script and links
starting module and utilities
that means it went okay... try running
Code:
sudo modprobe Intel537
ls -l /dev/modem /dev/537
sudo pppconfig // when you finish that config dialog
pon
also, have a phone handy to see if it dials out.
gnome-ppp doesn't seem to work with my 537EP
 
Old 06-13-2007, 05:26 AM   #7
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
Hii again,

First of all i tried to follow the steps specified by St.Jimmy , as i had installed the package he specified.

Below are the replies to the respective codes.
Code:
raees@mrl-desktop:~$ sudo modprobe Intel537
FATAL: Error inserting Intel537 (/lib/modules/2.6.15-26-386/kernel/drivers/char/Intel537.ko): Operation not permitted
raees@mrl-desktop:~$ ls -l /dev/modem /dev/537
ls: /dev/modem: No such file or directory
ls: /dev/537: No such file or directory
After getting these errors, i stopped and proceeded to doing what Junior Hacker had specified in his post. First of all i installed the earlier package as specified by Junior Hacker and then i proceeded with what he had written.


Code:
raees@mrl-desktop:~$ sudo ln -s /dev/537 /dev/ttyS0
ln: creating symbolic link `/dev/ttyS0' to `/dev/537': File exists
Still, i wasn't able to connect using gnome -ppp.
So, i tried to connect through wvdial

Code:
raees@mrl-desktop:~$sudo ln -s /dev/537 /dev/ttyStest
raees@mrl-desktop:~$ sudo wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3   S4   S5   S6   S7   S8
Modem Port Scan<*1>: S9   S10  S11  S12  S13  S14  S15  S16
Modem Port Scan<*1>: S17  S18  S19  S20  S21  S22  S23  S24
Modem Port Scan<*1>: S25  S26  S27  S28  S29  S30  S31  S32
Modem Port Scan<*1>: S33  S34  S35  S36  S37  S38  S39  S40
Modem Port Scan<*1>: S41  S42  S43  S44  S45  S46  S47  Stest


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wiki/?WvDial

Still, i am not able to connect to the internet using Ubuntu, and still desperately waiting for further help so that i can connect to the internet.

Last edited by humble; 06-13-2007 at 05:35 AM.
 
Old 06-13-2007, 05:08 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I have had instances where I had to run the "wvdialconf /etc/wvdial.conf" command more than once before it caught, try it more than once, it did see /dev/ttyStest, make sure the module is loaded with command: lsmod. Apparently, according to the output you posted, wvdial did look at /dev/ttyS0, you may also try linking /dev/537 to it, remember, it does not matter how many symbolic links you create, they disappear after a re-boot.
Code:
sudo ln -s /dev/537 /dev/ttyS0
If wvdial finds it, configure the file and attempt a dial out, if successful, edit the second line to look at /dev/modem. /dev/ttyS0 is usually for a serial modem. I find it strange that wvdial did not see /dev/ttyStest, after creating a symbolic link with whichever /dev/ttyS you choose, check to see that it was successfully created with command:
Code:
sudo ls -l /dev/537
The out put should show the link with an arrow similar to the one I did here with /dev/modem which is linked to /dev/ttySM0 (/dev/ttySM0 is the device created with my Lucent win modem, I cannot use the Intel537 with 64bit Linux).
Code:
lrwxrwxrwx 1 root root 11 2007-06-13 15:15 /dev/modem -> /dev/ttySM0

Last edited by Junior Hacker; 06-13-2007 at 05:16 PM.
 
Old 06-13-2007, 05:22 PM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If again you are not successful, it is possible you are using the wrong source. Go to http://linmodems.org and download a small utility called scanModem, just click on it's links to read on how to use it and download it. It will produce many .txt files in the directory it resides in when you use it, the file called "ModemData.txt" will tell you exactly what's what with your modem and where to get proper source. You may need to unpack some ppp related modules in the file system, read the files it creates.

Last edited by Junior Hacker; 06-13-2007 at 05:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modem Intel 537 driver? linx win Debian 3 10-24-2005 01:24 AM
Intel 537 modem problem cuchumino Linux - Hardware 6 09-27-2004 05:36 PM
Intel 537 Modem install help jrvillac Linux - Hardware 0 07-15-2004 08:02 PM
Modem Intel 537 in linux Dragon20 Linux - Hardware 9 01-06-2004 03:22 AM
problems with Intel 537 modem texfs Linux - Hardware 7 12-06-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration