Subject: USB cameras and NetBSD 2.0 Beta (i386)
To: None <port-i386@netbsd.org, current-users@netbsd.org>
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
List: port-i386
Date: 04/14/2004 22:01:56
I have been trying to get a Canon Powershot A80 working with NetBSD 2.0
and gphoto2. So far this has been unsuccessful, usbdevs reports that
the camera can be seen, but gphoto2 from pkgsrc fails to see it.
(this is under root - 2.0 Beta from releng snap 09/04/2004)
NetBSD darkstar 2.0_BETA NetBSD 2.0_BETA (DAVE.MP) #1: Sun Apr 11 19:27:48
BST 2004 root@darkstar:/usr/src/sys/arch/i386/compile/DAVE.MP i386
usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, DeskJet 970C(0x1004), Hewlett-Packard(0x03f0), rev 1.00
port 2 addr 3: full speed, self powered, config 1, MiniHub 4000P(0x0003), Kawatsu Semiconductor(0x050f), rev 1.00
port 1 addr 4: full speed, power 500 mA, config 1, Camera(0x0840), Logitech(0x046d), rev 1.00
port 2 powered
port 3 addr 5: full speed, power 480 mA, config 1, product 0x0258(0x0258), vendor 0x1292(0x1292), rev 1.00
port 4 addr 6: full speed, self powered, config 1, Canon Digital Camera(0x309a), Canon Inc.(0x04a9), rev 0.01
# gphoto2 --debug --camera="Canon PowerShot A80 (PTP)" --port=usb: -P
0.000303 main(2): gphoto2 2.1.4
0.000375 main(2): gphoto2 has been compiled with the following options:
0.000449 main(2): + gcc (C compiler used)
0.000523 main(2): + popt (for handling command-line parameters)
0.000599 main(2): + exif (for displaying EXIF information)
0.000669 main(2): + cdk (for accessing configuration options)
0.000738 main(2): + aa (for displaying live previews)
0.000804 main(2): + jpeg (for displaying live previews in JPEG format)
0.000869 main(2): + no readline (for easy navigation in the shell)
0.000967 main(2): libgphoto2 2.1.4
0.001041 main(2): libgphoto2 has been compiled with the following options:
0.001114 main(2): + gcc (C compiler used)
0.001179 main(2): + EXIF (for special handling of EXIF files)
0.001245 main(2): + no ltdl (working around buggy libltdl, eh? :-)
0.001311 main(2): + no /proc/meminfo (adapts cache size to memory available)
0.001393 main(2): libgphoto2_port 0.5.1
0.001462 main(2): libgphoto2_port has been compiled with the following options:
0.001533 main(2): + gcc (C compiler used)
0.001598 main(2): + USB (for USB cameras)
0.001663 main(2): + serial (for serial cameras)
0.001728 main(2): + no resmgr (serial port access and locking)
0.001794 main(2): + no baudboy (serial port locking)
0.001963 main(2): + no ttylock (serial port locking)
0.002031 main(2): + no lockdev (serial port locking)
0.002097 main(2): + no ltdl (working around buggy libltdl, eh? :-)
0.002249 main(2): Processing 'model' option ('Canon PowerShot A80 (PTP)')...
0.002416 gphoto2-camera(2): Setting abilities ('Canon PowerShot A80 (PTP)')...
0.002575 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.003040 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.003220 gphoto2-setting(2): Setting key 'model' to value 'Canon PowerShot A80 (PTP)' (gphoto2)
0.003318 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.004625 main(2): Processing 'port' option ('usb:')...
0.004918 gp-port-info-list(2): Loading io-drivers from '/usr/pkg/lib/gphoto2_port/0.5.1'...
0.005737 gphoto2-port-serial(2): Trying to lock '/dev/tty00'...
1.003197 gphoto2-port-serial(2): Trying to lock '/dev/tty01'...
...bits deleted....
2.013557 gphoto2-port-serial(2): Trying to lock '/dev/tty032'...
2.013661 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/tty00) from 'libgphoto2_port_serial.so'
2.013767 gphoto2-port-core(2): Loaded 'Serial Port 1' (serial:/dev/tty01) from 'libgphoto2_port_serial.so'
2.013844 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so'
2.015088 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so'
2.015665 gphoto2-port-info-list(2): Looking for path 'usb:' (4 entries available)...
2.015788 gphoto2-port-info-list(2): Getting info of entry 2 (4 available)...
2.015910 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'...
2.056586 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
2.056878 gphoto2-port(2): Setting settings...
2.057111 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
2.057335 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
2.059953 gphoto2-camera(2): Listing files in '/'...
2.060270 gphoto2-camera(2): Initializing camera...
2.060607 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x309a). Make sure this device is connected to the computer.
2.060938 context(0): An error occurred in the io-library ('Bad parameters'): Could not find USB device (vendor 0x4a9, product 0x309a). Make sure this device is connected to the computer.
*** Error ***
An error occurred in the io-library ('Bad parameters'): Could not find USB device
(vendor 0x4a9, product 0x309a). Make sure this device is connected to the computer.
*** Error (-2: 'Bad parameters') ***
There is some info about Linux & FreeBSD usb issues on the gphoto web
site, however nothing about NetBSD :-(
I was wondering if this was an issue with a user level usb library
failing to access the device. I tried changing the perms on
/dev/ugen0.04 with no effect. Has anyone else managed to get a usb
camera to be recognised with gphoto2 or has some clue as to what needs
to be done...
TIA,
Dave
--
=====================================================================
Computing Services Dept Phone/Fax: 0151-794-3731/3759
The University of Liverpool Email: dtyson@liv.ac.uk
Chadwick Tower, Peach Street WWW: http://www.liv.ac.uk/~dtyson
Liverpool L69 7ZF Open Source O/S: www.netbsd.org
=====================================================================