LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2007, 02:42 AM   #1
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
hotplug and usb network with CDCEther


Hi guys,

this weekend I'd like to get rid of a small but annoying problem with my network.

I have a Fritz box router here connected to my dsl modem and to my nice little oldtimer laptop that doesn't have an ethernet plug so I have it connected via USB. I was using a PCMCIA network card before which was working fine but I gave it to a friend as the router also provides this USB plugging option. Now for the problem:

After bootup, network doesn't work. No ping, no http, no anything. But CDCEther is loaded (I use stock kernel 2.4) and ifconfig sets the (theoretically) working params. BUT I can in fact get it to work by this silly workaround: Open firefox, it tries to load google, it fails. Now I unplug the USB cable, wait for the "Can't find bla" message and replug the cable. Then it works. So obviously hotplug does the job on second attempt, but not on the first while booting.

I had a look at the hotplug scripts but cannot figure out what the problem is.

Any ideas?
 
Old 02-02-2007, 07:32 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,374
Blog Entries: 31

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Quote:
Originally Posted by General Failure
Hi guys,

this weekend I'd like to get rid of a small but annoying problem with my network.

I have a Fritz box router here connected to my dsl modem and to my nice little oldtimer laptop that doesn't have an ethernet plug so I have it connected via USB. I was using a PCMCIA network card before which was working fine but I gave it to a friend as the router also provides this USB plugging option. Now for the problem:

After bootup, network doesn't work. No ping, no http, no anything. But CDCEther is loaded (I use stock kernel 2.4) and ifconfig sets the (theoretically) working params. BUT I can in fact get it to work by this silly workaround: Open firefox, it tries to load google, it fails. Now I unplug the USB cable, wait for the "Can't find bla" message and replug the cable. Then it works. So obviously hotplug does the job on second attempt, but not on the first while booting.

I had a look at the hotplug scripts but cannot figure out what the problem is.

Any ideas?
Hi,

Did you look at your syslog? How is the CDCether loaded? Sounds like you need too delay the detection of the device.
 
Old 02-02-2007, 01:50 PM   #3
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Original Poster
Rep: Reputation: 35
Quote:
Sounds like you need too delay the detection of the device.
I already thought about that but: If you look at rc.M, you'll see that rc.inet1 is being called just before rc.hotplug is. I in fact already experimented with changing that and putting sleep 10 inbetween, but without success.

Hm.

EDIT: This is strange. I usually have syslog not running as my system is extremely stripped because its such an oldtimer. (I normally have <20 processes runnning when arriving in X.)

Now I just turned syslog on and after reboot my network worked straight. Seems like syslog makes my network work!

Any pointers appreciated

Last edited by General Failure; 02-02-2007 at 04:01 PM.
 
Old 02-02-2007, 04:02 PM   #4
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Original Poster
Rep: Reputation: 35
Shameless bump ...

Last edited by General Failure; 02-03-2007 at 03:19 AM.
 
Old 02-03-2007, 11:07 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,374
Blog Entries: 31

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Quote:
Originally Posted by General Failure
Shameless bump ...
Hi,

What did you find in the syslog? Any marks?
 
Old 02-03-2007, 01:54 PM   #6
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Original Poster
Rep: Reputation: 35
This is the only thing I find in syslog (and on stdout if syslog's not running):
Code:
CDCEther.c: CDCEther_open failed intr_urb -22
I googled for that some time ago but didn'nt find anything. Sadly enough I don't have enough free space on my harddrive to install kernel source and have a look at it.

Oh, and darn it, syslog tells me I'm probably gonna lose my harddisk
 
  


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
CDCEther sybille Amigo 5 12-24-2004 01:07 AM
USB network hotplug KrYpToN Linux - Hardware 1 12-11-2003 06:39 AM
stop hotplug from detecting things connected to usb (but still noticing usb itself) TheOneAndOnlySM Linux - Hardware 5 10-18-2003 10:35 AM
USB Modems etc. (CDCEther) in newer kernel versions fnoble Linux - Networking 0 07-31-2003 07:49 AM
Help with CDCEther Miksu Linux - Networking 2 11-27-2002 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:52 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