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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-12-2006, 09:18 PM
|
#1
|
LQ Newbie
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12
Rep:
|
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'
|
|
|
02-14-2006, 05:54 AM
|
#2
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
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.
|
|
|
02-14-2006, 12:32 PM
|
#3
|
LQ Newbie
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
02-14-2006, 08:58 PM
|
#4
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
I do not think that Damn Small Linux includes PCMCIA support. Compile the kernel to include this, but the kernel will be slightly larger.
|
|
|
02-14-2006, 09:59 PM
|
#5
|
LQ Newbie
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12
Original Poster
Rep:
|
DSL should support pcmcia, the developers have included a special pcmcia utility in the disto.
|
|
|
02-18-2006, 05:06 PM
|
#6
|
LQ Newbie
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
03-12-2006, 11:46 AM
|
#7
|
Member
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154
Rep:
|
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
|
|
|
03-12-2006, 02:07 PM
|
#8
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
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.
|
|
|
05-07-2006, 09:49 PM
|
#9
|
LQ Newbie
Registered: Jul 2005
Location: NY, USA
Distribution: Mandriva 2005 LE x86_64, arm-linux
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
05-11-2006, 01:27 PM
|
#10
|
Member
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|