OSD32MP1-RED as mass storage device

Forums Reference, Evaluation, and Development Boards OSD32MP1-RED OSD32MP1-RED as mass storage device

Viewing 1 reply thread
  • Author
    Posts
    • #14655
      YanjunYanjun
      Participant

        Currently, the USB OTG port on OSD32MP1-RED is configured as ethernet network adapter. I would like to configure it so when connected to host PC, the OSD32MP1-RED would appear as a mass storage device. Are there instructions on how to do this? Thank you.

      • #14664
        Neeraj Kumar Reddy DantuNeeraj Dantu
        Moderator

          Yanjun,

          You can do this, but you will need to add the mass storage gadget drivers to the kernel first:

          CONFIG_USB_GADGETFS=m

          CONFIG_USB_G_ACM_MS=m

          CONFIG_USB_MASS_STORAGE=m

          Once you add these drivers, you will also need to disable the current USB RNDIS network on the board. Then, you should be able to do:

          modprobe g_mass_storage file=/path_to_storage_file

          Best,

          Neeraj

           

           

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.