Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 08:21:35 +0930
From:      Greg Lehey <grog@FreeBSD.org>
To:        Bill Schoolcraft <bill@wiliweld.com>
Cc:        FreeBSD Questions <questions@FreeBSD.org>
Subject:   Re: digital camera [CompactFlash Card, it works!!]
Message-ID:  <20010620082135.I58585@wantadilla.lemis.com>
In-Reply-To: <Pine.LNX.4.21.0106190952330.20704-100000@corten8.billschoolcraft.com>; from bill@wiliweld.com on Tue, Jun 19, 2001 at 10:07:11AM -0700
References:  <20010619115409.G58585@wantadilla.lemis.com> <Pine.LNX.4.21.0106190952330.20704-100000@corten8.billschoolcraft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 19 June 2001 at 10:07:11 -0700, Bill Schoolcraft wrote:
> At Tue, 19 Jun 2001 it looks like Greg Lehey composed:
>
>> On Monday, 18 June 2001 at  8:28:49 -0700, Bill Schoolcraft wrote:
>>> At Fri, 18 May 2001 it looks like Greg Lehey composed:
>>>
>>>
>>>> There are various things in the Ports Collection.  I personally use a
>>>> camera with Compact Flash memory (a Nikon CoolPix 880, which I quite
>>>> like).  I insert the CF card into a PCMCIA adaptor and mount it on my
>>>> laptop as an MS-DOS file system.  See
>>>> http://echunga.lemis.com/~grog/diary-nov2000.html, 10 November 2000,
>>>> for more details.
>>>>
>>>> Greg
>>>
>>> Hello Family,
>>>
>>> I was reading the examples at
>>> http://echunga.lemis.com/~grog/diary-nov2000.html and noticed that
>>> the compact flash card was mounted from /dev/ad6s1 and my devices
>>> stop at /dev/ad3*
>>
>> Your "devices" in /dev are just files which tell userland programs how
>> to access the hardware devices.  You can create them or remove them at
>> will.  To create /dev/ad8s1, the one you want, do:
>>
>>  # cd /dev
>>  # ./MAKEDEV ad8s1
>>
>>> I'm using a Toshiba-1715xcds laptop.
>>>
>>> I'm also getting some action in /var/log/messages that's noticing
>>> the card (I think)
>>>
>>> (each line seperated by space)
>>> ###########################################################
>>> Jun 18 07:14:39 laptop pccardd[52]: wi0: Lucent Technologies
>>> (WaveLAN/IEEE) inserted.
>>>
>>> Jun 18 07:14:44 laptop pccardd[52]: Card "SunDisk"("SDP") [5/3
>>> 0.6] [(null)] matched "SunDisk" ("/.*/") [(null)] [(null)]
>>>
>>> Jun 18 07:14:49 laptop /kernel: ata4 at port 0x280-0x28f irq 5
>>> slot 1 on pccard1
>>>
>>> Jun 18 07:14:59 laptop /kernel: ata4-master:
>>> ata_command: timeout waiting for intr
>>>
>>> Jun 18 07:15:00 laptop /kernel: ata4-master: identify failed
>>>
>>> Jun 18 07:14:59 laptop pccardd[52]:  ata4: SunDisk (/.*/)
>>> inserted.
>>>
>>> Jun 18 07:14:59 laptop pccardd[52]: pccardd started
>>> ##########################################################
>>
>> OK, this looks like irq 5 is already in use for something else.  This
>> is a relatively common.  You need to find out which IRQs are free, and
>> which don't conflict with your Orinoco card.
>>
>>> Now this is a triple booted laptop and I've confirmed that the
>>> SanDisk, CompactFlash PC Card Holder works with Linux,
>>
>> Great.  You're more than half way there.
>>
>>> Windows_ME and now the final hurdle is FreeBSD.
>>
>> OK, take a look at the IRQs that Linux assigns to the Orinoco and the
>> CF card.   You can then create or change your /etc/pccard.conf to
>> include the lines (these are in /etc/defaults/pccard.conf):
>>
>>  # Generally available IRQs (Built-in sound-card owners remove 5)
>>  irq	3 5 10 11 13 15
>>
>> Note the comment; I don't trust it too much, but it could be the sound
>> card conflicting.  Change the IRQs to include only the IRQs the system
>> uses in Linux.  Restart pccardd.  That may be all you need to do.  If
>> not, come back and we'll continue.

> Well, that worked. I removed the irq 5, found that Linux was
> giving the CompactFlash irq 9, I didn't have irq 9 in
> /etc/pccard.conf as available irq's so I added it.

Isn't it convenient to have another system running on the machine?

> My biggest question is how did you determine /dev/ad8s1 was the
> device id for that ?

This message:

>>> Jun 18 07:14:59 laptop pccardd[52]:  ata4: SunDisk (/.*/) inserted.

You've got to know the mapping between the controller (here ata4) and
the IDE devices: each controller has two devices, ad(n*2) and
ad(n*2+1), where n is the number of the controller.  So ata4 has
drives ad8 (primary) and ad9 (secondary).  In this case, you only have
the primary.

> In looking at the /dev directory my last closest dev to the one you
> suggested I use was /dev/ad3s4 then it jumped to your successful
> entry of /dev/ad8s1

As I said, the contents of /dev have little to do with what's on your
system.  For example, you don't have a device corresponding with
/dev/ad3.  All that will change with devfs.

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
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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