LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-19-2009, 06:34 AM   #1
Rao423
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
MTP


Hi,
I Want to enable the MTP support in my target board(Mobile), we are using linux and we had usb driver for H/W and its working fine as a massstorage. But enable the MTP Support in my H/W whay i have to do?. I gone through the some sites and i understand that enable the gadgetfs in kernel level, mtp user space driver available in mtplib and mtpusb is it correct? what exactly i have to do for MTP support in my target board and how to test it?


Thanks in advance to everybody for reply and help!
 
Old 09-22-2009, 08:21 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
you would need libusb, libmtp and optionally mtpfs .
 
Old 09-24-2009, 02:20 PM   #3
Rao423
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
Thanks for replay,
what i know is libmtp and libusb for linux host side right?
but my requirment is i need to support the mtp in my mobile devie and we are using linux kernel.
can i directly use those libmtp and libusb for my development mobile.

Thanks in advance.
 
Old 01-14-2010, 01:34 PM   #4
v.o.
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Rao423,
Did you find anything? I am looking for same.
Looks like the way is to use usb gadget API but can not find any good examples anywhere What about you?

P.S.
schneidz, can you please explain how libmtp/libusb is related to the TARGET?
The question is how to implement MTP on the device (Responder) but not how to make Linux box support MTP (Initiator).
If libmtp/libusb has nothing with MTP Responder please stop confuse ppl.
 
Old 01-15-2010, 01:32 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ damn, i thought i was helping but i guess i didnt fully understand the question (anyways, since libmtp is open source, can you browse the source code and see how it determines a device is mtp and modify your board for what libmtp would be looking for ?).

why do you want to use mtp anyways as opposed to your device acting like a usb harddrive (i would assume that would be much easier and more useful)?

sorry,

Last edited by schneidz; 01-15-2010 at 01:35 PM.
 
Old 01-17-2010, 10:18 AM   #6
v.o.
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Well…some ppl like to deal with files but some ppl prefer songs/albums etc. MTP definitely has number of advantages for the 2nd group. To look libmtp to understand what's needed to be done on device? ...hmmm...don't think it is the most optimal way.
BTW talking about libmtp. Do you know which libusb source version correspond to libusb-dev package? Strange thing - the last libusb-1.0.6 does not have number of files (which are in libusb-dev) and is not compatible with the latest libmtp-1.0.1. So I am able to run libmtp app when it uses libmtp-1.0.1+libusb-devel but can not do this using libmtp-1.0.1+libusb-1.0.6. But I would like to see whole libmtp/libusb stack.
 
Old 06-18-2010, 04:02 AM   #7
vijayalakshmi_kp
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
MTP Album Art support on responder

Hi,

I need to add album art support on the MTP responder stack. I'm not clear how it is handled. I expect the Initiator to send the SAMPLE HEIGHT, SAMPLE WIDTH, SAMPLE DATA, SAMPLE FORMAT, SAMPLE SIZE in the object proeprty value list. But i dont see the Initiator sending it. I have added these properties to the supported object properties for ALBUM object. What the responder have to implement to make the initiator send these values for album art support?
 
  


Reply



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 gadget driver Robert_A Programming 7 01-14-2010 02:51 PM
Should I try to use MTP, and if so, what music app? quiescere Slackware 3 06-09-2009 07:52 PM
Automounting an mtp device amishtechie Linux - Hardware 0 04-09-2009 05:49 PM
Linux on MTP Player snoguy986 Linux - General 1 09-03-2008 02:37 PM
MTP Devices in VMware jkfff Linux - Hardware 4 01-17-2007 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration