[U-Boot] USB not working with 4.3.2 gcc compiler in u-boot 1.1.5

Wolfgang Denk wd at denx.de
Fri Jul 17 12:39:08 CEST 2009


Dear Virupax SS,

In message <OFD81A0F58.8612F8F9-ON652575F6.002D2C08-652575F6.0030964A at lntemsys.com> you wrote:
>
> You are correct if i use u-boot 1.3.0 with this 4.3.2 compiler, usb works 
> fine.

Good. Note that U-Boot 1.3.0 is very, very old, too.

> we have done a lot of customization on u-boot 1.1.5 and it will take a lot 
> of time to do those changes to the new u-boot 1.3.0. 

"new u-boot 1.3.0" is an oxymoron. U-Boot 1.3.0 is nearly two years
old.

I hope you will now learn the lesson of what it gives to you to
maintain an out-of-tree port. If you had pushed your changes upstream
when 1.1.5 was current, you wouldn't have any problems now. I can only
hope that you will do this after adapting your code to a recent code
base (make sure to use top-of-tree from git for this).

> can u please tell me what compiler related change is done in the new 
> u-boot releases so it works with the 4.3.2 GCC compiler.In which part of 
> the code it is done , is it in the makefile.

It makes no sense to attempt to backport that stuff to such an ancient
release. Please update your code.

> When we used 4.3.2 gcc to compile the u-boot 1.1.5 , ethernet drivers were 
> not working and after making some of the variables volatile , ethernet 
> driver worked fine.

We don't access registers through (volatile) pointers any more for
this very reason - today we are using proper accessor functions that
make sure compiler optimizations will do no harm.

Just use current code.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Perfection is reached, not when there is no longer anything  to  add,
but when there is no longer anything to take away.
                                           - Antoine de Saint-Exupery


More information about the U-Boot mailing list