portable >> ATEN USB 2.0 PC-Card crashes RH8 during shutdown

by Ulf Samuelsson » Wed, 18 Aug 2004 19:16:37 GMT

Have an ATEN USB 2.0 PC-Card in a Dell Latitude C800 running RH8.0
This works OK with my USB Memory stick, mouse, keyboard
but when I shut down the system, it freezes halfway, so I have to
turn power off.

When I reboot I then of course have to fsck the system...

I think but have not tried, that I can fix the problem by doing

# rmmod ehci-hcd

before shutting down.
Would like to automate this so the question is:

How can I automatically run a script when I shut down the system?


--
Best Regards
Ulf at atmel dot com
These comments are intended to be my own opinion and they
may, or may not be shared by my employer, Atmel Sweden.




portable >> ATEN USB 2.0 PC-Card crashes RH8 during shutdown

by Kelly Price » Wed, 18 Aug 2004 22:48:58 GMT


On Wed, 18 Aug 2004 13:16:37 +0200, Ulf Samuelsson
< XXXX@XXXXX.COM > probably wrote (unless it was a Kook):

Look for anything that runs in runlevels 0 and 6.

Also, I've had problems with that EHCI module myself, so I wouldn't
even attempt to load it.

--
eval join"",map{chomp;s/^.+>\s*//;$_}grep{/>/}<DATA>; __DATA__
.' .' Kelly "STrRedWolf" Price -- WolfSkunk Designs
xX xX .' http://stalag99.net tygris @ same domain
"X "X X .'
_____. X" X > 0;
XXXXXXXx. X".' > 0;
'"XXXXXX| X > 0;
"XXX| X" > 0;
'XX' > 0;



portable >> ATEN USB 2.0 PC-Card crashes RH8 during shutdown

by Me » Sat, 16 Oct 2004 08:27:08 GMT

Craft a script similar to what is in /etc/init.d then run chkconfig and
tell it to run that on initlevel 6 I think.






ATEN USB 2.0 PC-Card crashes RH8 during shutdown

by Dances With Crows » Sat, 16 Oct 2004 09:06:33 GMT

On Sat, 16 Oct 2004 00:27:08 GMT, Me staggered into the Black Sun and
said:

Please don't top-post. Message rearranged for easier reading
comprehension.



Nope. In SysV init setups (used by every distro except Gentoo and
Slackware) runlevel (not "initlevel") 6 is for "reboot". Runlevel 0 is
for "halt". The easiest/best thing to do may be to modify the "local"
script (/etc/init.d/rc.local?) so that it does "rmmod ehci_hcd" when
called with argument "stop". Add the S99 symlink to this script to
directories /etc/init.d/rc6.d and /etc/init.d/rc0.d , or use chkconfig
to do that.

Note that if you have a USB2 device plugged in and mounted, and you try
to shut down or reboot, the rmmod will fail and your system will hang
when halt -p is executed. There's no real way around that. Maybe move
the rmmod somewhere before S99, so that the umount -a is done before
the rmmod. HTH,

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / Hire me!
-----------------------------/ http://crow202.dyndns.org/ ~mhgraham/resume


Similar Threads

1. USB-1.1 fails with USB 2.0 Hub [was: USB-Serial fails with USB 2.0 Hub]

2. Crash during shutdown - Linux

3. [PATCH] Aten USB to Serial converter broken in -mm kernels

4. USB 2.0 card for PIII 500 on SE440BX2

5. Sweex USB 2.0 PCI card

6. USB 2.0 interface card options?

7. Via VT6212L USB 2.0, VT6306 1394 combo card

 I got a USB2.0/1394 combo card for my birthday, but it's been
giving me major problems. I haven't gotten the USB side to work
in Windows XP, and it gives SUSE 9.0 Pro fits; it won't finish
booting, and hangs on "Starting hardware scan on boot...". If
I hit ctrl-C it moves on to a standard graphical login, but
locks up solid shortly thereafter, not even the Magic Sysrq key
can get it out.

 I managed to disable the hardware scan, but the system still
locks up shortly (~3 minutes) after boot.

 Booting Knoppix 3.4 EN works, but the USB stuff is unreliable
at best, and even when I'm not using USB it sometimes hangs.
Programs start to stall, and I get "I/O errors" posted to the
console, then a total lock. The logs don't appear to be
accessible when this starts.

 Does anyone know of issues with these chipsets? This card
replaced a TI-based 1394 card that didn't give me any problems.
What information would be useful in debugging this problem?

-- 

 Sincerely,

 Ray Ingles                                    (313) 227-2317

 The above opinions are probably not those of Compuware Corp.
                          Yet.

8. Supported USB 2.0 pci card in 2.6 kernel