Bug 128854

Summary: Plugged pcmcia card not found
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Lars Müller <lmuelle>
Component: Mobile DevicesAssignee: Christian Zoz <zoz>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Output of the suggested ls command while the system is up and the card was detected via the described workaround.
Output of the suggested grep command while the system is up and the card was detected via the described workaround.

Description Lars Müller 2005-10-17 20:59:31 UTC
The pcmcia NIC is plugged before the system is started.  While booting this NIC
isn't detected.

This is even the case if /etc/sysconfig/pcmcia:PCMCIA_COLDPLUG_REINSERT=yes as
mentioned in /usr/share/doc/packages/pcmciautils/README.SUSE

As a workaround I've written a shell script called in /etc/init.d/boot.local
which does several pccardctl eject; sleep 2; pccardctl insert calls till the
card is there.
Comment 1 Christian Zoz 2005-10-18 09:40:52 UTC
Hi Lars, once again your 'most important customer'? ;)

Does it also help to increase the sleeping time in post_init_pcmcia_socket() in
/etc/sysconfig/hardware/scripts/functions.pcmcia_socket?

Tell me more about the NIC.
Does it need a CIS upload?

You could check the state in your workaround script. Before every insert do
  ls -l /sys/class/pcmcia_socket/*/* /sys/bus/pcmcia/devices/*/*
  grep -H "" /sys/class/pcmcia_socket/*/* /sys/bus/pcmcia/devices/*/*
and look if something changed.
Comment 2 Lars Müller 2005-10-18 19:57:52 UTC
You're right Christian.  Again the same customer.

The NIC uses the pcnet_cs module.  And from the messages I don't see any CIS upload.  This is a very simple and cheap NIC.

I'll check the state while booting the system next time I'm closer to the system.

Is it possible to only check for one file?
Comment 3 Lars Müller 2005-10-18 19:59:22 UTC
Created attachment 54647 [details]
Output of the suggested ls command while the system is up and the card was detected via the described workaround.
Comment 4 Lars Müller 2005-10-18 19:59:58 UTC
Created attachment 54648 [details]
Output of the suggested grep command while the system is up and the card was detected via the described workaround.
Comment 5 Christian Zoz 2005-11-04 13:05:33 UTC
Any news?
Did you try toincrease sleep time as suggested in comment 1?

I cannot do anything with the current set of information.
Comment 6 Lars Müller 2005-11-04 13:32:36 UTC
I'm sorry.  But atm I don't have access to that system.  I'll have again in around two weeks.
Comment 7 Stefan Behlert 2005-11-24 11:13:43 UTC
Anything new here?
Comment 8 Lars Müller 2005-11-24 11:15:48 UTC
I'll be on-site the next days and provide the missing information.  Sorry, I didn't had a change in between.
Comment 9 Lars Müller 2005-11-27 11:12:58 UTC
Regarding your question in comment #2:  Increasing the sleep value in /etc/sysconfig/hardware/scripts/functions.pcmcia_socket function  post_init_pcmcia_socket() line 34 to 10, 20, 30, and 150 doesn't change the behaviour.
Comment 10 Christian Zoz 2006-02-08 21:47:21 UTC
Lars, please have a look at bug 148648 comment 2.
Would be nice if you could provide HW information in the same style. I try to collect all instances of this problem there.

*** This bug has been marked as a duplicate of 148648 ***