Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    setusbconfig mass_storage可以配置两个存储设备都挂载到USB上吗?

    MR Series
    1
    1
    769
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      billy LV 3 last edited by

      也就是通过setusbconfig,可以同时在PC上看到SD卡和UDISK吗?
      [ -d /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0 ] || {
      mkdir /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0
      echo Tina > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/inquiry_string
      }
      ln -s /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/ /sys/kernel/config/usb_gadget/g1/configs/c.1/f1

      • echo "/dev/mmcblk0p1" > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/file
        echo "/dev/loop0" > /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/lun.0/file
      1 Reply Last reply Reply Quote Share 1
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策