LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-12-2006, 09:18 PM   #1
ngmlinux
LQ Newbie
 
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12

Rep: Reputation: 0
Modem works in Ubuntu, fails with DSL Linux


I am trying to get a pcmcia modem up and running in Damn Small Linux
(DSL) and have been unable to get the modem to connect when I use
pppd. There seems to be some descrepencies in terms of how the modem
is listed in /dev as compared to how it is listed in other [working]
distros. I know the modem uses a couple of internal 16550A UARTs
however in DSL it comes up as two UARTs (ttyS00 and ttyS01) and in
Ubuntu it comes up as one (ttyS0). Ubuntu also automatically links
/dev/modem to ttyS0. In DSL I have attempted to do so to both ttyS00
and ttyS01 on two seperate attempts with no success. I wish I could
provide more detailed error information, however all I get is a
"Connect script failed" error in pppd.

Any ideas on this one are greatly appreciated. Please review the
information below, thanks:

=== Output of pppd in Damn Small Linux (DSL)[Not Working] ===
dsl@box:~$ sudo pppd nodetach call mymodem
Connect script failed
================================================
(this output occurs when I've tried symbolically linking /dev/modem to
/dev/ttyS0, /dev/ttyS00 and /dev/ttyS01)


=== Output of dmesg in Damn Small Linyx (DSL)[Not Working] ===
dsl@box:~$ dmesg
...
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
...
=================================================

=== Output of dmesg in Ubuntu [Working] ===
...
[4294669.799000] Serial: 8250/16550 driver $Revision: 1.90 $54
ports, IRQ
sharing enabled
...
[4295038.910000] ttyS0 at I/O 0x3f8 (irq = 5) is a 16550A
...
===================================


=== /dev/modem in Ubuntu [Working] ===
/dev/modem is symbolicly linked to '/dev/ttyS0'
 
Old 02-14-2006, 05:54 AM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A <<--- COM1
ttyS01 at 0x02f8 (irq = 3) is a 16550A <<--- COM2

Tell the pppd program to use /dev/ttyS00. Do not forget to use setserial to set the parameters for the serial port. Also specify an AT string in the pppd program that is compatible for the modem.
 
Old 02-14-2006, 12:32 PM   #3
ngmlinux
LQ Newbie
 
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12

Original Poster
Rep: Reputation: 0
It turns out neither ttyS00 or ttyS01 are the modem UARTS, I think those are serial ports on my motherboard. This pcmcia modem usually comes up as ttyS0 under other linux distributions.

So setting up pppd to use ttyS00 would write/read to the wrong serial port.
 
Old 02-14-2006, 08:58 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I do not think that Damn Small Linux includes PCMCIA support. Compile the kernel to include this, but the kernel will be slightly larger.
 
Old 02-14-2006, 09:59 PM   #5
ngmlinux
LQ Newbie
 
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12

Original Poster
Rep: Reputation: 0
DSL should support pcmcia, the developers have included a special pcmcia utility in the disto.
 
Old 02-18-2006, 05:06 PM   #6
ngmlinux
LQ Newbie
 
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12

Original Poster
Rep: Reputation: 0
The pcmcia card utility in DSL is very limited. By poking around and doing a lot of research I found a better utility that is included in DSL called cardinfo (issue cardinfo at the prompt). Cardinfo is a GUI utility that eventually identifies the card properly, but you need to keep hitting reset and some of the other options in cardinfo for a couple minutes before the card gets properly recognized. Then it finally does and gives the /dev name as ttyS2.

No idea why it takes so much effort to initialize the card in DSL though. Works quickly on same hardware with other Linux distros.
 
Old 03-12-2006, 11:46 AM   #7
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Rep: Reputation: 30
buy an ethernet rooter with an inbuilt ADSL moden

USB modens dont work well with linux and if you get it working it will never work as well as it did in windows

you will need to make shoure that linuxs sees your ethernet card with is usually fine. The advantage with this is that you can wire up lots of computers and shear the net connection with as many computers as you like with no extra cost to you internet bill and tend to be more stabler than USB modems and the like. make shoure that your rooter has an in built ADSL modem


if you need dail up the a serial modem will do that job rember
that they are all hardware modems with an easy interface that is easy for linux and windows to command

the reasion for these silly USB modems and many if not all PCI cards is that they use computer programs to take a way electronic hardware that cost the consuma letting the computer doing some of the work and tend to be smaller to and cheeper [ some times they may say hardware moden PCI or USB, just egnore them ] often called
winmodems


have a look a round the net and on linuxqueations.org if you dont belive me


here are such models UK web site.


http://www.ebuyer.com/customer/produ...ice&show=stock
 
Old 03-12-2006, 02:07 PM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by samuelmp
buy an ethernet rooter with an inbuilt ADSL moden

USB modens dont work well with linux and if you get it working it will never work as well as it did in windows

you will need to make shoure that linuxs sees your ethernet card with is usually fine. The advantage with this is that you can wire up lots of computers and shear the net connection with as many computers as you like with no extra cost to you internet bill and tend to be more stabler than USB modems and the like. make shoure that your rooter has an in built ADSL modem


if you need dail up the a serial modem will do that job rember
that they are all hardware modems with an easy interface that is easy for linux and windows to command

the reasion for these silly USB modems and many if not all PCI cards is that they use computer programs to take a way electronic hardware that cost the consuma letting the computer doing some of the work and tend to be smaller to and cheeper [ some times they may say hardware moden PCI or USB, just egnore them ] often called
winmodems


have a look a round the net and on linuxqueations.org if you dont belive me


here are such models UK web site.


http://www.ebuyer.com/customer/produ...ice&show=stock
Did you read the post or did you just skim it. ngmlinux lives in America. UK stores are useless to ngmlinux and products are older than what is selling in the US.

I do not recommend buying a router with a built-in modem. The reason is because the modem will go when the router goes. I recommend both the router and modem be seperate because it gives you more choices.

ngmlinux did not say about xDSL. ngmlinux said about Damn Small Linux. Probably ngmlinux is setting up a PCMCIA 56Kbit modem.
 
Old 05-07-2006, 09:49 PM   #9
ngmlinux
LQ Newbie
 
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12

Original Poster
Rep: Reputation: 0
This is not a DSL modem, it's actually a wireless modem. DSL is the name of the Linux distro I'm using (damn small linux). In any case, I've written a script for cardinfo that corrects or at least works around the problem.
 
Old 05-11-2006, 01:27 PM   #10
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Rep: Reputation: 30
sorry people about that i had just pasted it for openoffice I have done this a few times - sorry!

glad to see you got it working in DSL I just it once and put it on my hard disk

Last edited by samuelmp; 05-11-2006 at 01:33 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
How do I instal D-Link DSL-300T modem on Ubuntu? buco55 Linux - Newbie 2 01-18-2006 03:41 PM
wvdial (modem) works w/ ubuntu not w/ others towsonu2003 Linux - Hardware 6 10-11-2005 12:13 PM
ActionTec DSL Modem On works well using Wine and Internet Explorer bwkumiko Linux - Hardware 1 11-14-2004 07:58 AM
Java: Text into Image: works on windows, fails on Linux... rolf_mueller Linux - Software 2 11-02-2004 09:19 AM
linux fails where windows works boots147 Linux - Software 15 01-31-2002 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:20 PM.

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