PKG-UMTPRD: bump to git f4a1d4a & enable sync_when_close (#170)

* bump git ver. to- to include extra fsync() before quit option

* umtprd.conf: add sync, flush data when un-plugging
This commit is contained in:
Apaczer
2025-05-21 21:00:30 +02:00
committed by GitHub
parent bb94014294
commit a2929a4734
3 changed files with 108 additions and 12 deletions

View File

@@ -8,21 +8,71 @@
loop_on_disconnect 1
#storage command : Create add a storage entry point. Up to 16 entry points supported
#Syntax : storage "PATH" "NAME"
# 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
## group: mtp
#default_gid 33
#
# umask value for uploaded folders and files
#
# Uncomment the umask command line if you want to
# override the system default umask value for
# the uploaded folders and files.
#
# umask format description :
#
# umask 022
# ugo
#
# u : user/owner part of mask
# g : group part of mask
# o : others/not-in-group part of mask
#
# Octal digit definition in umask command :
#
# 0 : Any permission may be set. (Read, Write, eXecute)
# 1 : Setting of execute permission is prohibited. (Read and Write)
# 2 : Setting of write permission is prohibited. (Read and eXecute)
# 3 : Setting of write and execute permissions is prohibited. (Read only)
# 4 : Setting of read permission is prohibited. (Write and eXecute)
# 5 : Setting of read and execute permissions is prohibited. (Write only)
# 6 : Setting of read and write permissions is prohibited. (eXecute only)
# 7 : All permissions are prohibited from being set. (No permission)
#
# Example :
# User : Read, Write, eXecute. (0)
# Group : Read, eXecute but no Write. (2)
# Others : Read, eXecute but no Write, (2)
umask 000
# 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 "/" "ROOTFS" "ro"
storage "/mnt" "MAIN" "rw"
storage "/roms" "ROMS" "rw"
storage "/boot" "BOOT" "ro"
#
# Uncomment the following line if you want to
# override the system default umask value for
# the uploaded files.
#
# 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.
umask 000
#storage "/" "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"
# Set the USB manufacturer string
@@ -36,6 +86,10 @@ product "Miyoo Handheld"
serial "01234567"
# Set the MTP firmware version
firmware_version "Rev A"
# Set the USB interface string. Should be always "MTP"
interface "MTP"
@@ -57,6 +111,14 @@ usb_dev_version 0x3008
# no_inotify 0x1
# Sync when close
# Set this option to 0x1 to request all file data to be flushed from the RAM buffer to the
# internal storage after transfer is completed, this prevents data loss in the case where
# user un-plugged a non-battery-powered device too soon when there are still buffered data
# stayed in the RAM
sync_when_close 0x1
#
# Internal buffers size
#
@@ -87,3 +149,37 @@ usb_epout_path "/dev/ffs-mtp/ep2"
usb_epint_path "/dev/ffs-mtp/ep3"
usb_max_packet_size 0x200
########################################################################
#
# -- GadgetFS Mode : Atmel Sama5D2Xplained board --
#
########################################################################
#usb_functionfs_mode 0x0
#usb_dev_path "/dev/gadget/atmel_usba_udc"
#usb_epin_path "/dev/gadget/ep1"
#usb_epout_path "/dev/gadget/ep2"
#usb_epint_path "/dev/gadget/ep3"
# Max USB packet size
#usb_max_packet_size 0x200
########################################################################
#
# -- GadgetFS Mode : Raspberry PI Zero / Raspberry PI Zero W Boards --
#
########################################################################
#usb_functionfs_mode 0x0
#usb_dev_path "/dev/gadget/20980000.usb"
#usb_epin_path "/dev/gadget/ep1in"
#usb_epout_path "/dev/gadget/ep2out"
#usb_epint_path "/dev/gadget/ep3in"
# Max USB packet size
#usb_max_packet_size 0x200

View File

@@ -1,2 +1,2 @@
# Locally calculated
sha256 0403ea5235bcc517555d313c68d0049f5b398a6804b2b3ac133b8b55e9595e04 umtprd-7d7d099df0dd929f95de0f45a2b6b006545207c6-br1.tar.gz
sha256 f4a1d4ae342a91a6d2bfe4a1e38eb72380e8a8e05ab38309c6c241448bfbd52f umtprd-f5ef8985f6226c69b944392f7a2d53bc24f72cb4-br1.tar.gz

View File

@@ -4,7 +4,7 @@
#
################################################################################
UMTPRD_VERSION = 7d7d099df0dd929f95de0f45a2b6b006545207c6
UMTPRD_VERSION = f5ef8985f6226c69b944392f7a2d53bc24f72cb4 #commit a734ef0 breakes with mq_open error
UMTPRD_SITE_METHOD = git
UMTPRD_SITE = https://github.com/viveris/uMTP-Responder.git
UMTPRD_LICENSE = GPL-3.0+