Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2004 10:15:46 +1000
From:      Jason Oakley <waulok@bangrocks.com>
To:        Scott Mitchell <scott+freebsd@fishballoon.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mounting a multicard reader (FBSD)
Message-ID:  <6.1.0.6.0.20040620101525.01c1e458@mail.bangrocks.com>
In-Reply-To: <20040619153131.GA462@tuatara.fishballoon.org>
References:  <6.1.0.6.0.20040619191803.01dafa20@mail.bangrocks.com> <200406190745.29010.algould@datawok.com> <20040619153131.GA462@tuatara.fishballoon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Fantastic! Thanks, Scott!
That did the trick!

At 01:31 AM 20/06/2004, you wrote:
>What does 'camcontrol devlist' say?  Probably it will just list one device
>(da0) that - as you've found - corresponds with the CF slot on your card
>reader.  The other slots are probably mapped to other LUNs (Logical Unit
>Numbers) on the same SCSI device number.  The CAM framework only probes LUN
>0 by default, so you only see the first slot.  For example, when my machine
>boots, I have:
>
># camcontrol devlist
><DMI MultiFlash 3.00>              at scbus2 target 0 lun 0 (pass0,da4)
>
>which happens to by the SD/MMC slot on my four-slot reader.  To make the
>other slots visible I do:
>
># camcontrol rescan 2:0:1
># camcontrol rescan 2:0:2
># camcontrol rescan 2:0:3
># camcontrol devlist
><DMI MultiFlash 3.00>              at scbus2 target 0 lun 0 (pass0,da4)
><DMI MultiFlash 3.00>              at scbus2 target 0 lun 1 (da5,pass1)
><DMI MultiFlash 3.00>              at scbus2 target 0 lun 2 (da6,pass2)
><DMI MultiFlash 3.00>              at scbus2 target 0 lun 3 (da7,pass3)
>
>where the '2' and '0' come from the 'scbus' and 'target' parts of the
>devlist output - these will probably be different for your system.  So now
>I have da{5,6,7} corresponding to the SmartMedia, CF and Memory Stick slots
>on my reader.
>
>I actually have all those 'camcontrol rescan' commands in my /etc/usbd.conf
>file, so everything is set up automatically when the reader is detected.
>You might also want to look into using the automounter to avoid having to
>mount things manually - it's pretty convenient to be able to plug in a card
>then just 'cd /flash/cf' (or whatever) to access it.  Dan Pelleg wrote a
>pretty good article about this on DaemonNews last year:
>
>http://ezine.daemonnews.org/200305/cfmount.html
>
>Hope that's some help to you,
>
>         Scott

---------------------------------------------------------------------------------
http://www.bangrocks.com/ - http://www.auspug.org/

http://www.ZigZagSoft.com/ - PalmOS Software and "Palm Games Programming" forum




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