From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 15:25:00 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 7C05A16A4CE for ; Sat, 12 Mar 2005 15:25:00 +0000 (GMT) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.FreeBSD.org (Postfix) with SMTP id BFBF043D5D for ; Sat, 12 Mar 2005 15:24:59 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 17244 invoked from network); 12 Mar 2005 15:24:57 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 12 Mar 2005 15:24:57 -0000 X-pair-Authenticated: 200.115.214.28 Date: Sat, 12 Mar 2005 12:25:40 -0300 From: Alejandro Pulver To: Rob Message-ID: <20050312122540.46c48b06@ale.varnet.bsd> In-Reply-To: <20050312080023.89612.qmail@web54010.mail.yahoo.com> References: <20050312080023.89612.qmail@web54010.mail.yahoo.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: FreeBSD questions Subject: Re: 5.3: scbus & da in kernel config, umass as module: but no /dev/da* ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 15:25:00 -0000 On Sat, 12 Mar 2005 00:00:23 -0800 (PST) Rob wrote: > Alejandro Pulver wrote: > > Rob wrote: > >> > >>I'm running FreeBSD 5.3. > >>I have following in my kernel config: > >> > >> device scbus > >> device da > >> device uhci > >> device usb > >> > >>hoping that this provides enough 'basic' usb > >>support for my usb-memory-stick. Indeed, I can > >>load the umass module. > >> > >>If I'm not wrong, I must do following to access the > >>usb-memory-stick: > >> mount -t msdosfs /dev/da0s1 /mnt > >> > >>but there's no /dev/da* device. > > > > Hello, > > > > I have a camera that is detected as an 'umass' > > storage device, and it appears as '/dev/da0' > > (strangely I can use it as a common storage > > device). This is my configuration: > > > > kernel options: > > > > device scbus > > device da > > device pass > > device uhci > > device ohci > > device usb > > device umass > > device ehci > > > > '/etc/rc.conf' options: > > > > usbd_enable="YES" > > > > To test it you can: > > > > 1) Check the devices in '/dev/daX'. > > 2) # camcontrol devlist > > 3) Check the boot messages (umass and da) and > > the messages printed when you plug the device. > > > > To mount it you have to select a slice (if it has > > data stored in): > > > > mount -t msdosfs /dev/da0s1 /mnt > > I do not have the cam device in the kernel config. > Do I have to? I also don't have umass in the > kernel config either, but I load that as a module > later; is that OK? > > Problem is that I do not have any /dev/da* devices, > with or without my memory stick in the usb port. > > I load umass module into the kernel, and then plug > the memory stick into the usb port. The console > gets then: > > umass0: EXATEL , Inc. I-BEAD Multi Player, rev > 1.10/0.01, addr 2 > umass0: Get Max Lun not supported (STALLED) > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access > SCSI-4 device > da0: 1.000MB/s transfers > da0: 122MB (249856 512 byte sectors: 64H 32S/T 122C) > umass0: BBB reset failed, STALLED > umass0: BBB bulk-in clear stall failed, STALLED > umass0: BBB bulk-out clear stall failed, STALLED > [...last three lines repeated every minute or so...] > > > What does the "STALLED" mean here? > Is that critical? The "usbdevs -v" reports now: > > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI > root hub(0x0000), Intel(0x0000), rev 1.00 > port 1 powered > port 2 addr 2: full speed, self powered, config 1, > i-Bead 100 MP3 Player(0x8008), Sigmatel(0x066f), > rev 0.01 > > But I have no /dev/da0 : > > # ls /dev/da* > ls: No match. > > So, the memory stick is detected at the USB port, > but I don't have the /dev/da* devices to mount the > memory stick (although devices da and scbus are in > my kernel config!). > When I remove the memory stick, I get following in > the console: > > umass0: at uhub0 port 2 (addr 2) disconnected > (da0:umass-sim0:0:0:0): lost device > (da0:umass-sim0:0:0:0): removing device entry > Opened disk da0 -> 5 > umass0: detached > > > What am I doing wrong? > > Thanks, > Rob. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Hello, I think your configuration is fine. I guess the problem is with the driver or maybe it needs some extra configuration. Your device is detected: umass0: EXATEL , Inc. I-BEAD Multi Player, rev 1.10/0.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 1.000MB/s transfers da0: 122MB (249856 512 byte sectors: 64H 32S/T 122C) I think the source of the problem are these lines: umass0: Get Max Lun not supported (STALLED) umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED [...last three lines repeated every minute or so...] I do not know how to solve this, but perhaps someone will answer you in the 'freebsd-usb@freebsd.org' list. Do not forget to provide the following information: 1) messages reported when booting/plugging/unplugging/ 2) # camcontrol devlist 3) # usbdevfs -v 4) error messages (STALLED) 5) FreeBSD version and kernel options related to USB Best Regards, Ale