Current-Users archive

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

Re: SD/MMC driver



On Tue, Apr 07, 2009 at 08:43:32AM -0700, Paul Goyette wrote:
> After a somewhat longer than anticipated absence, I'm looking into the 
> SD/MMC driver again.  I've integrated all the patches that I've been 
> able to scrounge up from all the various Email threads, and have built 
> both i386-MONOLITHIC and amd64-GENERIC kernels (using sources from 
> yeesterday, April 6th).  You can download them from
> 
>       ftp://ftp.whooppee.com/public/netbsd-i386-MONOLITHIC
>       ftp://ftp.whooppee.com/public/netbsd-amd64-GENERIC
> 
> 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.

Seems to work ... I tested it on my new amd64 VAIO laptop, with a
prehistoric 16MB SD card lying around.

njoly@nicodeme [~]> uname -a
NetBSD nicodeme.sis.pasteur.fr 5.99.10 NetBSD 5.99.10 (GENERIC) #0: Tue Apr  7 
06:20:52 PDT 2009  
paul%speedy.whooppee.com@localhost:/build/sdmmc/obj/amd64/sys/arch/amd64/compile/GENERIC
 amd64

njoly@nicodeme [~]> pcictl pci4 list -d 7 -f 2 
001:07:2: Ricoh 5C822 PCI-CardBus Bridge/MS/SD/MMC/SC (SD Host Controller 
system, revision 0x21)

njoly@nicodeme [~]> dmesg | grep -e sdhc0 -e sdmmc0 -e ld0
sdhc0 at pci4 dev 7 function 2: vendor 0x1180 product 0x0822 (rev. 0x21)
sdhc0: interrupting at ioapic0 pin 22
sdmmc0 at sdhc0
[...INSERT CARD...]
ld0 at sdmmc0
ld0: 14560 KB, 28 cyl, 16 head, 63 sec, 512 bytes/sect x 29120 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)
[...DO SOME STUFF (mount/copy/umount)...]
[...REMOVE CARD...]
ld0: detached

root@nicodeme [~]# fdisk ld0
Disk: /dev/rld0d
NetBSD disklabel disk geometry:
cylinders: 28, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 29120

BIOS disk geometry:
cylinders: 455, heads: 2, sectors/track: 32 (64 sectors/cylinder)
total sectors: 29120

Partition table:
0: Primary DOS with 12 bit FAT (sysid 1)
    start 57, size 29063 (14 MB, Cyls 0/1/26-454)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.

root@nicodeme [~]# disklabel ld0
# /dev/rld0d:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 28
total sectors: 29120
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:     29120         0     unused      0     0        # (Cyl.      0 -     28*)
 e:     29063        57      MSDOS                     # (Cyl.      0*-     28*)
disklabel: boot block size 0
disklabel: super block size 0

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index