Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2005 17:30:24 +0300
From:      "Vladimir Chukharev" <chu@kemia.me.tut.fi>
To:        freebsd-usb@freebsd.org
Subject:   Camera stopped working after upgrade 4->5
Message-ID:  <op.sq6k8ymj1taxl4@kempc17.me.tut.fi>

next in thread | raw e-mail | index | archive | help
Hi!

I have a problem with digital camera on FreeBSD 5. The same camera worked well
with FreeBSD 4, including one case of the same hardware, when I upgraded 4->5.

I use gtkam program. With fbsd4 it opens the camera and allows to copy
the photos. With fbsd5 it cannot find the camera. When I try to add
a camera manually, it can correctly detect the camera as
   Canon Digital IXUS 400
   Universal Serial Bus (usb:)
but then it cannot initialize it. Same happens on all 4 usb connectors.

Since the messages on connecting/disconnecting are virtually the same
in different versions of FreeBSD, and versions of gtkam are really close,
I think the problem should be somewhere in the usb driver in FreeBSD 5.

Does anybody have any clue to this? Can I give more useful information?

Best regards,

V.Chukharev

--------------------------------

The system I would like to use the camera with (and it fails to work):

$ uname -a
FreeBSD chu.h33.erkki.ton.tut.fi 5.4-STABLE FreeBSD 5.4-STABLE #20: Sun May 15 16:16:12 EEST 2005     root@chu.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/CHU  i386

This appears in /etc/log/all.log on connecting/disconnecting the camera:
May 21 23:08:41 chu kernel: ugen0: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2
May 21 23:08:42 chu kernel: ugen0: at uhub0 port 2 (addr 2) disconnected
May 21 23:08:42 chu kernel: ugen0: detached

