LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-25-2008, 03:45 AM   #1
Robert_A
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Rep: Reputation: 0
Question MTP gadget driver


Hi all,

is there a MTP gadget driver implementation for the mainline kernel?

Even if the driver is an alpha/beta release i would be interested to test/improve the sources.

Thanks in advance,
Robert
 
Old 06-25-2008, 01:10 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,839

Rep: Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590
if you are talking about media transfer protocol then i have had success with libusb and libmtp
 
Old 06-26-2008, 01:35 AM   #3
Robert_A
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by schneidz View Post
if you are talking about media transfer protocol then i have had success with libusb and libmtp
Yes, I mean Media Transfer Protocol. I know the two libs: libusb/libmtp but i thought they are only used to access USB/MTP devices?

But what I want to do is to create a MTP device, so I thought I have to use a Gadget driver for this. E.g. the usbfs gadget driver takes a Filesystem and provides it as an USB Mass storage device.

I want the same thing, but only with the Media Transfer Protocol.

Thanks,
Robert
 
Old 06-26-2008, 10:18 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,839

Rep: Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590
so you want drag-and-drop functionality from mtp devices. i am not a device driver expert so i will suggest using libmtp to emulate that functionality.

like:
Code:
ls -> mtp-files
rm -> mtp-delfile
mkdir -> mtp-newfolder
cp -> mtp-sendfile
like creating a front end for the libmtp calls. sorry i couldnt be of more help.
 
Old 06-26-2008, 10:54 AM   #5
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,839

Rep: Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590
this thread mentions mtpfs
http://www.linuxquestions.org/questi...nux...-624099/
never heard of it
good luck
 
Old 06-30-2008, 03:08 AM   #6
Robert_A
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by schneidz View Post
this thread mentions mtpfs
http://www.linuxquestions.org/questi...nux...-624099/
never heard of it
good luck
Hi schneidz,
thx for your response.

I know the mtpfs, but for my understanding it is used to map the contents of a MTP device in the Userspace Filesystem (FUSE). But what I want to do is to take the contents of my Userspace Filesytem and provide it to e.g. a normal Windows PC.

So it is the other direction.
Robert
 
Old 06-30-2008, 11:49 AM   #7
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,839

Rep: Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590Reputation: 590
i have a creative zen vision w that doesnt work with win2k. so instead of paying $400 for windows vista my solution was to download and run knoppix-live-cd.

are you taliking about a specific media player. i think the manufacturer (in my case creative) makes the device drivers so if your using a current version of windows it should work.

i dont have much experience with windows programming (is fuse available for windows ?) if more than one pc consider running samba.

Last edited by schneidz; 06-30-2008 at 11:52 AM.
 
Old 01-14-2010, 02:51 PM   #8
v.o.
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Robert_A, Did you find anything?
 
  


Reply

Tags
driver, gadget, mtp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MTP Support For Linux...? carlosinfl Linux - Hardware 3 06-26-2008 10:53 AM
MTP device driver for ARM... minhla Linux - Hardware 2 06-25-2008 11:34 PM
LXer: What This Gadget Can Do Is Up to You LXer Syndicated Linux News 0 01-07-2008 12:00 PM
Problem with Serial Gadget driver simic Linux - Kernel 0 12-12-2007 04:21 AM
MTP Devices in VMware jkfff Linux - Hardware 4 01-17-2007 10:44 PM


All times are GMT -5. The time now is 10:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration