From owner-freebsd-questions@FreeBSD.ORG Sat Feb 6 15:11:13 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F11A7106566B for ; Sat, 6 Feb 2010 15:11:13 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from relay.pcl-ipout02.plus.net (relay.pcl-ipout02.plus.net [212.159.7.100]) by mx1.freebsd.org (Postfix) with ESMTP id 8E06E8FC08 for ; Sat, 6 Feb 2010 15:11:13 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAMsVbUvUnw4U/2dsb2JhbADVSYRUBA Received: from pih-relay08.plus.net ([212.159.14.20]) by relay.pcl-ipout02.plus.net with ESMTP; 06 Feb 2010 15:11:12 +0000 Received: from [84.92.153.232] (helo=curlew.milibyte.co.uk) by pih-relay08.plus.net with esmtp (Exim) id 1NdmJU-0008I7-1k for freebsd-questions@freebsd.org; Sat, 06 Feb 2010 15:11:12 +0000 Received: by curlew.milibyte.co.uk with local (Exim 4.71) (envelope-from ) id 1NdmJT-0000UO-Nu for freebsd-questions@freebsd.org; Sat, 06 Feb 2010 15:11:11 +0000 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Sat, 6 Feb 2010 15:11:11 +0000 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002061511.11639.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-Plusnet-Relay: fd7eb20ca7f4e231397e4acbaecc9e46 Subject: Detecting cards in USB card reader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2010 15:11:14 -0000 In an attempt to get round the problem that my Olympus C-2040Z camera won't communicate with FreeBSD versions above 6.4 I've installed an Akasa AK-ICR-01B internal card reader on my 8.0-RELEASE-p2 system. The reader is detected when the system boots and device nodes are created for da0, da1, da2 and da3. If a card is inserted before booting the computer it is detected and the appropriate device node is created (e.g. /dev/da0s1) but subsequently inserting a card into a slot which was empty fails to create the appropriate device. Playing around with camcontrol and restarting devd have no effect either. After a bit of Googling I found that 'cat /dev/null > /dev/da0' appears to be the fix for forcing the creation of /dev/da0s1 after inserting a card in the slot associated with da0. Although this gets round the problem I can't help feeling uncomfortable about attempting to write to raw devices and was wondering if there was any suitable usbconfig or HAL incantation which could be used to achieve the desired effect in a safer looking way. -- Mike Clarke