From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 7 01:11:01 2005 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 944F816A41C for ; Thu, 7 Jul 2005 01:11:01 +0000 (GMT) (envelope-from robbak@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3047E43D46 for ; Thu, 7 Jul 2005 01:11:00 +0000 (GMT) (envelope-from robbak@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so91623wra for ; Wed, 06 Jul 2005 18:11:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jMHqi5ApBeqOfwb6vDuLVSS+LEiyos/9S9eJyw6+GYWusH5ahk74MQNzQ3RnUO4u8kuFpnkucWZcnlcWJZLbIwwfEKytihOcGk846Hikl+TIexfLZZr5673rSDcUlPyQiMTCcGIkw36E454xUKAqmURQzVKFMVoW2gq9cOTf/bQ= Received: by 10.54.29.10 with SMTP id c10mr268017wrc; Wed, 06 Jul 2005 18:03:56 -0700 (PDT) Received: by 10.54.128.12 with HTTP; Wed, 6 Jul 2005 18:03:56 -0700 (PDT) Message-ID: Date: Thu, 7 Jul 2005 11:03:56 +1000 From: Robert Backhaus To: KAYVEN RIESE In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: freeBSD bugs mailing list Subject: Re: can't see SD card X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Robert Backhaus List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 01:11:01 -0000 Thanks for the background. On 7/7/05, KAYVEN RIESE wrote: > basically.. i can't see my SD card that came with the > puter. my camera died but the two SD cards with my > latest fotos on it should be able to be read by freeBSD, > in that they fit nicely into my hardware. >=20 >=20 > here is the result of the command "usbdevs" >=20 > Path: /home/kayve <~~~~~~ .login i have uses a two line prompt.. this > is line one > (root@www) 103> usbdevs <~~~~~second line of prompt and the command >=20 > addr 1: UHCI root hub, Intel <~~~~~~~~output starts here > addr 1: UHCI root hub, Intel > addr 2: Resolution 400/600/800 Changeable Combo Mouse, ACROX > addr 1: UHCI root hub, Intel > addr 1: EHCI root hub, Intel >=20 > <---end of output-----> OK, big hint: I see not card reader device. >=20 >=20 > next i was told to do the command "pciconf -l -v" > and i did, and selected out "class =3D mass storage" >=20 > i did thatmanually, here is the result >=20 >=20 > atapci0@pci0:31:1: class=3D0x01018a card=3D0x18691043 chip=3D0x24ca8= 086 > rev=3D0x03 > hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D '82801DBM (ICH4-M) UltraATA/100 EIDE Controller' > class =3D mass storage > subclass =3D ATA > none0@pci0:31:5: class=3D0x040100 card=3D0x17131043 chip=3D0x24c58= 086 > rev=3D0x03 > hdr=3D0x00 Again: no card reader >=20 > i was told i am hosed. >=20 >=20 > Path: /home/kayve > (kayve@kayvetop) 101> su > Password: <~~~~ becoming superuser >=20 > kayvetop# sysctl kern.disks kern.rootdev <~~~ prompt =3D "kayvetop#" > kern.disks: ad0 > kern.rootdev: ad0s2a > kayvetop# >=20 >=20 > kayvetop# grep "o d" /var/run/dmesg.boot > pci1: at device 0.0 (no driver attached) > pci2: at device 2.0 (no driver attached) > pci0: at device 31.5 (no driver attached) > pci0: at device 31.6 (no driver attached) > pci1: at device 0.0 (no driver attached) > pci0: at device 29.7 (no driver attached) > pci2: at device 2.0 (no driver attached) > pci0: at device 31.5 (no driver attached) > pci0: at device 31.6 (no driver attached) > kayvetop# >=20 > kayvetop# ls /dev/ > acd0 consolectl lpt0.ctl ptyp6 ttyv4 > acpi ctty mdctl random ttyv5 > ad0 cuaa0 mem stderr ttyv6 > ad0s1 cuaia0 net stdin ttyv7 > ad0s1a cuala0 net1 stdout ttyv8 > ad0s1c devctl net2 sysmouse ttyv9 > ad0s2 devstat net3 ttyd0 ttyva > ad0s2a fd net4 ttyid0 ttyvb > ad0s2c fido network ttyld0 ttyvc > ad0s3 fw0 nfs4 ttyp0 ttyvd > ad0s3b fw0.0 null ttyp1 ttyve > ad0s3c fwmem0 pci ttyp2 ttyvf > ad0s4 fwmem0.0 ppi0 ttyp3 ums0 > agpgart geom.ctl psm0 ttyp4 urandom > apm io ptyp0 ttyp5 usb > ata kbd0 ptyp1 ttyp6 usb0 > atkbd0 klog ptyp2 ttyv0 usb1 > bpf0 kmem ptyp3 ttyv1 usb2 > bpsm0 log ptyp4 ttyv2 xpt0 > console lpt0 ptyp5 ttyv3 zero > kayvetop# >=20 Nope, nothing there either. So, a little _more_ background is required How are you trying to read this SD card? Are you using a USB card reader, or is an inbuilt one? (in my experience, even inbuilt readers are connected to USB) What happens when you plug it in? Basic stuff, but we need to know it. The device name you are looking for should be _umass_. Here's plugging in a card reader on my system Jul 7 10:52:42 computer9 kernel: umass0: SanDisk ImageMate 8 in 1, rev 2.00/91.39, addr 2 Jul 7 10:52:43 computer9 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Jul 7 10:52:43 computer9 kernel: da0: Removable Direct Access SCSI-0 device Jul 7 10:52:43 computer9 kernel: da0: 1.000MB/s transfers Jul 7 10:52:43 computer9 kernel: da0: Attempt to query device size failed: NOT READY, Medium not present Jul 7 10:52:43 computer9 kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 Jul 7 10:52:43 computer9 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jul 7 10:52:43 computer9 kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jul 7 10:52:43 computer9 kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,= 0 Jul 7 10:52:43 computer9 kernel: (da0:umass-sim0:0:0:0): Medium not presen= t Jul 7 10:52:43 computer9 kernel: (da0:umass-sim0:0:0:0): Unretryable error Jul 7 10:52:43 computer9 kernel: Opened disk da0 -> 6 Followed by failed attempts to query the cards that are not in any of the other slots. I'd expect something similar. A seperate /dev/da{n} device appears for each slot in the reader. At least it did for me. Nothing happens when you add a SD card. However, you will be able to query it with fdisk ("fsidk /dev/da2" worked when I added a SD card.) Before I could mount it, I had to convince the system to take another look. "true > /dev/da2" has been suggested, and worked for me. Then I could "mount -t msdos /dev/da2s1 /mnt", examine the files, umount it, and remove it. I hope this helps you find out what is happening your end.