[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using an SD-card



Greets Bram,

On Tue, Aug 17, 2004 at 02:15:42PM +0200, Bram Mertens wrote:
> Hi
> 
> I woudl like to mount my SD-card on my Medion MD41300.  According to
> lspci the card reader is a Texas Instruments PCI7420 Flash Media
> Controller.

I have a SanDisk Cruzer reader, and I have a 32MB, 128MB and 512MB
successfully. In fact, I have a encrypted loopback ext2 filesystem created
on the 32MB.

> When I insert or remove the card dmesg show nothing.
> 
> Searching with google shows a lot of questions/answers about USB-memory
> cards but this a Secure Digital card (to use in my Palm m500).

A couple of questions. Do you compile your own kernel? I have been able to
mount it on a system I built last week with the base install and a limited
number of debs (its going to be a firewall). This box, at the moment, only
has a default kernel installed.  


Do you have any indicators on the card reader> Do they light up when you
plug it in? Do you have other USB devices and do they work?

You need, at a minimum, the following enabled in your kernel:

CONFIG_SCSI
CONFIG_BLK_DEV_SD
CONFIG_USB
CONFIG_USB_DEVICEFS
CONFIG_USB_EHCI_HCD (for USB 2.0)
CONFIG_USB_OHCI_HCD and/or CONFIG_USB_UHCI_HCD (USB 1.1)
CONFIG_USB_STORAGE
CONFIG_VFAT_FS

I believe these are all the kernel parameters that need to be set (either
module or inline should work). When I plugged the card into the
firewall-to-be, I got the following:

Aug 17 23:02:42 localhost kernel: usb 1-1: new full speed USB device using
address 2
Aug 17 23:02:45 localhost kernel: SCSI subsystem initialized
Aug 17 23:02:45 localhost kernel: Initializing USB Mass Storage driver...
Aug 17 23:02:46 localhost kernel: scsi0 : SCSI emulation for USB Mass
Storage devices
Aug 17 23:02:46 localhost kernel:   Vendor: SanDisk   Model: Cruzer
Rev: 2.00
Aug 17 23:02:46 localhost kernel:   Type:   Direct-Access
ANSI SCSI revision: 02
Aug 17 23:02:46 localhost usb.agent[2662]:      usb-storage: loaded
successfully
Aug 17 23:02:46 localhost kernel: USB Mass Storage device found at 2
Aug 17 23:02:46 localhost kernel: usbcore: registered new driver
usb-storage
Aug 17 23:02:46 localhost kernel: USB Mass Storage support registered.
Aug 17 23:02:47 localhost scsi.agent[2695]: disk at
/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0
Aug 17 23:02:47 localhost kernel: SCSI device sda: 990976 512-byte hdwr
sectors (507 MB)
Aug 17 23:02:47 localhost kernel: sda: assuming Write Enabled
Aug 17 23:02:47 localhost kernel: sda: assuming drive cache: write through
Aug 17 23:02:47 localhost kernel:  /dev/scsi/host0/bus0/target0/lun0: p1
Aug 17 23:02:47 localhost kernel: Attached scsi removable disk sda at
scsi0, channel 0, id 0, lun 0

HTH,
--Brad

Have you tried mounting it as /dev/sda1 (if you have 

> Any hints on mounting this card?
> 
> TIA
> -- 
> # Mertens Bram "M8ram"   <bram-mertens@linux.be>   Linux User #349737 #
> # SuSE Linux 8.2 (i586)     kernel 2.4.20-4GB      i686     512MB RAM #
> #  2:07pm  up 10 days  3:57,  7 users,  load average: 0.36, 0.21, 0.15 #
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: