OpenWrt Forum Archive

Topic: how to change kernel space for detecting usb hub slots

The content of this topic has been archived on 3 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi,

my board is automatic detecting usb . the pendrive is connected through usb hub, it is detecting automatic.

SD card also connected through usb hub. but sd card is not detecting automatic, only boot up time it is detecting.

when re-insert the sd card only not detecting.

i need help for automatic sd card detection .

i tried with block umount; block mount. it is detecting . but my aim is dont enter command every time

I think you are mixing up two completely different things. For the SD card, your board usually has a SD card reader, which is detected automatically by the USB bus host. Now, whether the SD card reader itself can notify the system of card insertion and extraction is a whole another matter.

If the reader can notify the system of these events, then you'll need to figure out what device management method (hotplug, udev, or something else?) you are using. Once you've figured that out, you'll need to find the correct script, rule or configuration file that is either called during the SD card insertion/extraction, or which can manage the commands that are executed when either of these events occur.

After finding these out, your last step is to just add the "block mount" and "block umount" commands to the queue of commands that are executed for the related events.

When you have a SD card controlled through a SD to USB bridge chip, the chip often will not detect the hot-plugging of a new SD card.  There is not much you can do about that.

The discussion might have continued from here.