Hi all,
I met some problems when i test USB slave of DaVinci. System would be
corrupted in booting kernel, when i un-selected
[Device Driver-->USB Support-->Disable DMA (always use PIO)], however,
all would be ok if i select the option, it means use PIO, but the speed
of usb slave is too slow. Maybe there were some bugs about usb slave's DMA.
I tried to find them out, but failed.
my test environment as following:
Hardware: TI EVM, JP7 switch 1-2 to enable usb slave
Linux: v2.6.23-rc4-davinci1
part of menuconfig :
[Device Driver-->USB support]
...
<*> Inventra Highspeed Dual Role Controller (TI, ...)
--- DaVinci 644x USB support
Driver Mode (USB Peripheral (gadget stack)) --->
[*] Disable DMA (always use PIO)[###### Note: un-select it lead to
system corrupted]
(0) Logging Level (0 - none /3 - annoying /...)
...
[Device Driver--->USB support--->USB Gadget Support]
<*> Support for USB Gadgets
[ ] Debugging information files
USB Peripheral Controller (Invertra HDRC USB Peripheral (TI, ...)) --->
<M> USB Gadget Driver
< > Gadget Zero (DEVELOPMENT)
< > Ethernet Gadget (with CDC Ethernet support)
< > Gadget Filesystem (EXPERIMENTAL)
<M> File-backed Storage Gadget
[*] File-backed Storage Gadget testing version
< > Serial Gadget (with CDC ACM support)
< > MIDI Gadget (EXPERIMENTAL)
steps:
1.make uImage
2.make modules
3.boot kernel
4.download driver/usb/gadget/g_file_storage.ko
5.run command:
insmod g_file_storage.ko file=/dev/hda stall=0
6.connect usb cable to pc
--------------------
Best regards!
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source