Re: panic when removing pccard
- From: Niki Denev <nike_d@xxxxxxxxxxx>
- Date: Tue, 19 Jun 2007 14:25:25 +0300
Hans Petter Selasky wrote:
On Tuesday 19 June 2007 11:06, Niki Denev wrote:I csuped a fresh -current source, then did a frech svn checkout of the new usb stack
Hans Petter Selasky wrote:
On Friday 08 June 2007 10:31, Niki Denev wrote:I've followed the instructions and did a svn checkout of the source,
-----BEGIN PGP SIGNED MESSAGE-----Hi!
Hash: SHA1
I experience the following panic on a few days old -current :
If i insert and then remove a pcmcia card using the ubsa module
(Vodafone Mobile Connect, which actually is Huawei E630 UMTS/HSDPA
modem) the machine panics, because i think the order of removal of the
devices by the kernel is not correct. I'm not sure because i don't have
-STABLE machine with pcmcia now, but i think this problem does not exist
there.
Here is what happens when card is inserted :
If you want to be able to remove the card you need to install the new USB
stack. The old USB stack is completely broken when it comes to this
point!
--HPS
http://www.turbocat.net/~hselasky/usb4bsd
Install the SVN version.
_______________________________________________
then did make install and after this i rebuilt my kernel and modules (i
had to disable if_ural)
But even after this i get the same panic when removing this specific card.
P.S.: How can i be sure that my new kernel and modules are using the new
USB stack?
I'm thinking that maybe something got wrong with the installation.
Check the "dmesg".
If you see something like:
usb0: 12MBps Full Speed USB v1.0
usb1: 12MBps Full Speed USB v1.0
usb2: 12MBps Full Speed USB v1.0
usb3: 480MBps High Speed USB v2.0
Then you are using the new stack.
Make sure that you are using the latest version. Hence you needed to remove "if_ural.c" it does not sound like you are using the latest version.
Do a "svn update" again, build a new package, install that, and build a new kernel.
--HPS
make package and make install went ok, then i proceeded to build the kernel,
but it failed and complained about missing usbdevs.h
i regenerated the file using the awk script in sys/tools and sys/dev/usb/usbdevs as source file,
but then the build failed again with (these messages were also present in the first build failure):
cc: /usr/src/sys/dev/usb/usb_requests.c: No such file or directory
cc: /usr/src/sys/dev/usb/usb_compat_linux.c: No such file or directory
cc: /usr/src/sys/dev/usb/usb_transfer.c: No such file or directory
cc: /usr/src/sys/dev/usb/usb_cdev.c: No such file or directory
cc: /usr/src/sys/dev/usb/usb_hid.c: No such file or directory
mkdep: compile failed
*** Error code 1
Stop in /usr/obj/usr/src/sys/PCGU3.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
Maybe i'm doing something terribly wrong.. i'm not sure..or the new stack is lagging behind the recent usb changes in the tree?
My kernconf is based on GENERIC, but with SCHED_ULE, added device *** and CPU_ENABLE_LONGRUN.
I'm also using ccache to build kernel and world, but build attempt without ccache also resulted in the same failure.
P.S.: I didn't had anything like "usb0: 12MBps Full Speed USB v1.0 " in my first build, so i'm 99.9% sure
that it wasn't using the new stack, hence the same kernel panic when removing the card.
Niki
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: panic when removing pccard
- From: M. Warner Losh
- Re: panic when removing pccard
- From: Hans Petter Selasky
- Re: panic when removing pccard
- References:
- panic when removing pccard
- From: Niki Denev
- Re: panic when removing pccard
- From: Hans Petter Selasky
- Re: panic when removing pccard
- From: Niki Denev
- Re: panic when removing pccard
- From: Hans Petter Selasky
- panic when removing pccard
- Prev by Date: Re: German keymap not working
- Next by Date: Re: panic when removing pccard
- Previous by thread: Re: panic when removing pccard
- Next by thread: Re: panic when removing pccard
- Index(es):