SD card support

Hello,

I'm trying to use a SD Card with an internal reader, but i'm having some problems.

Right after boot, dmesg say:
Code:
pci0: <base peripheral, SD host controller> at device 30.0 (no driver attached)
pci0: <base peripheral, SD host controller> at device 30.1 (no driver attached)

Then after,
Code:
kldload mmc
kldload mmcsd
kldload sdhci

dmesg say:
Code:
sdhci0: <Generic SD HCI> mem 0xd8014400-0xd80144ff irq 22 at device 30.0 on pci0
sdhci0: 1 slot(s) allocated
sdhci0: [ITHREAD]
sdhci1: <Generic SD HCI> mem 0xd8014800-0xd80148ff irq 20 at device 30.1 on pci0
sdhci1: 1 slot(s) allocated
sdhci1: [ITHREAD]

and after i've inserted the SD card it say:
Code:
mmc0: <MMC/SD bus> on sdhci1

But nothing appears under /dev :(

pciconf:
Code:
sdhci0@pci0:0:30:0:	class=0x080501 card=0x81198086 chip=0x811c8086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = base peripheral
    subclass   = SD host controller
sdhci1@pci0:0:30:1:	class=0x080501 card=0x81198086 chip=0x811d8086 rev=0x07 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = base peripheral
    subclass   = SD host controller

I'm running FreeBSD 7.2-RELEASE-p4. My Chipset is Intel US15W SCH.

Any ideas?
Thanks,
Tobé
 
tobe, add these modules load to /boot/loader.conf and boot with verbose kernel messages enabled and card inserted. Send me (mav@FreeBSD.org) full resulted dmesg log. Include messages when you removing/inserting card.
Also you may set hw.sdhci.debug and hw.mmc.debug to get more information.
 
Hi all,
I've made the same steps like tobe and dmesg said:

Code:
sdhci0: <RICOH R5C822 SD> mem 0xd0001b00-0xd0001bff irq 22 at device 9.1 on pci134
sdhci0: 1 slot(s) allocated
sdhci0: [ITHREAD]

pciconf -lv
Code:
sdhci0@pci0:134:9:1:    class=0x080500 card=0x30e7103c chip=0x08221180 rev=0x25 hdr=0x00
    vendor     = 'Ricoh Company, Ltd.'
    device     = 'SDA Standard Compliant SD Host Controller (R5C832, R5C843)'
    class      = base peripheral
    subclass   = SD host controller
none2@pci0:134:9:2:     class=0x088000 card=0x30e7103c chip=0x08431180 rev=0x14 hdr=0x00
    vendor     = 'Ricoh Company, Ltd.'
    device     = 'Ricoh SD/MMC Host Controller (R5C853)'
    class      = base peripheral

Do you have any ideas? Thx
 
I've forgotten to write the point of my problem. If I insert SD card (tested a few types), it'll write nothing news to a log file.
 
@mav sd card support also stopped working for me in CURRENT.
ATM I have no access to the box, but nothing showed up in dmesg when I insert a card.
I hardly use sd cards, so I can't tell when it stopped working. All I can say is that it worked with 8-CURRENT in Nov 2008. We had a longer thread about it on mobile@.

I should find the time to get you some more information during the next days.
 
Code:
bobagem# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=240 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=240 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB))
    start 135, size 3858489 (1884 Meg), flag 0
	beg: cyl 0/ head 2/ sector 10;
	end: cyl 956/ head 63/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
sysid 0 (0000),(unused)
    start 24897, size 0 (0 Meg), flag 0
	beg: cyl 0/ head 0/ sector 0;
	end: cyl 370/ head 0/ sector 50
The data for partition 4 is:
<UNUSED>
bobagem# mount_msdosfs /dev/da0p1 sdmmc/
mount_msdosfs: /dev/da0p1: No such file or directory
bobagem# /sbin/fsck_msdosfs -p /dev/da0
Floating exception (core dumped)
bobagem#

How do I mount this?
 
Use /dev/da0s1 (both for fscking and mounting). /dev/dap1 is a GPT partition. Fdisk only creates traditional MBR schemes.
 
Back
Top