最終更新:2018-01-12 (金) 13:28:26 (2295d)
Linux/USB
ドキュメント
- kernel.org/doc/Documentation/usb
- kernel.org/doc/htmldocs/gadget
- kernel.org/doc/htmldocs/usb - ホストの方
- Linux USB drivers
- Linux USB
- http://lilo.linux.or.jp/lilo-doc/lilo-doc2004/other/linux-usb-another/linux-usb-another.txt
- http://www.kroah.com/linux/
FAQ
ドライバ
CONFIG_USB usbcore CONFIG_USB_ACM? ACM CONFIG_USB_STORAGE マスストレージ CONFIG_USB_SERIAL? USBシリアル? CONFIG_USB_PRINTER? CONFIG_USB_WDM? CONFIG_USB_TMC? CONFIG_USB_VIDEO_CLASS uvcvideo UVC CONFIG_USB_HID generic-usb (usbhid) 汎用HID ~Linux 3.4 CONFIG_HID_GENERIC hid-generic 汎用HID Linux 3.5〜
メモ
コマンド
Linux/USB/VFS
devfs (廃止)
- Linux 2.4~Linux 2.6.13?、後継はudev
- Every USB device will appear in usbfs, regardless of whether or not it has a kernel driver; but only devices with kernel drivers show up in devfs.
usbfs (deprecated) -> 後継はsysfs/udev
- Linux 2.6.0~Linux 3.4
- セキュリティの問題でdeprecated
- Linux/proc/bus/usb
- Linux/proc/bus/usb/devices
- CONFIG_USB_DEVICEFS (Linux 2.6.0〜Linux 3.4)
- In many modern systems the usbfs filesystem isn't used at all. Instead USB device nodes are created under Linux/dev/usb? or someplace similar.
- The"devices" file is available in debugfs, typically as Linux/sys/kernel/debug/usb/devices.
debugfs
- Linux 2.6.10? (rc3)~
- Linux/sys/kernel/debug/usb
- Ubuntu 9.10 is mounting debugfs instead of usbfs
- usbmonで使用
- CONFIG_DEBUG_FS (Linux 2.6.11?~)
sysfs
- Linux 2.6.6?~
- Linux/sys/bus/usb
- CONFIG_SYSFS
- /sys/ is mainly configuration/information about devices.
udev
Writing a Real Drive - In User Space
Linux/USB/通知
- デバイスの追加/削除
- バスの追加/削除
- In the Linux USB subsystem, the subscribers of these events are device file system, class file system, and USB monitor modules.
USBバスの初期化 (usbcore)
Linux/USBデバイスドライバ
Linux/USBコアドライバ
libusb-1.0/Linux
- udev(Linux/dev/bus/usb)を確認して無ければusbfs(Linux/proc/bus/usb)を確認