From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 18 Nov 2011 06:01:19 +0100 Subject: [U-Boot] sbc8548 build broken? In-Reply-To: <705CDAA7-8AF0-4B91-9ECE-64F259E3DDFB@kernel.crashing.org> References: <5498E86A4A68B14A8A06D0380640D04A016D217A691F@atca01em01.adsi.aitech.ent> <705CDAA7-8AF0-4B91-9ECE-64F259E3DDFB@kernel.crashing.org> Message-ID: <201111180601.20086.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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