From owner-freebsd-stable@FreeBSD.ORG Fri Oct 24 13:34:07 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE8EA106569C for ; Fri, 24 Oct 2008 13:34:07 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 95D548FC30 for ; Fri, 24 Oct 2008 13:34:07 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 77351730A8; Fri, 24 Oct 2008 15:28:36 +0200 (CEST) Date: Fri, 24 Oct 2008 15:28:36 +0200 From: Luigi Rizzo To: stable@freebsd.org Message-ID: <20081024132836.GA61461@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: sd media attach problems (da/usb related) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 13:34:07 -0000 I have a multifunction printer (EPSON DX7000 series for what matters) with an SD/CF reader in it. FreeBSD 7 correctly recognises the media (creating the entries /dev/da0 and /dev/da0s1) if the media is inserted before the printer is powered on (or the USB cable is plugged in), but it doesn't see the media if i insert it _after_ connecting the USB cable (or turning on the printer, again). What happens without media is that /dev/da0 is created when the USB is connected, but then reading from the device fails and no events are reported even after inserting the media. If I do a 'camcontrol rescan 0' then I see the following into syslog: Oct 24 15:11:00 bsd7 kernel: cam_periph_alloc: attempt to re-allocate valid device pass0 rejected Oct 24 15:11:00 bsd7 kernel: passasync: Unable to attach new device due to status 0x6: CCB request was invalid Oct 24 15:11:00 bsd7 kernel: cam_periph_alloc: attempt to re-allocate valid device da0 rejected Oct 24 15:11:00 bsd7 kernel: daasync: Unable to attach to new device due to status 0x6 and /dev/da0s1 is not created. /dev/da0 does produce valid output (so e.g. fdisk da0 gives me the various partitions) but of course i cannot mount it. Is there any command that i can use to either rescan the entries in the disk, or (perhaps too crude, though) rescan the usb bus ? cheers luigi