linuxOS_AP06/device/rockchip/common/overlays/rootfs/usb-gadget/umtprd.conf
2025-06-03 12:28:32 +08:00

99 lines
2.6 KiB
Plaintext

#
# uMTP Responder config file
# Must be copied to /etc/umtprd/umtprd.conf
#
# Loop / daemon mode
# Set to 1 to don't shutdown uMTPrd when the link is disconnected.
loop_on_disconnect 0
# Force the default UID/GID to use for each storage file operations.
# Note : When no default UID/GID are specified the umtprd process UID/GID
# are used instead.
#default_uid 33
#default_gid 33
# Storage command : Create add a storage entry point. Up to 16 entry points supported
# Syntax : storage "PATH" "NAME" "OPTIONS"
# Possible store options :
# "rw" = read/write access
# "ro" = read only
# "notmounted" = not mounted by default
# "locked" = lock/unlock feature enabled
storage "/media" "external storages" "rw"
storage "/userdata" "internal storage" "rw"
# Add the "locked" option to enable the store lock/unlock feature.
# Execute "umtprd -cmd:unlock" to unlock the locked stores and "umtprd -cmd:lock" to lock them again.
# storage "/root" "lockable root folder" "rw,locked"
# A user storage using another UID/GID for file operations.
# storage "/home/user" "user folder" "rw,locked,uid=33,gid=33"
#
# Uncomment the following line if you want to
# override the system default umask value for
# the uploaded files.
#
#umask 022
# Set the USB manufacturer string
manufacturer "Rockchip"
# Set the USB Product string
product "Rockchip Linux Device"
# Set the USB Serial number string
serial "0000000000000000"
# Set the MTP firmware version
firmware_version "Rev A"
# Set the USB interface string. Should be always "MTP"
interface "MTP"
# inotify support
# If you want disable the events support (beta), uncomment the following line :
# no_inotify 0x1
#
# Internal buffers size
#
# Internal default usb_max_rd_buffer_size and usb_max_wr_buffer_size value set to 0x10000.
# Internal default read_buffer_cache_size value set to 0x100000.
# Uncomment the following lines to reduce the buffers sizes to fix USB issues on iMX6 based systems.
# usb_max_rd_buffer_size 0x200 # MAX usb read size. Must be a multiple of 512 and be less than read_buffer_cache_size
usb_max_wr_buffer_size 0x20000 # MAX usb write size. Must be a multiple of 512.
# read_buffer_cache_size 0x4000 # Read file cache buffer. Must be a 2^x value.
########################################################################
#
# -- Generic FunctionFS Mode --
#
########################################################################
usb_functionfs_mode 0x1
usb_dev_path "/dev/usb-ffs/mtp/ep0"
usb_epin_path "/dev/usb-ffs/mtp/ep1"
usb_epout_path "/dev/usb-ffs/mtp/ep2"
usb_epint_path "/dev/usb-ffs/mtp/ep3"
# Max USB packet size
usb_max_packet_size 0x200