From owner-freebsd-scsi Mon Apr 15 0:47:40 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from van-laarhoven.org (ap-z-5ab8.adsl.wanadoo.nl [212.129.218.184]) by hub.freebsd.org (Postfix) with SMTP id 6E8C737B404 for ; Mon, 15 Apr 2002 00:47:25 -0700 (PDT) Received: (qmail 57342 invoked from network); 15 Apr 2002 07:47:23 -0000 Received: from heather.van-laarhoven.org (10.66.0.2) by uitsmijter.van-laarhoven.org with SMTP; 15 Apr 2002 07:47:23 -0000 Date: Mon, 15 Apr 2002 09:47:22 +0200 (CEST) From: Nick Hibma To: Kenneth W Cochran Cc: "freebsd-stable@freebsd.org" , "freebsd-scsi@freebsd.org" Subject: Re: Status, USB/Olympus E-10 In-Reply-To: <200204141317.JAA5477193@shell.TheWorld.com> Message-ID: <20020415094031.O36693-100000@heather.van-laarhoven.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Could you do me a favour and recompile your kernel for kernel debugging, with these additional lines in your kernel configuration (in /sys/i386/conf): makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options DDB Then panic your machine while after it has been idle for about a minute or two to reduce the chance of damage (boot it, leave it running for 2 minutes till the drive LED is quiet, log in as root, connect the USB device, type sync, wait 30 seconds, type mount -> the machine panics) At the DDB prompt that appears, type 'trace' and the machine will display a backtrace of functions. Write down the function names. Send me that list of functions and send me the output of ident /sys/dev/usb/*.[ch] /sys/cam/*.[ch] /sys/cam/scsi/*.[ch] (the revision numbers of the files your using. Running with a debug kernel should be no problem and not much slower than running with a production kernel. The only problem is that the machine no longer can be used in unattended mode as it drops into the debugger on panic. But on a desktop machine this is not a problem (except from when you are using X as you won't be able to see the ddb prompt, so it will appear that the machine has simply frozen. Type 'c' to continue). Cheers, Nick On Sun, 14 Apr 2002, Kenneth W Cochran wrote: > >Date: Sun, 14 Apr 2002 13:08:56 +0200 (CEST) > >From: Nick Hibma > >To: Kenneth W Cochran > >cc: "freebsd-scsi@freebsd.org" , > > "freebsd-stable@freebsd.org" > >Subject: Re: Status, USB/Olympus E-10 > > > >> >The fact that it reboots without reason is very very strange indeed. If > >> >that is the case, check that your machine is grounded properly. Static > >> >electricity nuked my Win2k box every once in a while when I did a sync > >> >with my Palm. > >> > >> Grounding definitely not a problem; system doesn't panic > >> until I try to mount the device. Based on another message > >> thread in -stable ("very old bug") I wonder if it might be > >> related: the E-10 is supposedly a MS-DOS filesystem, & I > >> think it is readonly (not sure, though). > > > >Does it, or does it NOT panic on mount? If it panics the problem should > >be easy to track down. If it doesn't panic there is a fat chance that it > >still is something hardware related. > > Yes, it panics on mount. > Sequence: > 0. usbd running > 1. Connect camera - camera is detected & identified > additinally, camcontrol works, i.e. rescan detects proper > SCSI device(s) > 2. (try) mounting it - immediate panic & reboot, panic is a > divide by zero someplace > > Previous email indicated that it appears to be a problem > with the "geometry" of the device. It gets a zero > someplace in "CHS"(?), thus the divide by zero. > > -kc > -- n_hibma@van-laarhoven.org http://www.van-laarhoven.org/ n_hibma@FreeBSD.org http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message