LinuxQuestions.org
Visit Jeremy's Blog.
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 10-23-2003, 04:56 AM   #1
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Rep: Reputation: 0
Question pcmcia wireless probs when undocking


I have a Toshiba Portege 7020ct and docking station with Redhat9 installed. I have a 3com 3CRWE62092A wireless card using the poldhu_cs driver. The network adapter on the dock is eth0 and the wireless is eth1. As long as the laptop is docked, all works well. When I undock the laptop and boot it, it tries to set up the wireless card as eth0 instead of eth1.

How can I keep the wireless as eth1 when undocked or switch how they are configured so the wireless is eth0 even when docked?

I tried changing them in the network config but that doesn't seem to be working either.

I don't use the adapter in the dock so can I disable it somehow? There is nothing in the BIOS to turn it off.

Currently, I re-installed RH9 and have the wireless card out until I can get this working right.

Please help
 
Old 10-23-2003, 05:24 AM   #2
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
You're out of luck, I'm afraid. The numbering if ethernet interfaces is always done in the order they are initialised. If your dock's ethernet interface gets eth0, that means it is encountered first by the kernel, and will get eth0.

What you could do, is modify the source of the pohldu_cs driver so that it registers its interface under a different name (e.g. wl0 or something). That way, you are guaranteed that the card will get a unique interface name whichever your situation (docked or not). If you feel uncomfortable with this, just tell me which version of the driver you're using, and I'll try and make you a modified version.

Last edited by robartes; 10-23-2003 at 05:25 AM.
 
Old 10-23-2003, 05:37 AM   #3
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
Shortly after I posted this, I saw another one similar to my problem

http://www.linuxquestions.org/questi...hreadid=107313

It suggests a couple things that I may try later tonight. If it works or not, I'll post the results.

The version of poldhu I am using is 0.2.5.

Thanks
 
Old 10-23-2003, 10:34 AM   #4
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
After reading the thread similar to mine, I realized that it won't work. That one isn't dealing with a dock.

Guess I still need help.............
 
Old 10-23-2003, 10:38 AM   #5
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by chiefsfan1
After reading the thread similar to mine, I realized that it won't work. That one isn't dealing with a dock.

Guess I still need help.............
Are you comfortable with compiling and installing kernel modules?

As said, I could send you a patch for the module to get it to register its device under a unique name, but it will require some under the hood work on your machine
 
Old 10-23-2003, 10:50 AM   #6
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
The best way to learn is to do it yourself.......I'd like to try it myself but will need some hand-holding to get through it.

I want to learn as much as i can about linux.

I won't be online again until later this afternoon, I'll check back then

Thanks
 
Old 10-23-2003, 08:40 PM   #7
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, maybe it would be better to get the patch and go from there. I have no idea how to modify the driver.

 
Old 10-24-2003, 02:26 AM   #8
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by chiefsfan1
Ok, maybe it would be better to get the patch and go from there. I have no idea how to modify the driver.

