Linux - Embedded & Single-board computerThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
^ 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)?
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.