From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro Shimoda Date: Fri, 12 Sep 2008 19:53:01 +0900 Subject: [U-Boot] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit In-Reply-To: <19453016.post@talk.nabble.com> References: <18868090.post@talk.nabble.com> <29ab51dc0808071835u6248f23fyfc55165edf63497e@mail.gmail.com> <18887349.post@talk.nabble.com> <19411908.post@talk.nabble.com> <20080910211346.c79dbdc8.iwamatsu@nigauri.org> <48C87F9C.2080202@renesas.com> <19429512.post@talk.nabble.com> <48C9084D.3000807@renesas.com> <19449833.post@talk.nabble.com> <48CA0FC6.8020204@renesas.com> <19453016.post@talk.nabble.com> Message-ID: <48CA4A0D.6050005@renesas.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, thaoth thaoth wrote: > Can you help me to resolve this bug? I think that it is a problem of the unalignment access. Please change your compiler or change a source code as follows: diff --git a/common/usb.c b/common/usb.c index 9502f39..1acf51d 100644 --- a/common/usb.c +++ b/common/usb.c @@ -250,7 +250,10 @@ int usb_set_maxpacket(struct usb_device *dev) for(i=0; iconfig.bNumInterfaces;i++) { for(ii=0; iiconfig.if_desc[i].bNumEndpoints; ii++) { - ep = &dev->config.if_desc[i].ep_desc[ii]; + struct usb_endpoint_descriptor tmp; + memcpy(&tmp, &dev->config.if_desc[i].ep_desc[ii], + sizeof(struct usb_endpoint_descriptor)); + ep = &tmp; b=ep->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; if((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)==USB_ENDPOINT_XFER_CONTROL) { /* Control => bidirectional */ > Thank you very much for your supports! You're welcome! :) Best regards, Yoshihiro Shimoda