Skip to content

Commit 3c9783c

Browse files
committed
update README
1 parent 022592d commit 3c9783c

File tree

2 files changed

+142
-1
lines changed

2 files changed

+142
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ cd $OLD_PWD
5050
- DiscEmu looks for ISO images at `isos` in the working directory, so `/mnt/data/isos` as configured above. You might want to mount a partition with large enough space to this directory.
5151

5252
- Due to Linux kernel limitations, DVD images are not fully supported. Also there is a ~2.2GiB file size limit, there is a third-party patch to bypass this, see https://lkml.org/lkml/2015/3/7/388 for more details. \
53-
You can use my fork of the official buildroot image for DVD images, it also includes some kernel patches that improves compability: https://github.com/driver1998/duo-buildroot-sdk/releases/tag/v0.1-discemu.
53+
You can use my fork of the official v1 buildroot image for DVD images, it also includes some kernel patches that improves compability: https://github.com/driver1998/duo-buildroot-sdk/releases.
5454

55+
- To make MTP support work, please install [uMTP-REsponder](https://github.com/viveris/uMTP-REsponder) as `/usr/bin/umtprd`, and set `/etc/umtprd.conf` based on the [example](./example/umtprd.conf). You should only need to change the storage entry point (`storage` line). \
56+
If MTP does not work properly on official v1 images, try my fork linked above.

example/umtprd.conf

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
#
2+
# uMTP Responder config file
3+
# Must be copied to /etc/umtprd/umtprd.conf
4+
#
5+
6+
# Loop / daemon mode
7+
# Set to 1 to don't shutdown uMTPrd when the link is disconnected.
8+
9+
loop_on_disconnect 0
10+
11+
# Force the default UID/GID to use for each storage file operations.
12+
# Note : When no default UID/GID are specified the umtprd process UID/GID
13+
# are used instead.
14+
15+
#default_uid 33
16+
17+
## group: mtp
18+
#default_gid 33
19+
20+
#
21+
# umask value for uploaded folders and files
22+
#
23+
# Uncomment the umask command line if you want to
24+
# override the system default umask value for
25+
# the uploaded folders and files.
26+
#
27+
# umask format description :
28+
#
29+
# umask 022
30+
# ugo
31+
#
32+
# u : user/owner part of mask
33+
# g : group part of mask
34+
# o : others/not-in-group part of mask
35+
#
36+
# Octal digit definition in umask command :
37+
#
38+
# 0 : Any permission may be set. (Read, Write, eXecute)
39+
# 1 : Setting of execute permission is prohibited. (Read and Write)
40+
# 2 : Setting of write permission is prohibited. (Read and eXecute)
41+
# 3 : Setting of write and execute permissions is prohibited. (Read only)
42+
# 4 : Setting of read permission is prohibited. (Write and eXecute)
43+
# 5 : Setting of read and execute permissions is prohibited. (Write only)
44+
# 6 : Setting of read and write permissions is prohibited. (eXecute only)
45+
# 7 : All permissions are prohibited from being set. (No permission)
46+
#
47+
48+
# Example :
49+
# User : Read, Write, eXecute. (0)
50+
# Group : Read, eXecute but no Write. (2)
51+
# Others : Read, eXecute but no Write, (2)
52+
53+
#umask 022
54+
55+
# Storage command : Create add a storage entry point. Up to 16 entry points supported
56+
# Syntax : storage "PATH" "NAME" "OPTIONS"
57+
# Possible store options :
58+
# "rw" = read/write access
59+
# "ro" = read only
60+
# "notmounted" = not mounted by default
61+
# "locked" = lock/unlock feature enabled
62+
63+
storage "/mnt/data/disc-emu/isos" "isos" "rw"
64+
65+
# Set the USB manufacturer string
66+
67+
manufacturer "driver1998"
68+
69+
# Set the USB Product string
70+
71+
product "DiscEmu"
72+
73+
# Set the USB Serial number string
74+
75+
serial "01234567"
76+
77+
# Set the MTP firmware version
78+
79+
firmware_version "Rev A"
80+
81+
# Set the USB interface string. Should be always "MTP"
82+
83+
interface "MTP"
84+
85+
# Set the USB Vendor ID, Product ID and class
86+
87+
usb_vendor_id 0x1D6B # Linux Foundation
88+
usb_product_id 0x0100 # PTP Gadget
89+
usb_class 0x6 # Image
90+
usb_subclass 0x1 # Still Imaging device
91+
usb_protocol 0x1 #
92+
93+
# Device version
94+
95+
usb_dev_version 0x3008
96+
97+
# inotify support
98+
# If you want disable the events support (beta), uncomment the following line :
99+
100+
# no_inotify 0x1
101+
102+
# Sync when close
103+
# Set this option to 0x1 to request all file data to be flushed from the RAM buffer to the
104+
# internal storage after transfer is completed, this prevents data loss in the case where
105+
# user un-plugged a non-battery-powered device too soon when there are still buffered data
106+
# stayed in the RAM
107+
108+
sync_when_close 0x1
109+
110+
#
111+
# Internal buffers size
112+
#
113+
114+
# Internal default usb_max_rd_buffer_size and usb_max_wr_buffer_size value set to 0x10000.
115+
# Internal default read_buffer_cache_size value set to 0x100000.
116+
# Uncomment the following lines to reduce the buffers sizes to fix USB issues on iMX6 based systems.
117+
118+
# usb_max_rd_buffer_size 0x200 # MAX usb read size. Must be a multiple of 512 and be less than read_buffer_cache_size
119+
# usb_max_wr_buffer_size 0x200 # MAX usb write size. Must be a multiple of 512.
120+
# read_buffer_cache_size 0x4000 # Read file cache buffer. Must be a 2^x value.
121+
122+
#
123+
# USB gadget device driver path
124+
#
125+
126+
########################################################################
127+
#
128+
# -- Generic FunctionFS Mode --
129+
#
130+
########################################################################
131+
132+
usb_functionfs_mode 0x1
133+
134+
usb_dev_path "/dev/usb-ffs/mtp/ep0"
135+
usb_epin_path "/dev/usb-ffs/mtp/ep1"
136+
usb_epout_path "/dev/usb-ffs/mtp/ep2"
137+
usb_epint_path "/dev/usb-ffs/mtp/ep3"
138+
139+
usb_max_packet_size 0x200

0 commit comments

Comments
 (0)