Subject: Kodak EasyShare, USB and gphoto2
To: None <netbsd-help@netbsd.org>
From: =?ISO-8859-1?Q?Thorbj=F6rn_Jemander?= <thorbjorn.jemander@bredband.net>
List: netbsd-help
Date: 08/18/2003 08:06:13
Hi,

I've tried to get a Kodak EasyShare CX4230 to work with
gphoto2 under NetBSD 1.6.1, but no success so far.

gphoto2 does not detect the camera, and I don't know where
to start looking. There does not seem to be a debug mode
for gphoto2.

Is this a USB problem under NetBSD or is it more likely
to be unsufficient support for CX4230? (It is listed as
supported, but with remark 'testing')

========= 8< ========================

[8:00:24]thorman@tellus:~>gphoto2 --list-ports
Devices found: 1
Path                             Description
--------------------------------------------------------------
usb:                             Universal Serial Bus
[8:01:02]thorman@tellus:~>gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
[8:01:07]thorman@tellus:~>dmesg

NetBSD 1.6.1 (TK1-NOIP6) #2: Tue Jul 29 22:10:37 CEST 2003
    thorman@tellus:/usr/src/sys/arch/i386/compile/TK1-NOIP6
cpu0: AMD Athlon Model 6 (Palomino) (686-class), 1544.58 MHz
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
total memory = 511 MB
avail memory = 468 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xf0bf0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT8366 (Apollo KT266) CPU-PCI Bridge (rev. 0x00)
agp0 at pchb0: aperture at 0xfc000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8366 CPU-AGP Bridge 
(rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Matrox product 0x2527 (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
cmpci0 at pci0 dev 5 function 0: C-Media Electronics Inc CMI8738/C3DX 
PCI Audio Device (rev. 0x10)
cmpci0: interrupting at irq 10
audio0 at cmpci0: full duplex, mmap, independent
opl0 at cmpci0: model OPL3: LR swapped
midi0 at opl0: CMPCI Yamaha OPL3
mpu0 at cmpci0
midi1 at mpu0: CMPCI MPU-401 MIDI UART
vr0 at pci0 dev 13 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
vr0: interrupting at irq 11
vr0: Ethernet address: 00:05:5d:a2:12:1b
sqphy0 at vr0 phy 8: Seeq 80225 10/100 media interface, rev. 0
sqphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8233 PCI-ISA Bridge (rev. 0x00)
pciide0 at pci0 dev 17 function 1: VIA Technologies VT8233 ATA100 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <ST380021A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 76319 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using 
DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG DVD-ROM SD-616T, , F301> type 5 cdrom 
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd1 at atapibus0 drive 1: <PLEXTOR CD-R   PX-W4012A, 179972, 1.01> type 
5 cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using 
DMA data transfers)
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using 
DMA data transfers)
uhci0 at pci0 dev 17 function 2: VIA Technologies VT83C572 USB 
Controller (rev. 0x1b)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 17 function 3: VIA Technologies VT83C572 USB 
Controller (rev. 0x1b)
uhci1: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 17 function 4: VIA Technologies VT83C572 USB 
Controller (rev. 0x1b)
uhci2: interrupting at irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask e365 netmask eb65 ttymask fbe7
Kernelized RAIDframe activated
uhub1: port error, restarting port 1
uhub1: port error, giving up port 1
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
uhub2: port error, restarting port 1
uhub2: port error, giving up port 1
uhub2: port error, restarting port 2
uhub2: port error, giving up port 2
uscanner0 at uhub0 port 1
uscanner0: Hewlett Packard ScanJet 3400cse, rev 1.00/0.00, addr 2
uscanner0: setting config no failed
ulpt0 at uhub0 port 2 configuration 1 interface 0
ulpt0: HewLett Packard HP LaserJet 1200, rev 1.10/1.00, addr 3, iclass 7/1
ulpt0: using bi-directional mode
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

...

ugen0 at uhub1 port 1
ugen0: Eastman Kodak Company KODAK EasyShare CX4230 Zoom Digital Camera, 
rev 1.10/1.00, addr 2