LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   3C574 - PCMCIA Card Not Playing Ball ... (http://www.linuxquestions.org/questions/slackware-14/3c574-pcmcia-card-not-playing-ball-723214/)

Probs 05-02-2009 07:10 PM

3C574 - PCMCIA Card Not Playing Ball ...
 
Hi guys,

Be gentle, I'm a bit of a newb to Slackware. Ok, so I have 12.2 installed on an old Toshiba Tecra (Circa 96) laptop with a 3COM PCMCIA 3c574 installed.

I have set the cardbus mode to PCMCIA rather than cardbus mode and all appears well (When I look at the startup logs I find it has recognised a card installed in the bottom slot)

However when I do an ifconfig -a I see no mention of said eth0 (Just a loopback address and one for the infared port)

Do I need to add the 3c574 driver specifically, and if so, could someone point me in the right direction to be able to do this ?

Thanks guys n gals.

niels.horn 05-02-2009 07:50 PM

There is a module in Slackware 12.2 called 3c574_cs but I have no experience with it...

Check with lsmod if it is loaded.
If not, try to load it with:
Code:

modprobe 3c574_cs
It is an old driver (1993-1998) with some fixes from 2003.

I had a similar experience some time ago getting a 3c562C working on an old Toshiba notebook, and it is running fine now :)

Probs 05-03-2009 07:09 AM

Heya chap, firstly thanks for your reply, I've tried what you suggested and no error is returned however when I do lsmod I can see it loaded (And listed against the PCMCIA interface) but when I do ifconfig -a I still can see no eth0 or other adapter which looks like it may be my card.

I have ran netconfig just in case but still nothing.

The car is definatly a 3c574-TX 10/100 PCMCIA card.

Any thoughts and thanks again.

niels.horn 05-03-2009 07:50 AM

ok, let's try the following:
- boot the Toshiba without the 3c574 plugged in
- insert the 3c574 card
- check if the 3c574_cs was loaded with lsmod
- check the last page of the /var/log/messages file for any relevant messages and tell me what you found

I tested my 3c562 card and in /var/log messages I could see the lines from pcmcia and then the creation of the eth1 adapter using the 3c589_cs module.
It became eth1 because it has a built-in adapter that is eth0...

I then configured the card with "ifconfig 192.168.x.y", giving it an IP address.

I'm working in the dark here, as I do not have your card or notebook, but it should be quite similar.

Probs 05-03-2009 06:03 PM

Hi there,

Thanks for your reply, sorry I should have mentioned my configuration sooner. It's a Tecra 8000 laptop with around 512mb RAM, 20GB hard disk and obviously the aforementioned card running Slackware 12.2.

Ok so from the top:

- boot the Toshiba without the 3c574 plugged in
No problem.

- insert the 3c574 card
With you so far ...

- check if the 3c574_cs was loaded with lsmod
I did and it was not, against PCMCIA_core I had pcmcia,i82365,rsrc_nonstatic

- check the last page of the /var/log/messages file for any relevant messages and tell me what you found

I find one entry at the end of the log that says

kernel: pccard@ PCMCIA card inserted into slot 1

And thats all I get. Thanks again for your help with this one.

Probs 05-03-2009 06:21 PM

Ok so I had another quick look. I found that when I did pccardctl info I got not a lot, so I tried running pcmcia-socket-startup and that seemed to do it. I can now see eth0. I just can't see why that doesn't run on startup.

Really quite odd. I'll keep reading. Any ideas out there as to why this does not happen automatically ?

niels.horn 05-03-2009 07:22 PM

pcmcia-socket-startup is (or should be) started by udev - see /lib/udev/rules.d/60-pcmcia.rules

I am not sure why this did not work automatically...
Are /etc/rc.d/rc.udev & /etc/rc.d/rc.pcmcia marked as 'executable'?

It might simply be some incompatibility with the Toshiba or the 3c574 (less likely).
In the worst case, you can put pcmcia-socket-startup in /etc/rc.d/rc.local

mmmichael 06-27-2009 09:36 PM

/lib/udev/rules.d/60-pcmcia.rules needs to be edited so that the second to last line runs /sbin/pcmcia-socket-startup.
The rule file gives the wrong path to the command. (At least it did on my fresh install of 12.2 off the dvd).

niels.horn 06-27-2009 11:34 PM

Quote:

Originally Posted by mmmichael (Post 3588526)
/lib/udev/rules.d/60-pcmcia.rules needs to be edited so that the second to last line runs /sbin/pcmcia-socket-startup.
The rule file gives the wrong path to the command. (At least it did on my fresh install of 12.2 off the dvd).

That's correct for 12.2. It has been corrected in Slackware-current with a symbolic link on April, 20.

The /lib/udev/rules.d/60-pcmcia.rules reads:
Code:

...
# pcmcia-socket-startup sets it up
SUBSYSTEM=="pcmcia_socket", \
                RUN+="/lib/udev/pcmcia-socket-startup"

and /lib/udev/pcmcia-socket-startup now is a symbolic link to /sbin/pcmcia-socket-startup:
Code:

# ls -l /lib/udev/pcmcia-socket-startup
lrwxrwxrwx 1 root root 32 2009-05-22 09:13 /lib/udev/pcmcia-socket-startup -> ../../sbin/pcmcia-socket-startup*



All times are GMT -5. The time now is 02:29 AM.