Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 12:39:14 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Eric Jacoboni <jaco@teaser.fr>
Cc:        questions@FreeBSD.ORG, hardware@FreeBSD.ORG
Subject:   Re: Pcmcia adapter for CompactFlash cards and FreeBSD ?
Message-ID:  <20001128123914.F30795@echunga.lemis.com>
In-Reply-To: <874s0tntij.fsf@titine.fr.eu.org>; from jaco@teaser.fr on Mon, Nov 27, 2000 at 07:45:40PM %2B0100
References:  <874s0tntij.fsf@titine.fr.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <LEXAR ATA FLASH> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001128123914.F30795>