Date: Sun, 18 Nov 2001 13:42:46 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: current@freebsd.org Subject: usb/ugen/devfs broken? Message-ID: <Pine.BSF.4.21.0111181331360.23961-100000@InterJet.elischer.org>
next in thread | raw e-mail | index | archive | help
Using devfs, I assumed that if I can see it, it is there.... and indeed... pluging in my USB camera: I see on the console: ugen0: OLYMPU C-3000ZOOM, rev 1.10/1.00, addr 4 and afterwards: in /dev jules# ls -l /dev/u* crw-r--r-- 1 root operator 114, 0 Nov 18 11:58 /dev/ugen0 crw-r--r-- 1 root operator 114, 3 Nov 18 11:58 /dev/ugen0.3 crw-r--r-- 1 root operator 114, 4 Nov 18 11:58 /dev/ugen0.4 crw-r--r-- 1 root operator 113, 0 Nov 18 11:58 /dev/ulpt0 crw-r--r-- 1 root operator 113, 64 Nov 18 11:58 /dev/unlpt0 lrwxr-xr-x 1 root wheel 7 Nov 18 11:58 /dev/urandom -> random crw-rw---- 1 root operator 108, 255 Nov 18 11:58 /dev/usb crw-rw---- 1 root operator 108, 0 Nov 18 11:58 /dev/usb0 jules# where /dev/ugen0.4 in new.. (in fact /dev/ugen0.3 is new too which is confusing because my printer was always there, but I think that's a different problem) However any attempt to access /dev/ugen0.4 results in an error: A snippet from a ktrace of 'gphoto2' running... (or trying to run) 491 gphoto2 CALL open(0x8060008,0x2,0x28056445) 491 gphoto2 NAMI "/dev/ugen0" 491 gphoto2 RET open 5 491 gphoto2 CALL ioctl(0x5,USB_SET_CONFIG,0xbfb7f850) 491 gphoto2 RET ioctl 0 491 gphoto2 CALL ioctl(0x5,USB_SET_ALTINTERFACE,0xbfb7f838) 491 gphoto2 RET ioctl 0 491 gphoto2 CALL open(0xbfb7d7e0,0,0xbfb7d7f4) 491 gphoto2 NAMI "/dev/ugen0.4" 491 gphoto2 RET open -1 errno 6 Device not configured 491 gphoto2 CALL open(0xbfb7d7f0,0,0xbfb7d804) 491 gphoto2 NAMI "/dev/ugen0.4" 491 gphoto2 RET open -1 errno 6 Device not configured 491 gphoto2 CALL open(0xbfb7d7e0,0,0xbfb7d7f4) 491 gphoto2 NAMI "/dev/ugen0.4" 491 gphoto2 RET open -1 errno 6 Device not configured 491 gphoto2 CALL close(0x5) 491 gphoto2 RET close 0 491 gphoto2 CALL open(0x8060008,0x2,0x8060000) 491 gphoto2 NAMI "/dev/ugen0" 491 gphoto2 RET open 5 491 gphoto2 CALL open(0xbfbbd450,0,0xbfbbd464) 491 gphoto2 NAMI "/dev/ugen0.4" 491 gphoto2 RET open -1 errno 6 Device not configured 491 gphoto2 CALL close(0x5) Can one of the USB guru's tell me what is the expected behaviour? what does "Device not configured" mean if devfs says that it is present? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0111181331360.23961-100000>