Home > OS >  Linux usb card reader how to detect insert sd card inserted after event
Linux usb card reader how to detect insert sd card inserted after event

Time:09-25

Doing an embedded Linux project recently, with the help of usb card reader for SD storage, electricity, insert SD card system can not detect the usb card reader device, the sda, for example, now need to insert SD card, dynamic partition system can automatically detect the storage devices, such as sda1, but now phenomenon does not have any message, dev directory also can not find related storage devices, desktop distribution system if can do, however, have a great god knows this is how to implement, how to detect this kind of circumstance of SD plug, system kernel version is 3.2. Thanks

CodePudding user response:

Can identify the sda1, you see the log which is automatically mount to the directory, or, the driver is not perfect, there is no automatic hanging in no create equipment,
The former, see more pay attention to, the latter by adding a log to track down, may be more troublesome,

CodePudding user response:

reference 1 floor xh. Wang reply:
can identify the sda1, which do you see the log automatically mount in the directory, or the drive is not perfect, there is no automatic hanging in no create equipment,
The former, see more pay attention to, the latter by adding the log tracking, can be tricky,
now hot plug sd card, do not create sda1 device, you said the latter is the case, the usb driver is incomplete? I think the need to modify where?

CodePudding user response:

refer to the second floor weixin_35426009 response:
Quote: reference 1 floor xh. Wang reply:

Can identify the sda1, you see the log which is automatically mount to the directory, or, the driver is not perfect, there is no automatic hanging in no create equipment,
The former, see more pay attention to, the latter by adding the log tracking, can be tricky,
now hot plug sd card, do not create sda1 device, you said the latter is the case, the usb driver is incomplete? I think the need to modify where?

Can identify to so usb_core what shouldn't be a problem, see udev process emphatically, specific can be baidu udev kernel

CodePudding user response:

Solve have no? Now also have the same project

CodePudding user response:

The standard SD booth is a shrapnel as a recognition of the SD card inserted, USB SD card for?

CodePudding user response:

The building Lord how to solve? We use 4.9.35 kernel, at present is to use the script,
  • Related