Enable USB Mass storage on dragon board


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.



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


Hi @sshafaat,

Thank you for your great information!