From owner-freebsd-hardware Mon Nov 27 18:12:24 2000 Delivered-To: freebsd-hardware@freebsd.org Received: from echunga.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 6587237B4CF; Mon, 27 Nov 2000 18:12:09 -0800 (PST) Received: (from grog@localhost) by echunga.lemis.com (8.11.1/8.9.3) id eAS29Gt36298; Tue, 28 Nov 2000 12:39:16 +1030 (CST) (envelope-from grog) Date: Tue, 28 Nov 2000 12:39:14 +1030 From: Greg Lehey To: Eric Jacoboni Cc: questions@FreeBSD.ORG, hardware@FreeBSD.ORG Subject: Re: Pcmcia adapter for CompactFlash cards and FreeBSD ? Message-ID: <20001128123914.F30795@echunga.lemis.com> References: <874s0tntij.fsf@titine.fr.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <874s0tntij.fsf@titine.fr.eu.org>; from jaco@teaser.fr on Mon, Nov 27, 2000 at 07:45:40PM +0100 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Monday, 27 November 2000 at 19:45:40 +0100, Eric Jacoboni wrote: > Hi, > > I've got a Canon S10 Digital Camera. This model uses CompactFlash I > and II cards to store pictures (as jpeg or tiff files). Canon sells a > Pcmcia adapter to put a CF card. As far i've understood, the card is > viewed as a simple ram card : it's a great thing as there is no need > for further software. Correct. > I wonder if such an adapter would be supported by FBSD : Yes. > if so, what would be the correct entry in pccard.conf ? That's the problem. There may already be one in there, in which case you may need to do nothing. I can't see anything in there with the name Canon, but the card doesn't have to have the Canon name. A typical entry might be like this: # Non-brand Compact Flash Card(32MB) card " " "KCF 32M" config 0x1 "ata" ? If your card isn't recognized, you'll get messages like this in the /var/log/messages: Nov 28 12:25:45 sydney /kernel: pccard: card inserted, slot 1 Nov 28 12:25:51 sydney pccardd[3279]: Card "CL ATA FLASH CARD LEXAR "("TIDALWV") [V1.01] [(null)] has function ID 4 Nov 28 12:25:56 sydney pccardd[3279]: driver allocation failed for (null)((null)): Device not configured In a case like this, you might create a new entry: card "CL ATA FLASH CARD LEXAR " "TIDALWV" config 0x1 "ata" ? This might still fail because of irq conflicts. You can specify a particular irq in place of the ?, for example 9 in this case: card "CL ATA FLASH CARD LEXAR " "TIDALWV" config 0x1 "ata" 9 Now you should get: Nov 28 12:29:50 sydney pccardd[3286]: Card "CL ATA FLASH CARD LEXAR "("TIDALWV") [V1.01] [(null)] matched "CL ATA FLASH CARD LEXAR " ("TIDALWV") [(null)] [(null)] Nov 28 12:29:55 sydney /kernel: ata4 at port 0x260-0x26f irq 9 slot 1 on pccard1 Nov 28 12:30:05 sydney /kernel: ata4-slave: ata_command: timeout waiting for intr Nov 28 12:30:05 sydney /kernel: ata4-slave: identify failed Nov 28 12:30:05 sydney /kernel: ad8: 7MB [251/2/32] at ata4-master using BIOSPIO Nov 28 12:30:05 sydney pccardd[3286]: ata4: CL ATA FLASH CARD LEXAR (TIDALWV) inserted. The device you get depends on what you have configured in the system, but will typically be at least device 4. In this case it's /dev/ad8. Create device nodes: # cd /dev # ./MAKEDEV ad8s1 All compact flash cards I've seen have used slice 1, but you can use fdisk to be sure. To mount the card, # mkdir /camera # mount -t msdos /dev/ad8s1 /camera You can then use normal UNIX commands to manipulate the photos. Don't forget to umount before removing the card. > Éric Jacoboni, né il y a 1278711354 secondes. You're getting younger all the time. Well, no older... Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message