usb/76240: USB camera panics kernel

Mark Ovens marko at FreeBSD.org
Fri Jan 14 01:00:45 PST 2005


>Number:         76240
>Category:       usb
>Synopsis:       USB camera panics kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 14 09:00:41 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Mark Ovens
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Jan 13 08:47:21 GMT 2005 mark at redshift:/usr/obj/usr/src/sys/REDSHIFT i386
>Description:
       
        ohci1: <NEC uPD 9210 USB controller> mem 0xec800000-0xec800fff irq 18 at device 5.0 on pci2
        ohci1: [GIANT-LOCKED]
        usb1: OHCI version 1.0
        usb1: <NEC uPD 9210 USB controller> on ohci1
        usb1: USB revision 1.0
        uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
        uhub1: 3 ports with 3 removable, self powered
        ohci2: <NEC uPD 9210 USB controller> mem 0xec000000-0xec000fff irq 19 at device 5.1 on pci2
        ohci2: [GIANT-LOCKED]
        usb2: OHCI version 1.0
        usb2: <NEC uPD 9210 USB controller> on ohci2
        usb2: USB revision 1.0
        uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
        uhub2: 2 ports with 2 removable, self powered

        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). Kept 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 crashes with a kernel panic

        This problem also happens when trying to connect to the camera in
        Konqueror using camera:/ and in gtkam.

        Backtrace:

        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>


>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list