[OpenWrt-Devel] periodic task checking for usb flash media?

Karl Palsson karlp at tweak.net.au
Tue Sep 29 07:22:33 EDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've got a custom board with an onboard USB flash media
interface. It works well, I can mount and access micro SD cards
nicely, and all that basic stuff.

However, card detection doesn't work. The USB flash interface is
Mass Storage Bulk Only, and on my desktop linux system, there's a
period task polling the device every two seconds, sending SCSI
"TEST UNIT READY" and "REQUEST SENSE" commands, and this happily
detects card insertions/removals, (after the next poll)

On openwrt, this doesn't happen. With usbmon I don't see any
periodic traffic. Calling "block info" manually reliably detect
any changes and gets new device nodes created, that works just
fine, but do I really need to call that periodically myself?

Is this how it's meant to be? Am I missing some important package
or config? I'm not asking about automounting, there's plenty of
wiki help and options for that, but how do I get the card to be
detected at all?

Sincerely,
Karl Palsson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJWCnR6AAoJEBmotQ/U1cr2+N0P/3ZJpWOKKVxJ5sS05LeVlQAT
FqNVVBVDlJVYp3nbc6QCFqYiPOp3ge4GtR/OvHiy4AUdeqZqTYlsOMGUiHEQO0Ho
0UVravWyJoKzTNvNETcqhUcb8iuzj1EoGCbEfUT0WlYV5GLeKneUKrLo/cQtUeoO
/CNJ+fU6gW/SmPsxrkQW+i4eR+Qbucln6Q8ee6SZThrT2ftmOqab+02RO80CSi8N
VyD4K9BbiZhj4Y8b4BYJkbvDJ+iS0XzobSzJ76LLZxZDHIDIvPjfWWnDdxm4P35l
rNU6/W0x7+8OA9l0TRY6KAbo5xABqTl2fu+vg6cLnTHRBgTQNsvUsbyLiOt/bBEs
buxsWfgbZAMcF7uxK0nim4IqIMPnbpS6ickx4D9R696bNXwA7kWGlAATkBtCN9V5
uSusnpAzLF1/rKuF7RZLRxqjsG+8LKhcJJ+GIxZFTn0dirA5YZ8NfzZnmf3xlwxg
7IC4+LbW/ELhEb3Z8ULPjUcKwhYIMbDTKWm6q7Li627Z90BAF4o1SO23/eVXlRaf
M1g3rS0+wyVy1O6KP9Hu/4ZOzLztV/WlRnt2cTYmX4EHgUwL/srQ/75cRYF8PCaw
dCNwHA32ctNOmfmwEpo+IedD8ESbyLw3O3kanIDA2E9fvugsJinJB+C4JFkl7hD8
EqHrrvUvrjRsHEc1adlk
=SDbi
-----END PGP SIGNATURE-----
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list