From owner-freebsd-questions@FreeBSD.ORG Sat Jan 1 17:53:07 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B989916A4CE for ; Sat, 1 Jan 2005 17:53:07 +0000 (GMT) Received: from out008.verizon.net (out008pub.verizon.net [206.46.170.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FFA943D3F for ; Sat, 1 Jan 2005 17:53:07 +0000 (GMT) (envelope-from leblanc@keyslapper.org) Received: from keyslapper.org ([68.163.177.192]) by out008.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050101175306.JYEX17379.out008.verizon.net@keyslapper.org> for ; Sat, 1 Jan 2005 11:53:06 -0600 Received: by keyslapper.org (Postfix, from userid 1001) id B3DF71173E; Sat, 1 Jan 2005 12:53:05 -0500 (EST) Date: Sat, 1 Jan 2005 12:53:05 -0500 From: Louis LeBlanc To: FreeBSD Message-ID: <20050101175305.GA45452@keyslapper.org> Mail-Followup-To: FreeBSD References: <1104600165.85905.2.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1104600165.85905.2.camel@localhost> User-Agent: Mutt/1.5.6i X-Authentication-Info: Submitted using SMTP AUTH at out008.verizon.net from [68.163.177.192] at Sat, 1 Jan 2005 11:53:06 -0600 Subject: Re: Problems with digital camera X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 17:53:07 -0000 On 01/01/05 12:22 PM, Trey Sizemore sat at the `puter and typed: > Hoping that someone can see what I may be overlooking. I've got a Nikon > CoolPix 885 that I'm attempting to connect to my FreeBSD 5.3-RELEASE > machine via it's USB connector to a D-Link 7-port USB hub. The hub > itself is connected via one of two USB ports on the tower. I have the > following in /boot/loader.conf: > > > ________________________________________________________________ > salamander# cat /boot/loader.conf > snd_emu10k1_load="YES" > usb_load="YES" # USB support > ums_load="YES" # USB mouse > umass_load="YES" # USB Zip 100 drive Or Camera > ________________________________________________________________ > > > and the following in my /etc/rc.conf: > > > ________________________________________________________________ > salamander# cat /etc/rc.conf > # -- sysinstall generated deltas -- # Mon Dec 6 13:36:23 2004 > # Created: Mon Dec 6 13:36:23 2004 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > hostname="salamander.thesizemores.net" > ifconfig_vr0="DHCP" > linux_enable="YES" > moused_enable="YES" > usbd_enable="YES" > sendmail_enable="YES" > sendmail_flags="-bd" > sendmail_pidfile="/var/spool/postfix/pid/master.pid" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" > sendmail_msp_queue_enable="NO" > devfs_system_ruleset="local_ruleset" > ________________________________________________________________ > > > and this in a /etc/devfs.rules file that I created per another post I > saw on the forum: > > > ________________________________________________________________ > [local_ruleset=10] > add path 'ugen*' mode 664 > ________________________________________________________________ > > > The following lines appear in my /sys/i386/conf/GENERIC file (this is > out-of-the-box, I have not recompiled the kernel since initial install): > > > ________________________________________________________________ > # USB support > device uhci # UHCI PCI->USB interface > device ohci # OHCI PCI->USB interface > device usb # USB Bus (required) > #device udbp # USB Double Bulk Pipe devices > device ugen # Generic > device uhid # "Human Interface Devices" > device ukbd # Keyboard > device ulpt # Printer > device umass # Disks/Mass storage - Requires scbus and da > device ums # Mouse > device urio # Diamond Rio 500 MP3 player > device uscanner # Scanners > > # SCSI peripherals > device scbus # SCSI bus (required for SCSI) > device ch # SCSI media changers > device da # Direct Access (disks) > device sa # Sequential Access (tape etc) > device cd # CD > device pass # Passthrough device (direct SCSI access) > device ses # SCSI Environmental Services (and SAF-TE) > > ________________________________________________________________ > > > However, when I connect my camera via the USB connector and turn it on, > I get no messages in dmesg and usbdevs shows > > > ________________________________________________________________ > salamander# usbdevs > addr 1: UHCI root hub, VIA > addr 1: UHCI root hub, VIA > addr 1: UHCI root hub, VIA > ________________________________________________________________ > > > What have I missed? I assumed with the latter configured as I've > outlined, I should be able to have the camera plugged in on a running > system, see it detected, and then mount. Later I could add an entry to > fstab for the device to make this a little easier. I have that same model. I never bothered to try hooking it directly to the USB port. The camera uses CompactFlash cards, so I picked up a SanDisk USB reader (Sandisk PN: SDDR-31) and hooked it to the USB port. All I needed in the kernel config was the umass device, which it sounds like you already have. Then I just mount the inserted card as a dos partition (usually /dev/da0s1) and I can move pics to my filesystem (mv, not cp). This cleans out the card and preserves the timestamp on the file, so I don't have to otherwise mar my pic with an auto date label to know when I took it. Another advantage, is you can buy a couple cards, and the camera isn't tied down for the upload. What may (or may not) be related, is that I have to have the reader mounted prior to boot, or the /dev/da0 device doesn't show in the /dev partition. When the card in inserted, it's detected and the /dev/da0s1 device appears. There may be a way to get the USB device to rescan, but I'm not that fluent with USB. I had the same setup on FreeBSD versions, 4.8, 4.9, 4.10, and now 5.3 RELEASE. Works like a charm. And yes, I bought mine way back when it cost a good months rent :| Good luck. Lou -- Louis LeBlanc FreeBSD@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Serocki's Stricture: Marriage is always a bachelor's last option.