Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Roland Smith
On Mon, Sep 05, 2005 at 10:36:40AM +0100, Ben Paley wrote:

 Anyone got any idea how I can access the built-in sd card reader on my
 dell inspiron 6000 laptop? 

Is there anything in /var/log/messages? If not, try 'pciconf -lv',
'usbdevs' and 'camcontrol devlist -v' to see if it is on the PCI, USB or
SCSI bus respectively.

If you can't get it to work, the SanDisk SDDR-93 sd card reader is
supposed to work with Linux, so using it with FreeBSD should be possible.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpKtYQjfyM1B.pgp
Description: PGP signature


Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Ben Paley
On Monday 05 September 2005 11:04, Roland Smith wrote:
 On Mon, Sep 05, 2005 at 10:36:40AM +0100, Ben Paley wrote:
  Anyone got any idea how I can access the built-in sd card reader on my
  dell inspiron 6000 laptop?

 Is there anything in /var/log/messages?

Not so far as I can see, nor in dmesg

 If not, try 'pciconf -lv', 

$ pciconf -lv
snip/
[EMAIL PROTECTED]:1:2: class=0x080501 card=0x01881028 chip=0x08221180 rev=0x17 
hdr=0x00
vendor   = 'Ricoh Co Ltd'
device   = 'SD Bus Host Adapter'
class= base peripheral

Is that it?

 'usbdevs

just four empty sockets there

 and 'camcontrol devlist -v' 

Nothing there apart from the optical drive.

 to see if it is on the PCI, USB or  
 SCSI bus respectively.

So, PCI then? How do I go about my kernel config to get it detected?

 If you can't get it to work, the SanDisk SDDR-93 sd card reader is
 supposed to work with Linux, so using it with FreeBSD should be possible.

I can get to the camera with its cable, though it's a bit slow - I just wanted 
the convenience of using the built-in reader, since it's there!

Thanks a lot for your advice
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Roland Smith
On Mon, Sep 05, 2005 at 11:24:33AM +0100, Ben Paley wrote:
 On Monday 05 September 2005 11:04, Roland Smith wrote:
  On Mon, Sep 05, 2005 at 10:36:40AM +0100, Ben Paley wrote:
   Anyone got any idea how I can access the built-in sd card reader on my
   dell inspiron 6000 laptop?
 
  Is there anything in /var/log/messages?
 
 Not so far as I can see, nor in dmesg
 
  If not, try 'pciconf -lv', 
 
 $ pciconf -lv
 snip/
 [EMAIL PROTECTED]:1:2: class=0x080501 card=0x01881028 chip=0x08221180 
 rev=0x17 
 hdr=0x00
 vendor   = 'Ricoh Co Ltd'
 device   = 'SD Bus Host Adapter'
 class= base peripheral
 
 Is that it?

I think so. According to the following page,
http://www.math.ucla.edu/~jimc/insp6000/p-proc.html#sd it is a Ricoh
R5c576A chip. Looking at the Ricoh page for this chip,
http://www.ricoh.com/LSI/product_pcif/pcc/5c576a/ there seems to be no
programming info available.

AFAICT, there is no Linux driver either, but someone seems to be working
on it: http://list.drzeus.cx/pipermail/wbsd-devel/2005-March/000261.html
You could try contacting this person to see how far his efforts have
come, and who the FreeBSD kernel developer is who is working on this.

Roland

-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpFyelBWo4D3.pgp
Description: PGP signature


Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Ben Paley
On Monday 05 September 2005 11:50, Roland Smith wrote:

  $ pciconf -lv
  snip/
  [EMAIL PROTECTED]:1:2: class=0x080501 card=0x01881028 chip=0x08221180 
  rev=0x17
  hdr=0x00
  vendor   = 'Ricoh Co Ltd'
  device   = 'SD Bus Host Adapter'
  class= base peripheral
 
  Is that it?

 I think so. According to the following page,
 http://www.math.ucla.edu/~jimc/insp6000/p-proc.html#sd it is a Ricoh
 R5c576A chip. Looking at the Ricoh page for this chip,
 http://www.ricoh.com/LSI/product_pcif/pcc/5c576a/ there seems to be no
 programming info available.

 AFAICT, there is no Linux driver either, but someone seems to be working
 on it: http://list.drzeus.cx/pipermail/wbsd-devel/2005-March/000261.html
 You could try contacting this person to see how far his efforts have
 come, and who the FreeBSD kernel developer is who is working on this.

Thanks a lot for your advice - I shall follow it, even if it is slightly 
dispiriting. Perhaps I should learn C properly and start writing some 
drivers... :-)

Cheers,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Ben Paley
...PS - 
Thanks not just for your advice, but for putting in the effort to find this 
stuff out - I wouldn't have known where to start!

Thanks,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Roland Smith
On Mon, Sep 05, 2005 at 03:26:22PM +0100, Ben Paley wrote:
   Is that it?
 
  I think so. According to the following page,
  http://www.math.ucla.edu/~jimc/insp6000/p-proc.html#sd it is a Ricoh
  R5c576A chip. Looking at the Ricoh page for this chip,
  http://www.ricoh.com/LSI/product_pcif/pcc/5c576a/ there seems to be no
  programming info available.
 
  AFAICT, there is no Linux driver either, but someone seems to be working
  on it: http://list.drzeus.cx/pipermail/wbsd-devel/2005-March/000261.html
  You could try contacting this person to see how far his efforts have
  come, and who the FreeBSD kernel developer is who is working on this.
 
 Thanks a lot for your advice - I shall follow it, even if it is slightly 
 dispiriting. Perhaps I should learn C properly and start writing some 
 drivers... :-)

Not that I want to discourage you, but that seems like a tall
order. Apart from knowing C, you'd have to get familiar with the FreeBSD
kernel and writing device drivers.

I guess a driver for an SD card reader should be similar to the USB
umass(4) driver. It should also handle disks by using the CAM transport
layer and da(4) devices.

If you are serious about writing a driver, I would recommend reading
The Design and Implementation of the FreeBSD Operating System by
McKusick and Neville-Neil.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgp16A3fSGmbP.pgp
Description: PGP signature


Re: Internal SD card reader, Dell laptop

2005-09-05 Thread Ben Paley
On Monday 05 September 2005 17:03, Roland Smith wrote:

  Thanks a lot for your advice - I shall follow it, even if it is slightly
  dispiriting. Perhaps I should learn C properly and start writing some
  drivers... :-)

 Not that I want to discourage you, but that seems like a tall
 order. Apart from knowing C, you'd have to get familiar with the FreeBSD
 kernel and writing device drivers.

I'm not entirely serious - that is, it's certainly the Right Thing To Do, but 
I know my limitations as a programmer! Perhaps I'll start with something 
simpler.

 If you are serious about writing a driver, I would recommend reading
 The Design and Implementation of the FreeBSD Operating System by
 McKusick and Neville-Neil.

Good advice, once again! Thanks very much.

Cheers,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]