Ok. after making the modifications as I stated within this thread, I
have also now successfully been able to hot-plug and hot-unplug this
card.

To unplug this card successfully, you need to first unload the usb
modules used by it:

# rmmod usb-ohci
# rmmod ehci-hcd

# cardctl suspend 0
(or # crdctl suspend 1 depending on which socket# you have this card
inserted. use cardctl config to figure out which one.)

Once done, you should be able to unplug the aua-1420 card (Adaptec
USB2connect card).

It would appear that the /etc/rc.d/init.d/pcmcia script should be
unloading the usb-ohci/ehci-hcd modules but isn't.  This is what also is
causing the hangs/freezes at shutdown.  

I'm pretty sure now if i added a line within the /etc/rc.d/init.d/pcmcia
script on the "stop)" function (and restart), to unload these specific
modules prior to rmmod pcmcia_core/ds/etc, I will successfully prevent
the hangs/freezes on service pcmcia stop/restart.


On Sun, 2002-05-19 at 00:37, Roger wrote:
> ok. did some reading on the pcmcia-howto docs and then just said scr*w
> it and proceeded to act on my Theory, "When in doubt, hit all of the
> keys."
> 
> Did some searching on google and found the following failsafe settings
> for the /etc/sysconfig/pcmcia (config file):
> 
> PCMCIA=yes
> PCIC=yenta_socket
> #PCIC_OPTS="irq_list=5,9,10"
> #PCIC_OPTS="pci_irq_list=10,10 do_scan=0"
> PCIC_OPTS="pci_irq_list=11,11 do_scan=0"
> CORE_OPTS="probe_io=0"
> CARDMGR_OPTS="-f  "
> 
> First, i did a cardctl config to check the irq's used by the sockets
> after a successful boot.  They appeared to be happily set to irq 11 per
> my system, but I tested irq 10 and they also appear happy on that too.
> 
> I believe that setting CORE_OPTS="probe io=0" turns-off probing of
> input/output.
> 
> I've performed several cold boots and I no longer see any boot hangs
> after the pcmcia/cardmgr services are started.
> 
> So, dunno which option did the trick to avoid bootup hang/freezes with
> this card. One of the above four added options did the trick tho.
> 
> 
> Although, I still get the following hang on shutdown:
> 
> {HIGH TONE BEEP HERE}
> usb.c: USB disconnect on device
> usb-ohci.c: bogus NDP=255 for OHCI usb - 09:00.1
> (the above two statements are repeated ~4x's)
> 
> usb-ohci.c: USB HC Takeover failed!
> usb.c: USB bus 3 deregistered
> usb.c: USB disconnect on device
> usb-ohci.c: USB HDC TakeOver failed!
> usb.c: USB bus 4 deregistered
> hcd.c: remove: 09:00.2, state 3
> usb.c: USB disconnect on device
> 
> {TOTAL SYSTEM HANG HERE!}
> at this point kernel hacking keys no longer works.  although, I'm
> thinking about making a custom "quick" shutdown script to bypass
> turning-off all services since i'm on a stand-alone system.  I've just
> been using the kernel hacking keys to sync/umount all drives/off or
> reboot.
> 
> On Sat, 2002-05-18 at 21:54, Roger wrote:
> > I need to add that on warm reboots (without a complete power-off), the
> > boot process does not hang (but shutdowns still hang).
> > 
> > I've described a work-around for this problem on the linux-usb.org
> > devices database (see url mentioned below).
> > 
> > On Sat, 2002-05-18 at 21:49, Roger wrote:
> > > Mandrake 8.2 (linux-2.4.18-6mdk, pcmcia-cs-3.1.31-5mdk)
> > > 
> > > Adaptec USB2connect (aua-1420) (cardbus)
> > > 
> > > Dell Inspiron 8100 Laptop (Texas Instruments PCI4451 PC card Cardbus
> > > Controller)
> > > 
> > > When trying to boot from a cold start, the boot process hangs/freezes
> > > after pcmcia/cardbus services is initialized. (can't even use kernel
> > > hacking keys to escape).
> > > 
> > > I get the same scenario when shutting down the system.
> > > 
> > > The only way to successfully enable this card is to only plug-in the
> > > card after the system has booted and use the kernel hacking keys to
> > > turn-off the system.
> > > 
> > > This scenario also logged at:
> > > http://www.qbik.ch/usb/devices/showdev.php?id=1185
> > > 
> > > Also, i tried using the latest pcmcia-cs-3.1.31-7mdk failes to even load
> > > the pcmcia_core/ds modules.
> > > 
> > > -- 
> > > Roger
> > > -----
> > > Verify my pgp/gnupg signature on my HomePage:
> > > http://www.alltel.net/~rogerx/about/index.html
> > -- 
> > Roger
> > -----
> > Verify my pgp/gnupg signature on my HomePage:
> > http://www.alltel.net/~rogerx/about/index.html
> -- 
> Roger
> -----
> Verify my pgp/gnupg signature on my HomePage:
> http://www.alltel.net/~rogerx/about/index.html
> 
> 
-- 
Roger
-----
Verify my pgp/gnupg signature on my HomePage:
http://www.alltel.net/~rogerx/about/index.html

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to