usb mass storage
2016-12-15 08:38
260 查看
使用otg端口进行usb slave的测试,需要安装g_file_storage.ko或者g_mass_storage.ko模块。
http://linux-sunxi.org/USB_Gadget/Mass_storage
http://xlon.de/wiki/index.php?title=USB_Mass_Storage_Gadget_(or_MSG)
http://www.linux-usb.org/gadget/file_storage.html
必须编译成模块安装,并指定一块空间作为存储设备。
例如:
先分配一个1G的空间
dd if=/dev/zero of=/mass_storage bs=1M seek=1024 count=0
安装时,作为参数传给模块
modprobe g_mass_storage file=/mass_storage
安装成功后,插上usb线,PC机就会提示识别USB存储设备,需要进行格式化。
Tony Liu
2016-12-15, ShenZhen
参考链接
http://blog.csdn.net/freeman1975/article/details/46364319http://linux-sunxi.org/USB_Gadget/Mass_storage
http://xlon.de/wiki/index.php?title=USB_Mass_Storage_Gadget_(or_MSG)
http://www.linux-usb.org/gadget/file_storage.html
必须编译成模块安装,并指定一块空间作为存储设备。
例如:
先分配一个1G的空间
dd if=/dev/zero of=/mass_storage bs=1M seek=1024 count=0
安装时,作为参数传给模块
modprobe g_mass_storage file=/mass_storage
安装成功后,插上usb线,PC机就会提示识别USB存储设备,需要进行格式化。
Tony Liu
2016-12-15, ShenZhen
相关文章推荐
- android usb mass storage EMMC转化为SD卡(二)
- USB Mass Storage
- android usb mass storage EMMC转化为SD卡(三)
- 使用Device IO Control 讀寫 USB Mass Storage
- USB Mass Storage协议
- USB Mass Storage communication with PassThrough / more than 64K data length
- USB function驱动三种模式 RNDIS/Serial/MassStorage
- WinCE的USB Device功能实现(Serial,RNDIS,Mass_Storage)
- USB复合设备(mass storage&hid)
- Android USB Connections Explained: MTP, PTP, and USB Mass Storage
- USB Mass Storage大容量存储的基本知识
- Android usb client mass-storage 多存储设备挂载问题解决
- usb mass storage设备为什么需要注册为SCSI设备
- USB复合设备(mass storage&hid)
- USB Mass Storage协议
- Android usb client mass-storage不能自动挂载到主机端的问题(1)
- Windows Mobile USB Mass Storage(大容量存储器)功能开发总结
- android usb mass storage EMMC转化为SD卡(四)
- Device Object Example for a USB Mass Storage Device
- USB Mass Storage大容量存储的基本知识