[OpenIndiana-discuss] SDHC card support in OI?

James Carlson carlsonj at workingcode.com
Tue Sep 24 19:32:06 UTC 2013


On 09/24/13 14:21, Bryan N Iotti wrote:
> Hi, sorry it took so long to answer.
> 
> rmformat does not see the reader.
> 
> Inserting a regular SD card makes no difference compared to a SDHC card.
> 
> /var/adm/messages contains this line:
>  Sep 24 20:09:17 Spook pci_pci: [ID 370704 kern.info] PCI-device: pci103c,30dc at 9,1, sdhost0 
> 
> and the same PCI ID is used in these lines:
> Sep 24 20:09:17 Spook blkdev: [ID 348765 kern.info] Block device: blkdev at 0, blkdev0
> Sep 24 20:09:17 Spook genunix: [ID 936769 kern.info] blkdev0 is /pci at 0,0/pci 8086,2448 at 1e/pci103c,30dc at 9,1/blkdev at 0
> Sep 24 20:09:17 Spook genunix: [ID 408114 kern.info] /pci at 0,0/pci8086,2448 at 1e/pci103c,30dc at 9,1/blkdev at 0 (blkdev0) online
> Sep 24 20:09:22 Spook devfsadmd[463]: [ID 937045 daemon.error] failed to lookup dev name for /pci at 0,0/pci8086,2448 at 1e/pci103c,30dc at 9,1/blkdev at 0

If I understand the sdhost stuff, it looks like you should have gotten
sdcard registrations for each one of the devices here.  Instead, you got
some kind of generic "blkdev."

You've run to the end of my understanding of this code.  I wonder if
Shudong Zhou is around somewhere ...

> My interpretation would be that the drive is recognized and bound to a block device but devfsadm can't use it because it doesn't know what /dev it points to.

It doesn't know what /dev *should* point to.  The driver is giving up no
information about the correct path, which means that it's not
recognizing this thing as a disk.

> Interesting, as I've often used a reconfigure boot, but to no avail I guess.

No, not since the (long, long ago) integration of the devicefs / devfs
projects.  Reconfiguration reboot (if it does anything at all) empties
the cache information and starts over, but the overall picture is the same.

It's not like the bad old days when there were real device nodes that
had to be removed and added by a daemon, which is why you see this:

% df /dev /devices
/dev               (/dev              ):       0 blocks        0 files
/devices           (/devices          ):       0 blocks        0 files

> Thank you James for suggesting I check the logs. Any other ideas as to what I can try?

I'm with the other poster who suggested trying a different card reader.
 How much is your time worth to you?

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>



More information about the OpenIndiana-discuss mailing list