From owner-freebsd-questions Tue Jan 8 2:28:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from femail32.sdc1.sfba.home.com (femail32.sdc1.sfba.home.com [24.254.60.22]) by hub.freebsd.org (Postfix) with ESMTP id 5CC9537B400 for ; Tue, 8 Jan 2002 02:28:08 -0800 (PST) Received: from edgemaster.zombie.org ([65.10.134.214]) by femail32.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020108102803.TWVA2213.femail32.sdc1.sfba.home.com@edgemaster.zombie.org>; Tue, 8 Jan 2002 02:28:03 -0800 Received: by edgemaster.zombie.org (Postfix, from userid 1001) id 9B0E066B04; Tue, 8 Jan 2002 04:27:51 -0600 (CST) Date: Tue, 8 Jan 2002 04:27:51 -0600 From: Sean Kelly To: Peter McGarvey Cc: questions@freebsd.org Subject: Re: Digital Camera Question Message-ID: <20020108042751.A12125@edgemaster.zombie.org> References: <20020107233637.A3585@edgemaster.zombie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from pmcgarvey@vianetworks.co.uk on Tue, Jan 08, 2002 at 08:44:00AM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 08, 2002 at 08:44:00AM +0000, Peter McGarvey wrote: > On Tuesday 08 January 2002 05:36 am, Sean Kelly wrote: > > For Christmas, I received a Canon PowerShot S110 camera. It is a nice > > little camera, but I've got a problem. I'm sure you can guess what it > > is. > > > > How do I use this thing with FreeBSD? =2E.. > I've got a Canon Digital IXUS 300. Initially I couldn't get s10sh to wor= k=20 > either. I managed to get it to work by hacking the source code. >=20 > It seems that the author had momentarily forgotten how to count in Hex,= =20 > with 0x3050 comming after 0x3049. Running in debug mode told my the=20 > actual Product ID of my camera (0x304D). And once I knew this it was=20 > fairly simple to get something that worked. My problem appears to be worse: edgemaster# usbdevs -v Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 0x0= 100 port 1 powered port 2 addr 2: self powered, config 1, PowerShot S110(0x3051), Canon Inc.(= 0x04a9), rev 0x0001 edgemaster# s10sh -D -u DEBUG mode enabled USB mode enabled S10sh -- version 0.2.0 Copyright (C) 2000-2001 by Salvatore Sanfilippo S10sh is FREE SOFTWARE under the terms of the GNU public license usb_set_debug: Setting debugging level to 1 (on) Camera not found, please press the shot button and check that the camera is in PC mode, then retry edgemaster# My problem appears to be here in usb.c: int USB_camera_init(struct usb_device **camera_dev) { =2E.. for (bus =3D usb_busses; bus; bus =3D bus->next) { for (dev =3D bus->devices; dev; dev =3D dev->next) { =2E.. That second 'for' never goes. The outer for loops once, but the conditions never arise for the inner for loop to go. Since usbdevs -v shows stuff, my only conclusion is that libusb is broken. And in fact, I ran one of the test programs with libusb and it also found nothing. Unfortunately playing with libusb is starting to get a bit out of my league... :( uhci0: port 0xc400-0xc41f irq 9 at device 7.2 o= n pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xc800-0xc81f irq 9 at device 7.3 o= n pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered Any assistance anybody could offer would be greatly appreciated. Thanks again, --=20 Sean Kelly | PGP KeyID: 77042C7B smkelly@zombie.org | http://www.zombie.org For PGP key, send e-mail with subject "send pgp key" --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8Osmn2aukpHcELHsRAi4KAJ9uixmvQX2QuHbobeWWblsWlFgmFwCdGNGe bCOcEjQYUxJPlbtnIPdhT8A= =4w+R -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message