From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=F6rg_Krause?= Date: Sat, 28 Jun 2014 22:53:38 +0200 Subject: [U-Boot] [PATCH] usb: ci_udc: fix interaction with CONFIG_USB_ETH_CDC In-Reply-To: <201406282245.21271.marex@denx.de> References: <1403546568-30830-1-git-send-email-swarren@wwwdotorg.org> <53AE1BA9.9000401@posteo.de> <53AF278F.80403@posteo.de> <201406282245.21271.marex@denx.de> Message-ID: <53AF2B52.2010007@posteo.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/28/2014 10:45 PM, Marek Vasut wrote: > On Saturday, June 28, 2014 at 10:37:35 PM, J?rg Krause wrote: >> On 06/28/2014 09:59 PM, Marek Vasut wrote: >>> I would actually be really glad if you could test plain u-boot-usb/master >>> and see if your USB problem is present there. Also, it would be really >>> nice to isolate the sequence of commands which triggers the bug, so we >>> have a proper reproducible testcase. >>> >>> Anyway, this thread is not a place where I would like to discuss this. >>> This should be discussed in the "original" thread, that is: >>> >>> Subj: [PATCH] usb: ci_udc: fix interaction with CONFIG_USB_ETH_CDC >> I cloned u-boot-usb/master and tested it. I am running "tftpd >> rootfs.ubifs" several times. Here is the log (I shortened the loading >> process bar): > [...] >> => tftp rootfs.ubifs >> using ci_udc, OUT ep- IN ep- STATUS ep- >> MAC 00:19:b8:00:00:02 >> HOST MAC 00:19:b8:00:00:01 >> high speed config #1: 2 mA, Ethernet Gadget, using CDC Ethernet >> USB network up! >> Using usb_ether device >> TFTP from server 10.0.0.1; our IP address is 10.0.0.2 >> Filename 'rootfs.ubifs'. >> Load address: 0x40008000 >> Loading: [snip] >> ##############################################################T ### >> [snip] >> 1.7 MiB/s > Here it's 1.7MB/s ... Sometimes I get a timeout "#T " while loading, which slows down the transfer rate. It is not always the case. > >> done >> Bytes transferred = 13205504 (c98000 hex) >> => tftp rootfs.ubifs >> using ci_udc, OUT ep- IN ep- STATUS ep- >> MAC 00:19:b8:00:00:02 >> HOST MAC 00:19:b8:00:00:01 >> high speed config #1: 2 mA, Ethernet Gadget, using CDC Ethernet >> USB network up! >> Using usb_ether device >> TFTP from server 10.0.0.1; our IP address is 10.0.0.2 >> Filename 'rootfs.ubifs'. >> Load address: 0x40008000 >> Loading: >> ################################################################# >> [snip] >> 5.6 MiB/s > ... and here it's 5.6 MB/s ... that's weird. > > [...] > >> The error always appears after calling tftp the third time! The first >> two runs work fine, but the third one always fails. I run this test >> about 20 times. > And finally, what is the contents of 'rootfs.ubifs' ? It's an rootf ubifs filesystem. I also tested other files. One small u-boot.sb file with a filesize of 400 KB and a 62 MB compressed ubuntu core file (ubuntu-core-14.04-core.ext4.gz). For all I get the same result. > > Best regards,