FreeBSD: USB Card Reader detection solved


After compile the FreeBSD Kernel with all stuff as modules in order to suspend/resume task work my integrated thinkpad sd card reader did work no more. So I needed a solution to be able to read my SD cards. I own a Myson Century USB SD Card reader, a kind of adapter for SD cards. For some reason with the modular kernel the SD Card is not detected after inser the adapter in the USB port. It’s detected only after enter this command:

 

camcontrol rescan all

 

So the solution is simply, execute this command automatically after insert the adapter using ‘devd’. Simply add the following lines to ‘/etc/devd.conf’ and restart this service:

 

#USB SD Card Rearder “Myson Century”

attach 100 {
        device-name “ugen[0-9]+”;
        match “vendor” “0x04cf”;
        match “product” “0x8819”;
#        match “release” “0x0100”;
        action “/sbin/camcontrol rescan all”;
};

 

 

About jjjesss

I'm a guy interested in technology, bsd fan and concerned about the world around.
This entry was posted in FreeBSD. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s