On Sun, Feb 12, 2012 at 8:09 PM, Tom Rini <tom.r...@gmail.com> wrote:
> On Sun, Feb 12, 2012 at 7:35 AM, Albert ARIBAUD > <albert.u.b...@aribaud.net> wrote: > <snip> > >>> Fail with various causes; I'll send out individual status mails (CC: > >>> interested parties) later today. > >>> > >>> > >> I pulled in a new u-boot-arm tree, and am able to compile both hawkboard > >> and hawkboard_uart fine. I use a 4.6.2 based gcc(arm-none-eabi) and a > 2.21 > >> binutils. Can you please send me a log of the errors you get for the > >> hawkboard. Thanks. > > > > > > Sure, here is what I get with ELDK4.2: > > > > uboot@lilith:~/src/u-boot-arm$ ./MAKEALL hawkboard > > Configuring for hawkboard board... > > arch/arm/cpu/arm926ejs/davinci/libdavinci.o: In function `lldiv': > > /home/uboot/src/u-boot-arm/include/div64.h:45: undefined reference to > > `__div64_32' > > drivers/mtd/nand/libnand.o: In function `nand_command': > > /home/uboot/src/u-boot-arm/drivers/mtd/nand/nand_base.c:586: undefined > > reference to `udelay' > > /home/uboot/src/u-boot-arm/drivers/mtd/nand/nand_base.c:602: undefined > > reference to `udelay' > > /home/uboot/src/u-boot-arm/drivers/mtd/nand/nand_base.c:608: undefined > > reference to `udelay' > > make[1]: *** [/home/uboot/src/u-boot-arm/spl/u-boot-spl] Erreur 1 > > make: *** [spl/u-boot-spl.bin] Erreur 2 > > text data bss dec hex filename > > 191224 6388 54664 252276 3d974 ./u-boot > > > > --------------------- SUMMARY ---------------------------- > > Boards compiled: 1 > > Boards with warnings or errors: 1 ( hawkboard ) > > ---------------------------------------------------------- > > Hmm, built-in udelay w/ newer toolchains, not in older ones? > > Or is it that function-sections is not working as expected with the older toolchains? The above error is with the nand_command function in the nand_base.c which should not be getting linked at all -- the nand_command function in the nand_spl_simple.c gets used for the spl build. The functions in nand_base.c should get discarded, which should take care of the undefined udelay. I disassembled the u-boot-spl file with my toolchain, and don't see a udelay getting included at all -- as is expected with the spl build. Btw, the nand_command function in nand_spl_simple.c is getting name mangled by the compiler. -sughosh
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot