From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 11:00:18 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF1216A4CE for ; Thu, 13 Jan 2005 11:00:18 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB6BC43D4C for ; Thu, 13 Jan 2005 11:00:17 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay01.plus.net with esmtp (Exim) id 1Cp2i6-000KQA-RT; Thu, 13 Jan 2005 11:00:14 +0000 Message-ID: <41E65559.6030300@freebsd.org> Date: Thu, 13 Jan 2005 11:02:49 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> In-Reply-To: <41E58102.8010603@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 11:00:18 -0000 Julian Elischer wrote: > > Mark Ovens wrote: > >> Canon Powershot A70 >> >> FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Jan 1 18:37:13 >> GMT 2005 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 >> >> ugen1: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 >> >> This camera used to work just fine in digikam but now doesn't (can't >> say exactly when it stopped though). Keep getting "Can't connect to >> camera" error when trying to open the camera although digikam does >> auto-detect it. >> >> Googling threw up some info at >> http://gphoto.org/doc/manual/permissions-usb.html about allowing USB >> devices to be accessed by non-root users (section 4.3.3.1. FreeBSD 5.x >> near the bottom of the page) which says to add the following to >> /etc/rc.local: >> >> /sbin/devfs ruleset 10 >> /sbin/devfs rule applyset >> /sbin/devfs rule add path ugen1* mode 666 >> /sbin/devfs rule show >> >> I've done that, but now instead of "Can't connect to camera" the >> computer locks up and after about 10 seconds reboots - all the >> filesystems are reported as not being properly dismounted on reboot. >> Nothing is written to any logs (obviously) so I can't provide any info. > > > you probably need to run with ddb, kdb and a serial console, or at least > from the console, outside of > X11 so you can see the error messages. The system will not go int ddb if > the console is being controlled by X11. > Here's the ouput when it panics: WARNING: Driver mistake: destroy_dev on 0/0 panic: don't do that cpuid = 0 KDB: stack backtrace: kdb_backtrace(c076d635,0,c0757f6f,e9b559e0,5) at kdb_backtrace+0x2e panic(c0757f6f,0,0,1,c2bac000) at panic+0x128 idestroy_dev(c07b7b50,e9b55a10,c04ff092,c07b7b50,3) at idestroy_dev+0x42 destroy_dev(c07b7b50,3,0,e9b55a50,c04ff2cc) at destroy_dev+0x16 ugen_destroy_devnodes(c2bac000,2,2,1,c23db830) at ugen_destroy_devnodes+0x52 ugen_set_config(c2bac000,1,180,c3000640,c301c108) at ugen_set_config+0x22c ugen_do_ioctl(c2bac000,0,80045565,e9b55c54,3,c3000640) at ugen_do_ioctl+0x253 ugenioctl(c07b7c38,80045565,e9b55c54,3,c3000640) at ugenioctl+0x5f spec_ioctl(e9b55b7c,e9b55c28,c05e23c5,e9b55b7c,e0e8c330) at spec_ioctl+0x16e spec_vnoperate(e9b55b7c,e0e8c330,c2f15dd0,10,bfca6ff8) at spec_vnoperate+0x18 vn_ioctl(c2f15dd0,80045565,e9b55c54,c2b41b80,c3000640) at vn_ioctl+0x195 ioctl(c3000640,e9b55d14,c,c3000640,c27a1bb8) at ioctl+0x6a8 syscall(2f,2f,2f,8369200) at syscall+0x300 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x298f19cf, esp = 0xbfaeb394, ebp = oxbfaeb3c0 --- KDB: enter: panic [thread pid 678 tid 100184 ] Stopped at kbd_enter+0x30: leave db> Regards, Mark