public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed
@ 2007-03-19 12:02 Miao Qingjun
  2007-03-19 12:28 ` Wolfgang Denk
  2007-03-19 13:47 ` Jerry Van Baren
  0 siblings, 2 replies; 6+ messages in thread
From: Miao Qingjun @ 2007-03-19 12:02 UTC (permalink / raw)
  To: u-boot

Hi,

I encountered a big problem that u-boot 1.1.4 compiled by eldk 4.1 for
mpc82xx crashed.

But if I build it using gcc-3.4.6 based cross tools, u-boot on my board
boots correctly.

u-boot built by eldk 4.1 (gcc-4.0) failed, nothing occures on serial port.




Somebody sufered the same problem?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed
  2007-03-19 12:02 [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed Miao Qingjun
@ 2007-03-19 12:28 ` Wolfgang Denk
  2007-03-19 12:37   ` Miao Qingjun
  2007-03-19 13:47 ` Jerry Van Baren
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2007-03-19 12:28 UTC (permalink / raw)
  To: u-boot

In message <45FE7BD7.2000506@centecnetworks.com> you wrote:
>
> I encountered a big problem that u-boot 1.1.4 compiled by eldk 4.1 for
> mpc82xx crashed.

U-Boot 1.1.4 is from 2005, i. e. very old compared to gcc 4.x
compilers.

You must not expect that your ancient code is still usable with recent
tools.

> Somebody sufered the same problem?

Update your code. Guess why ELDK 4.1 has U-Boot 1.2.0 included?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I don't see any direct evidence ...  but, then, my crystal ball is in
dire need of an ectoplasmic upgrade. :-)              -- Howard Smith

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed
  2007-03-19 12:28 ` Wolfgang Denk
@ 2007-03-19 12:37   ` Miao Qingjun
  2007-03-19 13:10     ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Miao Qingjun @ 2007-03-19 12:37 UTC (permalink / raw)
  To: u-boot

An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070319/e4c78320/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed
  2007-03-19 12:37   ` Miao Qingjun
@ 2007-03-19 13:10     ` Wolfgang Denk
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2007-03-19 13:10 UTC (permalink / raw)
  To: u-boot

In message <45FE83FD.7080706@centecnetworks.com> you wrote:
> --===============1427169448==
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>

DON'T POST HTML HERE!!!!


> Actually I first build u-boot-1.1.4 using eldk 4.0, it also failed
> booting.<br>
> And eldk 4.0 delivered with u-boot 1.1.4<br>

The version of U-Boot that has been shipped with ELDK 4.0 is 1.1.4
indeed, but it has been tested and is working fine on a couple of
MPC82xx systems we have here.

>     <pre wrap="">I encountered a big problem that u-boot 1.1.4 compiled by eldk 4.1 for
> mpc82xx crashed.

So this must be a problem in your own board configuration.

I repeat my recommendation to use current code (top of tree from  git
repository).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Above all else -- sky.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed
  2007-03-19 12:02 [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed Miao Qingjun
  2007-03-19 12:28 ` Wolfgang Denk
@ 2007-03-19 13:47 ` Jerry Van Baren
  2007-03-20  2:19   ` Miao Qingjun
  1 sibling, 1 reply; 6+ messages in thread
From: Jerry Van Baren @ 2007-03-19 13:47 UTC (permalink / raw)
  To: u-boot

Miao Qingjun wrote:
> Hi,
> 
> I encountered a big problem that u-boot 1.1.4 compiled by eldk 4.1 for
> mpc82xx crashed.
> 
> But if I build it using gcc-3.4.6 based cross tools, u-boot on my board
> boots correctly.
> 
> u-boot built by eldk 4.1 (gcc-4.0) failed, nothing occures on serial
> port.
> 
> Somebody sufered the same problem?

This is often a missing "volatile" qualifier on shared variable
(particularly hardware registers) references.  Newer compiler versions
optimize more aggressively, making missing "volatile"s visible.

If you use -O0 (no optimization) does it fix the problem?  If it does,
it most likely is an optimization/volatile issue.  The hard part is to
figure out where.  Device handling and board-specific code is the place
to start.

Best regards,
gvb

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed
  2007-03-19 13:47 ` Jerry Van Baren
@ 2007-03-20  2:19   ` Miao Qingjun
  0 siblings, 0 replies; 6+ messages in thread
From: Miao Qingjun @ 2007-03-20  2:19 UTC (permalink / raw)
  To: u-boot

Thanks very much.

I tried it using "-O0" and it's OK.
I think u-boot 1.1.4 is not gcc 4.0 friendly.
And I will try u-boot 1.2.0 recommended by Wolfgang Denk.


Jerry Van Baren ??:
> Miao Qingjun wrote:
>   
>> Hi,
>>
>> I encountered a big problem that u-boot 1.1.4 compiled by eldk 4.1 for
>> mpc82xx crashed.
>>
>> But if I build it using gcc-3.4.6 based cross tools, u-boot on my board
>> boots correctly.
>>
>> u-boot built by eldk 4.1 (gcc-4.0) failed, nothing occures on serial
>> port.
>>
>> Somebody sufered the same problem?
>>     
>
> This is often a missing "volatile" qualifier on shared variable
> (particularly hardware registers) references.  Newer compiler versions
> optimize more aggressively, making missing "volatile"s visible.
>
> If you use -O0 (no optimization) does it fix the problem?  If it does,
> it most likely is an optimization/volatile issue.  The hard part is to
> figure out where.  Device handling and board-specific code is the place
> to start.
>
> Best regards,
> gvb
>
>
>   

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-20  2:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 12:02 [U-Boot-Users] u-boot 1.1.4 compiled by eldk 4.1 for mpc82xx crashed Miao Qingjun
2007-03-19 12:28 ` Wolfgang Denk
2007-03-19 12:37   ` Miao Qingjun
2007-03-19 13:10     ` Wolfgang Denk
2007-03-19 13:47 ` Jerry Van Baren
2007-03-20  2:19   ` Miao Qingjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox