Current-Users archive

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

Re: SD/MMC driver



On 07.04.2009, Paul Goyette wrote:
> I don't have any hardware to test these out myself, so would appreciate  
> any testing you can do.  I'd like to get this work committed sometime  
> soon.

A success with a i386 laptop:

# dmesg
...
sdhc0 at pci4 dev 0 function 2: vendor 0x197b product 0x2381 (rev. 0x00)
sdhc0: interrupting at ioapic0 pin 19
sdmmc0 at sdhc0
vendor 0x197b product 0x2383 (miscellaneous system) at pci4 dev 0 function 3
not configured
vendor 0x197b product 0x2384 (miscellaneous system) at pci4 dev 0 function 4
not configured

# pcictl pci4 list
004:00:0: JMicron Technology product 0x2382 (miscellaneous system)
004:00:2: JMicron Technology product 0x2381 (SD Host Controller system,
interface 0x01)
004:00:3: JMicron Technology product 0x2383 (miscellaneous system)
004:00:4: JMicron Technology product 0x2384 (miscellaneous system)

# dmesg | grep ld0
ld0 at sdmmc0
ld0: 488 MB, 992 cyl, 16 head, 63 sec, 512 bytes/sect x 1000448 sectors
ld0d: error reading fsbn 0 (ld0 bn 0; cn 0 tn 0 sn 0)
ld0: dos partition I/O error
ld0d: error reading fsbn 1 (ld0 bn 1; cn 0 tn 0 sn 1)

# fdisk ld0
Disk: /dev/rld0d
NetBSD disklabel disk geometry:
cylinders: 992, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 1000448

BIOS disk geometry:
cylinders: 63, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1000448

Partition table:
0: OpenBSD (sysid 166)
    start 233, size 1000215 (488 MB, Cyls 0/3/45-62/70/8)
1: OpenBSD (sysid 166)
    start 0, size 0
2: <UNUSED>
3: <UNUSED>
No active partition.

Reading and writing is furthermore confirmed to work fine. 

But a failure on a AMD64 laptop with different chipset:

# dmesg
...
sdhc0 at pci4 dev 6 function 3: vendor 0x104c product 0x803c (rev. 0x00)
sdhc0: interrupting at ioapic0 pin 22
sdmmc0 at sdhc0
vendor 0x104c product 0x803d (miscellaneous communications) at pci4 dev 6
function 4 not configured

# pcictl pci4 list 
002:06:0: Texas Instruments PCIXX12 Cardbus Controller (CardBus bridge)
002:06:2: Texas Instruments PCIXX12 Integrated FlashMedia Controller
(miscellaneous mass storage)
002:06:3: Texas Instruments PCIXX12 Secure Digital Host Controller (SD Host
Controller system)
002:06:4: Texas Instruments PCIXX12 Smart Card (miscellaneous communications)


- Jukka.


Home | Main Index | Thread Index | Old Index