Full dmesg output on this computer:
$ dmesg
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 5.4-STABLE #20: Sun May 15 16:16:12 EEST 2005
     root@chu.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/CHU
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1500MHz (1500.06-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
   Features=0xa7e9fbbf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
real memory  = 527695872 (503 MB)
avail memory = 506724352 (483 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
acpi_ec0: <Embedded Controller: GPE 0x1c> port 0x66,0x62 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral> at device 0.1 (no driver attached)
pci0: <base peripheral> at device 0.3 (no driver attached)
agp0: <Intel 8285xM (85xGM GMCH) SVGA controller> port 0xdc00-0xdc07 mem 0xfeb00000-0xfeb7ffff,0xf0000000-0xf7ffffff irq 11 at device 2.0 on pci0
agp0: detected 8060k stolen memory
agp0: aperture size is 128M
pci0: <display> at device 2.1 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xd480-0xd49f irq 11 at device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xd800-0xd81f irq 5 at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xd880-0xd89f irq 4 at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <network> at device 4.0 (no driver attached)
cbb0: <RF5C475 PCI-CardBus Bridge> at device 5.0 on pci1
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <Ricoh R5C551> mem 0xfe8ff000-0xfe8ff7ff irq 11 at device 5.1 on pci1
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:e0:18:00:03:18:13:e4
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:e0:18:18:13:e4
fwe0: Ethernet address: 02:e0:18:18:13:e4
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
fxp0: <Intel 82801DB (ICH4) Pro/100 VM Ethernet> port 0xcc00-0xcc3f mem 0xfe8fe000-0xfe8fefff irq 11 at device 8.0 on pci1
miibus0: <MII bus> on fxp0
inphy0: <i82562EM 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:0e:a6:8e:a9:ae
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <multimedia, audio> at device 31.5 (no driver attached)
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_cmbat1: <Control Method Battery> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
sio0: configured irq 3 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 port 0x2f8-0x2ff irq 3 drq 1 flags 0x10 on acpi0
sio0: type 16550A
ppc0: <ECP parallel printer port> port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <ISA Option ROM> at iomem 0xc0000-0xccfff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1500059068 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 57231MB <IC25N060ATMR04-0/MOBOAD4A> [116280/16/63] at ata0-master UDMA100
acd0: DVDR <MATSHITADVD-RAM UJ-810/C100> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s2a
pcm0: <Intel ICH4 (82801DB)> port 0xe100-0xe13f,0xe000-0xe0ff at device 31.5 on pci0
pcm0: <SigmaTel STAC9750/51 AC97 Codec>
ugen0: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2
ugen0: at uhub0 port 2 (addr 2) disconnected
ugen0: detached
cpu0: Cx states changed
cpu0: Cx states changed
ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.


The versions of the gtkam program and its dependencies:
$ pkg_tree gtkam
gtkam-gnome-0.1.12_4
|\__ pkgconfig-0.17.2
|\__ expat-1.95.8_1
|\__ xorg-fonts-encodings-6.8.2
|\__ xmlcatmgr-2.2
|\__ jpeg-6b_3
|\__ freetype2-2.1.9
|\__ fontconfig-2.2.3,1
|\__ sdocbook-xml-4.1.2.5_2
|\__ docbook-sk-4.1.2_3
|\__ libiconv-1.9.2_1
|\__ python-2.4.1_1
|\__ py24-numeric-23.7
|\__ xorg-libraries-6.8.2
|\__ samba-libsmbclient-3.0.14a_2
|\__ png-1.2.8_2
|\__ libxml2-2.6.19
|\__ perl-5.8.6_2
|\__ bitstream-vera-1.10_1
|\__ startup-notification-0.8_1
|\__ openldap-client-2.2.26
|\__ nspr-4.4.1_1
|\__ nss-3.9.2
|\__ gettext-0.14.4
|\__ popt-1.7
|\__ glib-2.6.4
|\__ p5-XML-Parser-2.34_1
|\__ hicolor-icon-theme-0.5
|\__ libusb-0.1.10a
|\__ shared-mime-info-0.16_1
|\__ libXft-2.1.6_1
|\__ tiff-3.7.2
|\__ libijs-0.35
|\__ libgpg-error-1.0_1
|\__ xorg-fonts-truetype-6.8.2
|\__ libgcrypt-1.2.1_1
|\__ libwmf-0.2.8.3
|\__ linc-1.0.3_3
|\__ fam-2.6.9_6
|\__ libexif-0.6.12_1
|\__ libaudiofile-0.2.6
|\__ gnomehier-2.0_6
|\__ libxslt-1.1.14
|\__ gnutls-1.0.24_1
|\__ pango-1.8.1
|\__ libgsf-1.11.1
|\__ docbook-xml-4.2_1
|\__ atk-1.9.1
|\__ esound-0.2.35_2
|\__ libart_lgpl2-2.3.17
|\__ gtk-2.6.7
|\__ libcroco-0.6.0_1
|\__ lcms-1.14,1
|\__ libmng-1.0.8
|\__ libgphoto2-2.1.5_1
|\__ intltool-0.33
|\__ libIDL-0.8.5_1
|\__ libglade2-2.5.1_2
|\__ ORBit2-2.12.2
|\__ libsoup-2.2.3
|\__ docbook-xsl-1.68.1
|\__ libwnck-2.10.0
|\__ py24-gtk-2.6.2
|\__ libgnomecanvas-2.10.1
|\__ scrollkeeper-0.3.14_1,1
|\__ cdparanoia-3.9.8_7
|\__ gnomemimedata-2.4.2
|\__ gail-1.8.4
|\__ libexif-gtk-0.3.4_3
|\__ gimp-print-4.2.7_1
|\__ libbonobo-2.8.1_1
|\__ gtk-engines2-2.6.3_3
|\__ gconf2-2.10.0
|\__ gnomevfs2-2.10.1
|\__ gnome-icon-theme-2.10.1_1
|\__ librsvg2-2.9.5_2
|\__ gnomekeyring-0.4.2_1
|\__ libgnome-2.10.0_1
|\__ libbonoboui-2.8.1_2
|\__ libgnomeui-2.10.0_1
|\__ evolution-data-server-1.2.2_1
|\__ gnomedesktop-2.10.1
|\__ desktop-file-utils-0.10_2
|\__ gnome-menus-2.10.1_1
|\__ gnomepanel-2.10.1_1
|\__ libgtkhtml-2.6.3_1
|\__ aalib-1.4.r5_1
  \__ gimp-gnome-2.2.6,1


-----------------------------------------------

For comparison, some info from FreeBSD 4, where gtkam works.

$ uname -a
FreeBSD svak.h33.erkki.ton.tut.fi 4.10-STABLE FreeBSD 4.10-STABLE #0: Sun Aug 22 13:27:05 EEST 2004     root@svak.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/SVAK  i386

This appears in /etc/log/all.log on connecting/disconnecting the camera:
May 21 23:14:49 svak /kernel: ugen0: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2
May 21 23:14:54 svak /kernel: ugen0: at uhub0 port 3 (addr 2) disconnected
May 21 23:14:54 svak /kernel: ugen0: detached

$ pkg_tree gtkam
gtkam-gnome-0.1.12
|\__ xmlcatmgr-2.1
|\__ jpeg-6b_3
|\__ freetype2-2.1.7_3
|\__ expat-1.95.8
|\__ sdocbook-xml-4.1.2.5_2
|\__ docbook-xml-4.2_1
|\__ libiconv-1.9.2_1
|\__ python-2.3.4_2
|\__ py23-numeric-23.1
|\__ imake-4.4.0
|\__ samba-libsmbclient-3.0.7_1
|\__ png-1.2.6
|\__ pkgconfig-0.15.0_1
|\__ fontconfig-2.2.3,1
|\__ gettext-0.13.1_1
|\__ p5-XML-Parser-2.34_1
|\__ glib-2.4.6_1
|\__ libxml2-2.6.13
|\__ XFree86-libraries-4.4.0_1
|\__ gnomehier-1.0_19
|\__ libusb-0.1.7_1
|\__ popt-1.7
|\__ tiff-3.6.1_2
|\__ libijs-0.35
|\__ libxslt-1.1.10
|\__ libXft-2.1.6
|\__ XFree86-fontEncodings-4.4.0
|\__ shared-mime-info-0.15
|\__ libgnugetopt-1.2
|\__ docbook-xsl-1.65.1
|\__ linc-1.0.3_2
|\__ docbook-sk-4.1.2_3
|\__ startup-notification-0.7
|\__ libwmf-0.2.8.3
|\__ XFree86-fontScalable-4.4.0_1
|\__ libexif-0.5.12_2
|\__ fam-2.6.9_6
|\__ libgphoto2-2.1.4_3
|\__ libaudiofile-0.2.6
|\__ libart_lgpl2-2.3.16
|\__ pango-1.4.1
|\__ libgsf-1.10.1
|\__ lcms-1.13,1
|\__ libmng-1.0.8
|\__ atk-1.6.1
|\__ hicolor-icon-theme-0.5
|\__ intltool-0.31.2
|\__ gtk-2.4.9_1
|\__ libglade2-2.4.0
|\__ gsfonts-8.11_2
|\__ cdparanoia-3.9.8_7
|\__ libIDL-0.8.4
|\__ gtk-engines2-2.2.0_4
|\__ py23-gtk-2.2.0_3
|\__ libgnomecanvas-2.6.1.1
|\__ gail-1.6.6
|\__ libwnck-2.6.2.1_1
|\__ ORBit2-2.10.4
|\__ cups-base-1.1.20.0
|\__ libexif-gtk-0.3.3_2
|\__ libcroco-0.5.1
|\__ gnomemimedata-2.4.1_2
|\__ librsvg2-2.6.5_1
|\__ libbonobo-2.6.2
|\__ gnome-icon-theme-1.2.3
|\__ gconf2-2.6.4
|\__ gnomevfs2-2.6.2_1
|\__ ghostscript-gnu-7.07_11
|\__ esound-0.2.35_1
|\__ scrollkeeper-0.3.14_1,1
|\__ libgnome-2.6.1.2
|\__ libbonoboui-2.6.1
|\__ gnomekeyring-0.2.1_1
|\__ cups-pstoraster-7.07_1
|\__ libgnomeui-2.6.1.1
|\__ gnomedesktop-2.6.2
|\__ gimp-print-4.2.7
|\__ aalib-1.4.r5_1
|\__ gnomepanel-2.6.2_1
|\__ libgtkhtml-2.6.2
  \__ gimp-gnome-2.0.4,1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.sq6k8ymj1taxl4>