* [U-Boot] sbc8548 build broken?
@ 2011-11-17 18:42 Robert Hurdle
2011-11-17 19:04 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Robert Hurdle @ 2011-11-17 18:42 UTC (permalink / raw)
To: u-boot
Hello,
I downloaded the ELDK 4.2 and installed it. I got the u-boot
source from git://git.denx.de/u-boot-mpc85xx.git.
When I try to build u-boot for sbc8548 I get the following error:
"arch/powerpc/cpu/mpc8xxx/ddr/libddr.o: In function `fsl_ddr_compute':"
"/home/rhurdle/proj/u-boot/arch/powerpc/cpu/mpc8xxx/ddr/main.c:375: undefined reference to `fsl_ddr_get_dimm_params'"
"make: *** [u-boot] Error 1"
Any help or advice is appreciated.
Thanks,
Robert Hurdle
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
2011-11-17 18:42 Robert Hurdle
@ 2011-11-17 19:04 ` Wolfgang Denk
[not found] ` <5498E86A4A68B14A8A06D0380640D04A016D217A688B@atca01em01.adsi.aitech.ent>
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Denk @ 2011-11-17 19:04 UTC (permalink / raw)
To: u-boot
Dear Robert Hurdle,
In message <5498E86A4A68B14A8A06D0380640D04A016D217A6860@atca01em01.adsi.aitech.ent> you wrote:
>
> I downloaded the ELDK 4.2 and installed it. I got the u-boot
> source from git://git.denx.de/u-boot-mpc85xx.git.
>
> When I try to build u-boot for sbc8548 I get the following error:
>
> "arch/powerpc/cpu/mpc8xxx/ddr/libddr.o: In function `fsl_ddr_compute':"
> "/home/rhurdle/proj/u-boot/arch/powerpc/cpu/mpc8xxx/ddr/main.c:375: undefined reference to `fsl_ddr_get_dimm_params'"
> "make: *** [u-boot] Error 1"
I cannot confirm this - using current top of tree I get:
+ MAKEALL_LOGDIR=/work/wd/tmp-ppc-LOG
+ BUILD_DIR=/work/wd/tmp-ppc
+ ./MAKEALL sbc8548
Configuring for sbc8548 board...
text data bss dec hex filename
199928 8956 24576 233460 38ff4 /work/wd/tmp-ppc/u-boot
--------------------- SUMMARY ----------------------------
Boards compiled: 1
----------------------------------------------------------
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
Pig: An animal (Porcus omnivorous) closely allied to the human race
by the splendor and vivacity of its appetite, which, however, is in-
ferior in scope, for it balks at pig. - Ambrose Bierce
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
[not found] ` <5498E86A4A68B14A8A06D0380640D04A016D217A688B@atca01em01.adsi.aitech.ent>
@ 2011-11-17 19:54 ` Wolfgang Denk
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2011-11-17 19:54 UTC (permalink / raw)
To: u-boot
Dear Robert Hurdle,
please do not top-post / full quote. And always make sure to keep the
mailing list on cc:
In message <5498E86A4A68B14A8A06D0380640D04A016D217A688B@atca01em01.adsi.aitech.ent> you wrote:
>
> Thank you for checking it.
>
> What does "... using current top of tree" mean?
Top of tree of the master branch of the mainline repository, see
http://git.denx.de/?p=u-boot.git;a=summary
So be specific, git commit 0562219 2011-11-17 14:27:11 +0100
tools: checkpatch.pl from Linux added to tools
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 bad reputation UNIX has gotten is totally undeserved, laid on by
people who don't understand, who have not gotten in there and tried
anything." -- Jim Joyce, owner of Jim Joyce's UNIX Bookstore
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
@ 2011-11-17 23:33 Robert Hurdle
2011-11-18 2:34 ` Marek Vasut
2011-11-18 4:10 ` Kumar Gala
0 siblings, 2 replies; 9+ messages in thread
From: Robert Hurdle @ 2011-11-17 23:33 UTC (permalink / raw)
To: u-boot
Hello Mr. Denk,
You wrote:
>you wrote:
>>
>> I downloaded the ELDK 4.2 and installed it. I got the u-boot
>> source from git://git.denx.de/u-boot-mpc85xx.git.
>>
>> When I try to build u-boot for sbc8548 I get the following error:
>>
>> "arch/powerpc/cpu/mpc8xxx/ddr/libddr.o: In function `fsl_ddr_compute':"
>> "/home/rhurdle/proj/u-boot/arch/powerpc/cpu/mpc8xxx/ddr/main.c:375: undefined reference to `fsl_ddr_get_dimm_params'"
>> "make: *** [u-boot] Error 1"
>
>I cannot confirm this - using current top of tree I get:
>
>+ MAKEALL_LOGDIR=/work/wd/tmp-ppc-LOG
>+ BUILD_DIR=/work/wd/tmp-ppc
>+ ./MAKEALL sbc8548
>Configuring for sbc8548 board...
> text data bss dec hex filename
> 199928 8956 24576 233460 38ff4 /work/wd/tmp-ppc/u-boot
>
>--------------------- SUMMARY ---------------------------- Boards compiled: 1
>----------------------------------------------------------
I have obtained the source from the current top of the tree.
When I make using the following:
make CROSS_COMPILE=ppc_85xx- sbc8548_PCI_33_PCIE_config
make CROSS_COMPILE=ppc_85xx- OPTFLAGS=-O2 all
I am still having the same undefined reference above.
Should I be building with ppc_8xx instead? If yes, why?
Thanks,
Robert Hurdle
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
2011-11-17 23:33 [U-Boot] sbc8548 build broken? Robert Hurdle
@ 2011-11-18 2:34 ` Marek Vasut
2011-11-18 4:10 ` Kumar Gala
1 sibling, 0 replies; 9+ messages in thread
From: Marek Vasut @ 2011-11-18 2:34 UTC (permalink / raw)
To: u-boot
> Hello Mr. Denk,
>
> You wrote:
> >you wrote:
> >> I downloaded the ELDK 4.2 and installed it. I got the u-boot
> >> source from git://git.denx.de/u-boot-mpc85xx.git.
> >>
> >> When I try to build u-boot for sbc8548 I get the following error:
> >>
> >> "arch/powerpc/cpu/mpc8xxx/ddr/libddr.o: In function `fsl_ddr_compute':"
> >> "/home/rhurdle/proj/u-boot/arch/powerpc/cpu/mpc8xxx/ddr/main.c:375:
> >> undefined reference to `fsl_ddr_get_dimm_params'" "make: *** [u-boot]
> >> Error 1"
> >
> >I cannot confirm this - using current top of tree I get:
> >
> >+ MAKEALL_LOGDIR=/work/wd/tmp-ppc-LOG
> >+ BUILD_DIR=/work/wd/tmp-ppc
> >+ ./MAKEALL sbc8548
> >Configuring for sbc8548 board...
> >
> > text data bss dec hex filename
> >
> > 199928 8956 24576 233460 38ff4 /work/wd/tmp-ppc/u-boot
> >
> >--------------------- SUMMARY ---------------------------- Boards
> >compiled: 1 ----------------------------------------------------------
>
> I have obtained the source from the current top of the tree.
>
> When I make using the following:
>
> make CROSS_COMPILE=ppc_85xx- sbc8548_PCI_33_PCIE_config
> make CROSS_COMPILE=ppc_85xx- OPTFLAGS=-O2 all
>
> I am still having the same undefined reference above.
>
> Should I be building with ppc_8xx instead? If yes, why?
>
> Thanks,
>
> Robert Hurdle
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
$ CROSS_COMPILE=powerpc-linux- ARCH=powerpc ./MAKEALL sbc8548_PCI_33_PCIE
Configuring for sbc8548_PCI_33_PCIE - Board: sbc8548, Options: PCI,33,PCIE
text data bss dec hex filename
224622 19288 25000 268910 41a6e ./u-boot
--------------------- SUMMARY ----------------------------
Boards compiled: 1
----------------------------------------------------------
So can you try MAKEALL ?
M
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
2011-11-17 23:33 [U-Boot] sbc8548 build broken? Robert Hurdle
2011-11-18 2:34 ` Marek Vasut
@ 2011-11-18 4:10 ` Kumar Gala
2011-11-18 5:01 ` Marek Vasut
1 sibling, 1 reply; 9+ messages in thread
From: Kumar Gala @ 2011-11-18 4:10 UTC (permalink / raw)
To: u-boot
On Nov 17, 2011, at 5:33 PM, Robert Hurdle wrote:
> Hello Mr. Denk,
>
> You wrote:
>> you wrote:
>>>
>>> I downloaded the ELDK 4.2 and installed it. I got the u-boot
>>> source from git://git.denx.de/u-boot-mpc85xx.git.
>>>
>>> When I try to build u-boot for sbc8548 I get the following error:
>>>
>>> "arch/powerpc/cpu/mpc8xxx/ddr/libddr.o: In function `fsl_ddr_compute':"
>>> "/home/rhurdle/proj/u-boot/arch/powerpc/cpu/mpc8xxx/ddr/main.c:375: undefined reference to `fsl_ddr_get_dimm_params'"
>>> "make: *** [u-boot] Error 1"
>>
>> I cannot confirm this - using current top of tree I get:
>>
>> + MAKEALL_LOGDIR=/work/wd/tmp-ppc-LOG
>> + BUILD_DIR=/work/wd/tmp-ppc
>> + ./MAKEALL sbc8548
>> Configuring for sbc8548 board...
>> text data bss dec hex filename
>> 199928 8956 24576 233460 38ff4 /work/wd/tmp-ppc/u-boot
>>
>> --------------------- SUMMARY ---------------------------- Boards compiled: 1
>> ----------------------------------------------------------
>
> I have obtained the source from the current top of the tree.
>
> When I make using the following:
>
> make CROSS_COMPILE=ppc_85xx- sbc8548_PCI_33_PCIE_config
> make CROSS_COMPILE=ppc_85xx- OPTFLAGS=-O2 all
>
> I am still having the same undefined reference above.
>
> Should I be building with ppc_8xx instead? If yes, why?
>
> Thanks,
This appears to be due to you trying to build with OPTFLAGS=-O2. Remove that and see what happens.
- k
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
2011-11-18 4:10 ` Kumar Gala
@ 2011-11-18 5:01 ` Marek Vasut
2011-11-18 6:19 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Marek Vasut @ 2011-11-18 5:01 UTC (permalink / raw)
To: u-boot
> On Nov 17, 2011, at 5:33 PM, Robert Hurdle wrote:
> > Hello Mr. Denk,
> >
> > You wrote:
> >> you wrote:
> >>> I downloaded the ELDK 4.2 and installed it. I got the u-boot
> >>> source from git://git.denx.de/u-boot-mpc85xx.git.
> >>>
> >>> When I try to build u-boot for sbc8548 I get the following error:
> >>>
> >>> "arch/powerpc/cpu/mpc8xxx/ddr/libddr.o: In function
> >>> `fsl_ddr_compute':"
> >>> "/home/rhurdle/proj/u-boot/arch/powerpc/cpu/mpc8xxx/ddr/main.c:375:
> >>> undefined reference to `fsl_ddr_get_dimm_params'" "make: *** [u-boot]
> >>> Error 1"
> >>
> >> I cannot confirm this - using current top of tree I get:
> >>
> >> + MAKEALL_LOGDIR=/work/wd/tmp-ppc-LOG
> >> + BUILD_DIR=/work/wd/tmp-ppc
> >> + ./MAKEALL sbc8548
> >> Configuring for sbc8548 board...
> >>
> >> text data bss dec hex filename
> >>
> >> 199928 8956 24576 233460 38ff4 /work/wd/tmp-ppc/u-boot
> >>
> >> --------------------- SUMMARY ---------------------------- Boards
> >> compiled: 1 ----------------------------------------------------------
> >>
> > I have obtained the source from the current top of the tree.
> >
> > When I make using the following:
> > make CROSS_COMPILE=ppc_85xx- sbc8548_PCI_33_PCIE_config
> > make CROSS_COMPILE=ppc_85xx- OPTFLAGS=-O2 all
> >
> > I am still having the same undefined reference above.
> >
> > Should I be building with ppc_8xx instead? If yes, why?
> >
> > Thanks,
>
> This appears to be due to you trying to build with OPTFLAGS=-O2. Remove
> that and see what happens.
>
That seems to be a bug in the compiler, if you want -O2, try ELDK5.1 (which has
newer compiler).
M
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
2011-11-18 5:01 ` Marek Vasut
@ 2011-11-18 6:19 ` Wolfgang Denk
2011-11-18 22:16 ` Scott Wood
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Denk @ 2011-11-18 6:19 UTC (permalink / raw)
To: u-boot
Dear Marek Vasut,
In message <201111180601.20086.marek.vasut@gmail.com> you wrote:
>
> > > When I make using the following:
> > > make CROSS_COMPILE=ppc_85xx- sbc8548_PCI_33_PCIE_config
> > > make CROSS_COMPILE=ppc_85xx- OPTFLAGS=-O2 all
> > >
> > > I am still having the same undefined reference above.
> > >
> > > Should I be building with ppc_8xx instead? If yes, why?
> > >
> > > Thanks,
> >
> > This appears to be due to you trying to build with OPTFLAGS=-O2. Remove
> > that and see what happens.
> >
>
> That seems to be a bug in the compiler, if you want -O2, try ELDK5.1 (which has
> newer compiler).
No. He is using CROSS_COMPILE=ppc_85xx- which means ELDK 4.2 or
similar. And there is no such compiler problem with any of these.
The "-O2" is just inappropriate here.
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
He who hesitates is not only lost, but miles from the next exit.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] sbc8548 build broken?
2011-11-18 6:19 ` Wolfgang Denk
@ 2011-11-18 22:16 ` Scott Wood
0 siblings, 0 replies; 9+ messages in thread
From: Scott Wood @ 2011-11-18 22:16 UTC (permalink / raw)
To: u-boot
On Fri, Nov 18, 2011 at 07:19:52AM +0100, Wolfgang Denk wrote:
> Dear Marek Vasut,
>
> In message <201111180601.20086.marek.vasut@gmail.com> you wrote:
> >
> > > > When I make using the following:
> > > > make CROSS_COMPILE=ppc_85xx- sbc8548_PCI_33_PCIE_config
> > > > make CROSS_COMPILE=ppc_85xx- OPTFLAGS=-O2 all
> > > >
> > > > I am still having the same undefined reference above.
> > > >
> > > > Should I be building with ppc_8xx instead? If yes, why?
> > > >
> > > > Thanks,
> > >
> > > This appears to be due to you trying to build with OPTFLAGS=-O2. Remove
> > > that and see what happens.
> > >
> >
> > That seems to be a bug in the compiler, if you want -O2, try ELDK5.1 (which has
> > newer compiler).
>
> No. He is using CROSS_COMPILE=ppc_85xx- which means ELDK 4.2 or
> similar. And there is no such compiler problem with any of these.
> The "-O2" is just inappropriate here.
Regardless of "appropriateness", it shouldn't break with -O2 other than
possibly not meeting space constraints.
arch/powerpc/cpu/mpc8xxx/ddr/main.c references fsl_ddr_get_dimm_params()
when CONFIG_DDR_SPD and CONFIG_SPD_EEPROM are unset (both are unset on
sbc8548). sbc8548 board code does not supply this function. The code is
broken. It builds with some toolchains because it seems that nothing in
arch/powerpc/cpu/mpc8xxx/ddr/main.c is ever referenced on this board, so
it all gets gc-sectioned away. Apparently for some reason that isn't
happening properly with -O2 on some toolchains -- but it's not something
we should be relying on for anything other than size optimization.
-Scott
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-11-18 22:16 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 23:33 [U-Boot] sbc8548 build broken? Robert Hurdle
2011-11-18 2:34 ` Marek Vasut
2011-11-18 4:10 ` Kumar Gala
2011-11-18 5:01 ` Marek Vasut
2011-11-18 6:19 ` Wolfgang Denk
2011-11-18 22:16 ` Scott Wood
-- strict thread matches above, loose matches on Subject: below --
2011-11-17 18:42 Robert Hurdle
2011-11-17 19:04 ` Wolfgang Denk
[not found] ` <5498E86A4A68B14A8A06D0380640D04A016D217A688B@atca01em01.adsi.aitech.ent>
2011-11-17 19:54 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox