* [U-Boot] Broken board: mpc5121ads
@ 2009-09-25 10:30 Jerry Van Baren
2009-09-25 12:22 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Jerry Van Baren @ 2009-09-25 10:30 UTC (permalink / raw)
To: u-boot
Hi Martha, list,
A couple of lines got scrambled (exchanged!?) on the mpc5121. I did not
have the time to do a "git bisect" or "blame" to figure out where it
happened.
The error is:
$ cat LOG/mpc5121ads.ERR
mpc5121ads.c: In function 'initdram':
mpc5121ads.c:176: error: expected '}' before numeric constant
make[1]: *** [mpc5121ads.o] Error 1
make: *** [board/freescale/mpc5121ads/libmpc5121ads.a] Error 2
The problem is the list is re-ordered in
./board/freescale/mpc5121ads/mpc5121ads.c
u32 elpida_mddrc_config[4] = {
CONFIG_SYS_MDDRC_TIME_CFG0,
CONFIG_SYS_MDDRC_TIME_CFG1_ELPIDA,
CONFIG_SYS_MDDRC_TIME_CFG2_ELPIDA <-- should be last?
CONFIG_SYS_MDDRC_SYS_CFG_ELPIDA,
};
Doing a quick search in gmain, the code in question was added by Martha
M Stan (CC:ed):
<http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68478>
If someone fixes it, that would be great, otherwise I'll look at it tonight.
Thanks,
gvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Broken board: mpc5121ads
2009-09-25 10:30 [U-Boot] Broken board: mpc5121ads Jerry Van Baren
@ 2009-09-25 12:22 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-09-25 12:22 UTC (permalink / raw)
To: u-boot
Dear Jerry Van Baren,
In message <4ABC9BCC.9060801@gmail.com> you wrote:
>
> A couple of lines got scrambled (exchanged!?) on the mpc5121. I did not
> have the time to do a "git bisect" or "blame" to figure out where it
> happened.
>
> The error is:
>
> $ cat LOG/mpc5121ads.ERR
> mpc5121ads.c: In function 'initdram':
> mpc5121ads.c:176: error: expected '}' before numeric constant
> make[1]: *** [mpc5121ads.o] Error 1
> make: *** [board/freescale/mpc5121ads/libmpc5121ads.a] Error 2
>
> The problem is the list is re-ordered in
> ./board/freescale/mpc5121ads/mpc5121ads.c
> u32 elpida_mddrc_config[4] = {
> CONFIG_SYS_MDDRC_TIME_CFG0,
> CONFIG_SYS_MDDRC_TIME_CFG1_ELPIDA,
> CONFIG_SYS_MDDRC_TIME_CFG2_ELPIDA <-- should be last?
> CONFIG_SYS_MDDRC_SYS_CFG_ELPIDA,
> };
D*mn. I did fix this. I though. And I did run MAKEALL after that.
I thought.
> Doing a quick search in gmain, the code in question was added by Martha
> M Stan (CC:ed):
> <http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68478>
No, this was not Martha's fault, it was mine. I reordered the array,
and messed it up. Sorry.
> If someone fixes it, that would be great, otherwise I'll look at it tonight.
Done. Thanks for pointing out.
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
The biggest difference between time and space is that you can't reuse
time. - Merrick Furst
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Broken board: mpc5121ads
@ 2009-09-25 13:25 m marx
0 siblings, 0 replies; 3+ messages in thread
From: m marx @ 2009-09-25 13:25 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
I really don't like the ordering of those registers the way you fixed it last night. My comment before the array was "in order of the 4 mddrc registers" I recommented to "in memory order" If you change it to your way then you should recomment at least.
I redid it to save this ordering AND not have confusing array indexes. Please reconsider.
-Martha
PS - the last patch is the good one ... got flustered and sent the wrong one first and then forgot to fix the reordered ELPIDA settings so I hgad to redo again.
-----Original Message-----
From: Wolfgang Denk wd at denx.de
Sent 9/25/2009 8:22:09 AM
To: Jerry Van Baren gvb.uboot at gmail.com
Cc: U-Boot u-boot at lists.denx.de, mmarx at silicontkx.com
Subject: Re: [U-Boot] Broken board: mpc5121ads
Dear Jerry Van Baren,
In message 4ABC9BCC.9060801 at gmail.com you wrote:
A couple of lines got scrambled (exchanged!?) on the mpc5121. I did not
have the time to do a "git bisect" or "blame" to figure out where it
happened.
The error is:
$ cat LOG/mpc5121ads.ERR
mpc5121ads.c: In function 'initdram':
mpc5121ads.c:176: error: expected '}' before numeric constant
make[1]: *** [mpc5121ads.o] Error 1
make: *** [board/freescale/mpc5121ads/libmpc5121ads.a] Error 2
The problem is the list is re-ordered in
./board/freescale/mpc5121ads/mpc5121ads.c
u32 elpida_mddrc_config[4] = {
CONFIG_SYS_MDDRC_TIME_CFG0,
CONFIG_SYS_MDDRC_TIME_CFG1_ELPIDA,
CONFIG_SYS_MDDRC_TIME_CFG2_ELPIDA -- should be last?
CONFIG_SYS_MDDRC_SYS_CFG_ELPIDA,
D*mn. I did fix this. I though. And I did run MAKEALL after that.
I thought.
Doing a quick search in gmain, the code in question was added by Martha
M Stan (CC:ed):
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68478
No, this was not Martha's fault, it was mine. I reordered the array,
and messed it up. Sorry.
If someone fixes it, that would be great, otherwise I'll look at it tonight.
Done. Thanks for pointing out.
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
The biggest difference between time and space is that you can't reuse
time. - Merrick Furst
??????????
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-25 13:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-25 10:30 [U-Boot] Broken board: mpc5121ads Jerry Van Baren
2009-09-25 12:22 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2009-09-25 13:25 m marx
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.