Hi,
When you build the USB stack as a 'gadget' stack, you are then able to
install a couple of useful drivers (only one at a time though):
a) USB 'mass storage' gadget. This can export a partition or block file
so it appears to the PC as a disk. To the PC it works exactly the same
as a USB 'thumb' drive. Be warned, the linux target MUST NOT touch the
file or partition whilst connected to the host. You will corrupt the
filesystem. You may be able to get away with mounting the partition/file
read only (I have not tried this incidentally). You also have to 'step
over' the partition table when mounting the file system on the target
(when the host disconnects). This assumes you want the target to have
access to the files of course.
b) Ethernet gadget: this allows you to set up a point-to-point link so
you can use any network service you want but over USB. You may need to
run a DHCP server on the target on this interface so that the PC gets an
IP address - or you can set it up statically I suppose. With this, any
system service can be used to communicate from host to target. This
could be ssh, httpd or your own application 'server'.
From memory, I never got the 'gadget' mode stuff to work on the DM6446
EVM as I seem to remember some 'rewiring' was required and we were not
prepared to modify the hardware. It does work on the DM355 EVM but it is
not OTG, that is the USB driver has to be built either as a host or a
gadget stack. OTG mode (auto switching between the two modes) did not
work with the 2.6.10 kernel, although the hardware is allegedly OTG capable.
Regards
Phil Q
Prabhu Kalyan Rout wrote:
Hi,
I am working on DM6446 which will act as a slave to a Master (running Windows)
through USB interface. This USB interface has a USB-Hub in between. I am not
sure about the following:
1. As DM6446 acts like a gadget to the Windows machine, Will USB-Gadget APIs of
the kernel be useful ? If so, how will the Windows machine (master of the
USB-hub) talk to DM6446?
2. How does DM6446 interact back to the Windows machine?
Please help.
Thanks,
Prabhu
http://www.mindtree.com/email/disclaimer.html
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source