hello everybody! i'm trying to get lh7a40x_udc to work in a LH7A404-based board. the board was developed in-house with strong imitation of the KEV7A400 development board which is standing on my desk, also.
as suggested in the howtos i'm testing with g_zero / g_serial / g_file_storage. our board will have to work with both linux and windows2k/xp as a host. i'm working with kernel 2.6.11, the only modification i made in lh7a40x_udc.c was to uncomment the line which drives PMR:DCP_CTRL to 0 in udc_enable, as suggested in the LH7A404 User's Guide. without this, my gadget is not even detected by the host. with this change, linux as the host seems to work quite well with g_serial and g_file_storage, howewer g_zero gives me: heinsdev:~# ./testusb -a unknown speed /proc/bus/usb/002/013 /proc/bus/usb/002/013 test 0, 0.000004 secs /proc/bus/usb/002/013 test 1, 1.096810 secs /proc/bus/usb/002/013 test 2, 1.001312 secs /proc/bus/usb/002/013 test 3, 1.077690 secs /proc/bus/usb/002/013 test 4, 1.003614 secs /proc/bus/usb/002/013 test 5, 17.937992 secs /proc/bus/usb/002/013 test 6, 18.580312 secs /proc/bus/usb/002/013 test 7, 17.938017 secs /proc/bus/usb/002/013 test 8, 18.555918 secs /proc/bus/usb/002/013 test 9 --> 110 (error 110) (then hangs forever) as i understand it, tests 9 and 10 are essential for every usb-gadget, so ... with windows as a host: - g_file_storage is recognized as a storage device, howewer no drive is recognized (the file for g_file_storage has got a partition table and a single partition, formatted with vfat. recognized fine and mountable from linux host as /dev/sda1) - g_serial: gives me some errors when loading: # modprobe g_serial use_acm=1 gs_set_config: Gadget Serial configured, full speed CDC-ACM config gs_setup_complete: status error, status=-71, actual=0, length=0 i can send bytes in both directions (with e.g. minicom and hyperterm), but transferring from the host to the device via x/y/zmodem or just "copy test.txt com3:" stalls after about 512 bytes. transferring from the device via zmodem works fine, however (with about 30kbps) does anyone actually use this gadget controller? any hints? i'll happily give out every information/logs etc. you need, just drop me a line. thanks very much in advance! --o -- Oliver Nittka ESEM Grünau GmbH & Co. KG Dornierstraße 6, 88677 Markdorf/Germany phone: +49 7544 9583-25, fax: +49 7544 9583-60 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
