LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2012, 09:36 AM   #1
pedro_nf
Member
 
Registered: Sep 2003
Location: France
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
Question USB key simulation with linux PC


Hello all,
Are there any tools to simulate a USB key using a linux PC. The objective is to connect the USB cable to another PC that will see it as a USB key (USB MSC or UMS).
Thanks in advance,
Pedro

Last edited by pedro_nf; 03-21-2012 at 11:53 AM.
 
Old 03-21-2012, 01:11 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
USB interfaces operate as either 'devices' or 'hosts'. These are USB standard definitions. In Linux, for a USB interface to behave as a device (as opposed to the normal 'host' mode), the kernel must implement the USB-Gadget driver. This, then, precludes the use of any USB host interface. Further, there must be some application &/or driver that implements the functionality of the USB device.
I don't know of any existing code that makes a PC look like a giant USB thumb drive, although I've seen requests like yours before.

--- rod.
 
1 members found this post helpful.
Old 03-21-2012, 06:26 PM   #3
pedro_nf
Member
 
Registered: Sep 2003
Location: France
Distribution: RedHat
Posts: 58

Original Poster
Rep: Reputation: 15
I compiled the gadget g_mass_storage.ko driver and I tried it, when I try to load it I get an error:
couldn't find an available UDC

I guess that the driver is not finding the correct hardware in my PC for a usb device controller, the usb hardware in my motherboard is only usb host controller...

So I guess that it is not possible to do it with a normal PC, you need some embedded platform that has an usb device controller.

I'll look for an usb key with two connectors, if such a thing exists...
 
  


Reply

Tags
key, simulation, usb


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM
Key press simulation in FC kiruxa Linux - General 1 11-24-2006 10:00 PM
Complex key press combination simulation kiruxa Linux - Software 1 11-23-2006 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:09 AM.

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