Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Documentation for Pinephone #64

Open
ghost opened this issue Aug 27, 2021 · 2 comments
Open

[Request] Documentation for Pinephone #64

ghost opened this issue Aug 27, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 27, 2021

I want to get this running on the PinePhone running Mobian OS but the instructions are kinda vague for a novice how to get it running.

@jfdelnero
Copy link
Member

jfdelnero commented Aug 27, 2021

Hello,

There is a debian "umtp-responder" package so i suppose that a "sudo apt-get install umtp-responder" should be enough to install it.

https://packages.debian.org/bullseye/umtp-responder

Anyway i am not sure what is the default configuration used in this package.

@Albirew
Copy link

Albirew commented Dec 9, 2023

digging up this issue since I'm also in this case.
default umtp-responder configuration for pinephone on mobian:

#
# uMTP Responder config file
#

# Loop / daemon mode
# Set to 0 to shutdown when the link is disconnected.
loop_on_disconnect 1

# storage command : Create add a storage entry point. Up to 16 entry points supported
# Syntax : storage "PATH" "NAME"

# NOTICE: currently the systemd unit file allows r/w
# access only to /var/lib/umtp
# See /usr/share/doc/umtp-responder/README.Debian

storage "/var/lib/umtp" "shared folder" "rw"
# storage "/home/USER/foo"  "home folder" "rw"
# storage "/www"            "www folder" "ro,notmounted"

#
# 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 "Viveris Technologies"

# Set the USB Product string

product "Viveris Technologies"

# Set the USB Serial number string

serial "01234567"

# Set the MTP firmware version

firmware_version "Rev A"

# Set the USB interface string. Should be always "MTP"

interface "MTP"

# Set the USB Vendor ID, Product ID and class

usb_vendor_id  0x1D6B # Linux Foundation
usb_product_id 0x0100 # PTP Gadget
usb_class 0x6         # Image
usb_subclass 0x1      # Still Imaging device
usb_protocol 0x1      #

# Device version

usb_dev_version 0x3008

# 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 0x200      # 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.

#
# USB gadget device driver path
#

########################################################################
#
# -- Generic FunctionFS Mode --
#
########################################################################

usb_functionfs_mode 0x1

usb_dev_path   "/dev/ffs-mtp/ep0"
usb_epin_path  "/dev/ffs-mtp/ep1"
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

however, not working as is because init_usb_mtp_gadget : Unable to open /dev/ffs-mtp/ep0
and /dev does not contain any mtp or ep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants