From mboxrd@z Thu Jan 1 00:00:00 1970 From: Veli-Pekka Peltola Date: Fri, 11 Nov 2011 16:07:03 +0200 Subject: [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support In-Reply-To: <1320830307-4762-21-git-send-email-marek.vasut@gmail.com> References: <1320830307-4762-1-git-send-email-marek.vasut@gmail.com> <1320830307-4762-21-git-send-email-marek.vasut@gmail.com> Message-ID: <4EBD2C07.4080208@bluegiga.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, On 11/09/2011 11:18 AM, Marek Vasut wrote: > This enables the second port, aka. the port with the USB connector on the > M28EVK. Which version of GCC you are using? I noticed that "usb start" freezes after message "scanning bus for devices..." if I had memory stick connected. I used GCC 4.6.1 that comes with Yocto 1.1. Without stick I did not have any such problems. The board is very similar to M28EVK. With GCC 4.3.4 it works fine. I also tested both compilers on our Atmel AT91SAM9260 based device but I didn't have such problems. Any ideas how to debug this further? I noticed some comments related to GCC in common/usb.c before usb_set_maxpacket_ep function. I also printed out i and ii in usb_set_maxpacket. Results were something that I didn't expect: i: 0, ii: 0 i: 0, ii: 1 i: 4, ii: -30879 i: 4, ii: -30878 -- Veli-Pekka Peltola