Enable USB Mass storage on dragon board


#1

Hi,
I need to enable USB mass storage on the dragon board. What do I need to change on the kernel/device tree to have this working? Thanks for your response.

Shah


#2

Found the solution. No kerneal modification needed as USB mass storage is turned on by default and part of the composite gadget driver. From an adb shell (over wifi) I did the following:

disable usb

echo 0 > /sys/devices/virtual/android_usb/android0/enable

select mass_storage and adb functions

echo “mass_storage,adb” > /sys/class/android_usb/android0/functions

map the volume id of the backing storage

echo “/dev/block/vold/179:98” > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file

enable usb

echo 1 > /sys/devices/virtual/android_usb/android0/enable


#3

Hi @sshafaat,

Thank you for your great information!
:slight_smile: