Date: Mon, 12 Sep 2005 14:59:05 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: Mathieu PREVOT <mathieu-prevot@wanadoo.fr> Cc: freebsd-usb@freebsd.org Subject: Re: kernel panic with pure usb2umass pluged on pure usb1only motherboard port Message-ID: <200509121459.07106.hselasky@c2i.net> In-Reply-To: <6113f70d5dfb0d1abb6c95cd38085487@wanadoo.fr> References: <a751adad46867a82adb4da6a698d14cc@wanadoo.fr> <200509111945.03677.hselasky@c2i.net> <6113f70d5dfb0d1abb6c95cd38085487@wanadoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 12 September 2005 11:26, Mathieu PREVOT wrote: > > Do you see something like this at the end of "sysctl -a" > > > > dev.umass.0.%desc: Genesys USB2.0 card Reader, rev 2.00/91.38, addr 122 > > dev.umass.0.%driver: umass > > dev.umass.0.%location: port=5 interface=0 > > dev.umass.0.%pnpinfo: vendor=0x05e3 product=0x0710 devclass=0x00 > > devsubclass=0x0 > > 0 sernum="00571" intclass=0x08 intsubclass=0x06 > > dev.umass.0.%parent: uhub0 > > I have this with usb1&2umass (txt_sysctl_with_umass2) but nothing with > pure usb2umass What do you mean with "pure USB 2.0": a) With only ehci compiled into the kernel? b) Or a USB2.0 only device? If there are no "dev.umass" strings shown when you type "sysctl -a |grep umass" and you have plugged a umass device, then I have locked the problem down to the following. Some device is writing to freed memory, or maybe there is something else wrong. In the file "/sys/kern/subr_bus.c", in the function "make_device()", add: if(dev) { u_int8_t *temp = (void *)(dev); u_int16_t len = sizeof(struct device); while(len) { if(temp[0]) { printf("%s: dirty memory 0x%02x!\n", __FUNCTION__, temp[0]); break; } temp++; len--; } bzero(dev,sizeof(struct device)); } after: dev = malloc(sizeof(struct device), M_BUS, M_NOWAIT|M_ZERO); Then recompile the kernel. > Another thing: Have you recompiled and installed all modules, or are you using the modules supplied with FreeBSD 5.4 ? > Maybe I can configure a dump device for the kernel panic ? How ? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509121459.07106.hselasky>