[U-Boot] [PATCH] omap3: beagle: Fix build warning

Albert ARIBAUD albert.u.boot at aribaud.net
Wed Sep 7 08:11:51 CEST 2011


(Cc:ing Dirk for the non-patch-related error)

Hi Sanjeev,

Le 05/09/2011 12:25, Sanjeev Premi a écrit :

> This patch fixes the warning dure to recent changes to the board
> configuration:
> cmd_i2c.o cmd_i2c.c -c
> cmd_i2c.c:109:1: warning: missing braces around initializer
> cmd_i2c.c:109:1: warning: (near initialization for 'i2c_no_probes[0]')
>
> Signed-off-by: Sanjeev Premi<premi at ti.com>
> Cc: Jason Kridner<jkridner at beagleboard.org>
> ---

Applied to u-boot-arm/master as it does fix the warning.

Note however that there is an error, independent from this patch, in 
building this board with ELDK42 and CS 2011q1 :

Configuring for omap3_beagle board...
beagle.c:532: warning: initialization from incompatible pointer type
led.c: In function '__led_toggle':
led.c:62: warning: implicit declaration of function 'omap_get_gpio_dataout'
board/ti/beagle/libbeagle.o: In function `__led_toggle':
/home/uboot/src/u-boot-arm/board/ti/beagle/led.c:62: undefined reference 
to `omap_get_gpio_dataout'
arm-linux-ld: BFD (GNU Binutils) 2.17.90.20070806 assertion fail 
/opt/eldk/build/arm-2008-11-24/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/binutils-2.17.90/bfd/elf32-arm.c:8886
arm-linux-ld: BFD (GNU Binutils) 2.17.90.20070806 assertion fail 
/opt/eldk/build/arm-2008-11-24/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/binutils-2.17.90/bfd/elf32-arm.c:9117

(foillows a linker segmentation error)

Anyone can reproduce and tell what the issue is?

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list