How can BeagleBone Black be used as Mass Storage Device?

安稳与你 提交于 2019-12-03 09:37:36

The latest images have already the mass storage usb gadget active, so a mass storage peripheral should be recognized by your system upon connection. A quick google search reveals this discussion about a user trying to disable the USB MS gadget:

From the discussion, the files where the magic happens are:

  • Debian: /opt/scripts/boot/am335x_evm.sh
  • Ubuntu: /opt/scripts/boot/am335*
  • Armstrong: /usr/bin/g-ether-load.sh

In my Debian image the line you want to modify is:

modprobe g_multi file=${gadget_partition} cdrom=0 stall=0 removable=1 nofua=1 iSerialNumber=${SERIAL_NUMBER} iManufacturer=Circuitco  iProduct=BeagleBone${BLACK} host_addr=${cpsw_1_mac}

and the corresponding $gadget_partition variable that is set just before that in order to customize the folder you want to expose.

Note that the g_multi gadget in its standard configuration presents 3 different devices: an ethernet interface, a mass storage peripheral and a serial interface. If you want to customize the parameters you can refer to the g_multi documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!