OK. Do you prefer a patch or the compiled module? I have just rolled a pohldu_cs.o (the module) which should register it's device as pol0 here. I have no means of testing it (other than compiling and insmodding it), so no guarantees. If you wish, I can send you the compiled module (it's the latest version: 0.2.13). One limitation it has is that the pol0 name is hardcoded (hey, it's a quick hack ), so if you ever want to use *two* of these cards concurrently, you'll have problems.
 
Old 10-24-2003, 06:04 AM   #9
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
The compiled module would be great

I don't plan on using more that one wireless, so I'll take the chance.

Thanks a million in advance
 
Old 10-24-2003, 12:00 PM   #10
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by chiefsfan1
The compiled module would be great

I don't plan on using more that one wireless, so I'll take the chance.

Thanks a million in advance
OK, email or ICQ me your email address (use the buttons below) and I'll send you the module.

When your card is inserted, remove the module that is loaded for it (rmmod pohldu_cs), then insmod -f (-f because your kernel is most likely not 2.4.22-bv2) the new module, and hope your kernel does not panic . If this works, you should hopefully have a pol0 ethernet interface (ifconfig -a). You can then put the module in the place of the old one in /lib/modules/`uname -r` and copy the ifcfg-eth1 scripts in /etc/sysconfig/network-scripts to ifcfg-pol0.
 
Old 10-26-2003, 07:28 AM   #11
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
I ran through all the steps you gave me and here is what it came up with:
I did the rmmod poldhu_cs then the following:

[root@localhost src]# insmod -f /usr/src/poldhu_cs.o
Warning: kernel-module version mismatch
/usr/src/poldhu_cs.o was compiled for kernel version 2.4.22-bv3
while this kernel is version 2.4.20-8
/usr/src/poldhu_cs.o: unresolved symbol alloc_skb_R21d02520
/usr/src/poldhu_cs.o: unresolved symbol remove_proc_entry_Rcfb64375
/usr/src/poldhu_cs.o: unresolved symbol irq_stat_R37e39351
/usr/src/poldhu_cs.o: unresolved symbol proc_root_driver_Rae4f985d
/usr/src/poldhu_cs.o: unresolved symbol proc_mkdir_Rdc2cfcc9
/usr/src/poldhu_cs.o: unresolved symbol ether_setup_R8e5b2f0e
/usr/src/poldhu_cs.o: unresolved symbol __kfree_skb_R34609c7b
/usr/src/poldhu_cs.o: unresolved symbol netif_rx_R70ad1f7c
/usr/src/poldhu_cs.o: unresolved symbol softnet_data_Rdb4ba142
/usr/src/poldhu_cs.o: unresolved symbol register_netdev_R9585ad35
/usr/src/poldhu_cs.o: unresolved symbol eth_type_trans_Rd7269ed5
/usr/src/poldhu_cs.o: unresolved symbol __netdev_watchdog_up_Rf194ebbb
/usr/src/poldhu_cs.o: unresolved symbol create_proc_entry_Rb8356423
/usr/src/poldhu_cs.o: unresolved symbol skb_over_panic_Rf78dfb8b
/usr/src/poldhu_cs.o: unresolved symbol unregister_netdev_R21395204
/usr/src/poldhu_cs.o: unresolved symbol dev_queue_xmit_Rfe523273
[root@localhost src]# ifconfig -a

I installed version 0.2.11 of the driver, 0.2.13 wouldn't let me do make config. The card works as long as I ifdown eth0 or it locks up the computer.

ifconfig -a only shows eth0 there is no pol0.

Did I follow your directions correctly??
 
Old 10-26-2003, 02:30 PM   #12
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by chiefsfan1
I ran through all the steps you gave me and here is what it came up with:
I did the rmmod poldhu_cs then the following:

[root@localhost src]# insmod -f /usr/src/poldhu_cs.o
Warning: kernel-module version mismatch
/usr/src/poldhu_cs.o was compiled for kernel version 2.4.22-bv3
while this kernel is version 2.4.20-8
/usr/src/poldhu_cs.o: unresolved symbol alloc_skb_R21d02520
/usr/src/poldhu_cs.o: unresolved symbol remove_proc_entry_Rcfb64375
/usr/src/poldhu_cs.o: unresolved symbol irq_stat_R37e39351
/usr/src/poldhu_cs.o: unresolved symbol proc_root_driver_Rae4f985d
/usr/src/poldhu_cs.o: unresolved symbol proc_mkdir_Rdc2cfcc9
/usr/src/poldhu_cs.o: unresolved symbol ether_setup_R8e5b2f0e
/usr/src/poldhu_cs.o: unresolved symbol __kfree_skb_R34609c7b
/usr/src/poldhu_cs.o: unresolved symbol netif_rx_R70ad1f7c
/usr/src/poldhu_cs.o: unresolved symbol softnet_data_Rdb4ba142
/usr/src/poldhu_cs.o: unresolved symbol register_netdev_R9585ad35
/usr/src/poldhu_cs.o: unresolved symbol eth_type_trans_Rd7269ed5
/usr/src/poldhu_cs.o: unresolved symbol __netdev_watchdog_up_Rf194ebbb
/usr/src/poldhu_cs.o: unresolved symbol create_proc_entry_Rb8356423
/usr/src/poldhu_cs.o: unresolved symbol skb_over_panic_Rf78dfb8b
/usr/src/poldhu_cs.o: unresolved symbol unregister_netdev_R21395204
/usr/src/poldhu_cs.o: unresolved symbol dev_queue_xmit_Rfe523273
[root@localhost src]# ifconfig -a
Did I follow your directions correctly??
Yes, you did. Unfortunately, what I was afraid of is true: your kernel is too different from mine to just drop in the binary module (my kernel is based on a stock 2.4.22, yours is a RedHat-bastardised 2.4.20 ). Your kernel does not have a number of symbols the module needs (although the missing register_netdev is *scary* ).

We'll have to go the patch route (I send you a patch - it's really simple: just two lines, and one is commentary - and you apply it and compile the module). Which version of the driver did you get to compile correctly and working? I'll send you a diff against that.
 
Old 10-26-2003, 05:49 PM   #13
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
I'm using version poldhu 0.2.11 right now, it seems to working ok.

Just a thought:

I also have Mandrake versions 8.0, 8.1, 9.1 would Mandrake be a better choice ?
 
Old 11-03-2003, 01:56 PM   #14
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
I wish I could tell you how this turned out but, my laptop died this weekend

The MoBo went up in smoke. When I get a new one, I'll give all of this a try again.
 
Old 11-18-2003, 03:12 PM   #15
chiefsfan1
LQ Newbie
 
Registered: Oct 2003
Location: Nebraska
Distribution: Fedora; Redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
Talking

It is running again

I tried the patch but when i typed in patch -p1 /usr/src/poldhu.diff, nothing happened. The terminal window just sat there with a blinking cursor.

I did try to boot the laptop out of the dock and the wireless set up at eth0 and worked fine this time. I booted with it docked and it set everything up correctly and worked fine.

As long as i dock and undock with the system shutdown, it seems to work OK switching the wireless card from eth1 docked to eth0 undocked and back again. I don't know what I did different, but it is working now.

robertes - Thanks for all the help and work it is appreciated.
 
  


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
PCMCIA Probs with 2.6.8.1 xhypno Linux - Laptop and Netbook 0 09-13-2004 05:34 PM
docking and undocking?? trey85stang Linux - Laptop and Netbook 0 05-27-2004 02:59 PM
undocking vaio r505 on debian sid philoemacs Linux - Laptop and Netbook 0 05-17-2004 06:03 PM
PCMCIA probs guild Linux - Networking 1 11-22-2003 04:15 PM
pcmcia probs with laptop bachus Linux - Laptop and Netbook 2 10-03-2003 04:01 AM

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

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