u-boot failed to build

43 views
Skip to first unread message

not you

unread,
Jan 1, 2018, 4:49:07 AM1/1/18
to BeagleBoard
I am following this guide to create an bootable SD card:
https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot

I encounter an error here:  make ARCH=arm CROSS_COMPILE=${CC}
My terminal throws this error:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
board/ti/am335x/mux.c:131:30: error: redefinition of ‘i2c2_pin_mux’
 static struct module_pin_mux i2c2_pin_mux[] = {
                              ^~~~~~~~~~~~
board/ti/am335x/mux.c:123:30: note: previous definition of ‘i2c2_pin_mux’ was here
 static struct module_pin_mux i2c2_pin_mux[] = {
                              ^~~~~~~~~~~~
board/ti/am335x/mux.c:328:6: error: redefinition of ‘enable_i2c2_pin_mux’
 void enable_i2c2_pin_mux(void)
      ^~~~~~~~~~~~~~~~~~~
board/ti/am335x/mux.c:323:6: note: previous definition of ‘enable_i2c2_pin_mux’ was here
 void enable_i2c2_pin_mux(void)
      ^~~~~~~~~~~~~~~~~~~
board/ti/am335x/mux.c:123:30: warning: ‘i2c2_pin_mux’ defined but not used [-Wunused-variable]
 static struct module_pin_mux i2c2_pin_mux[] = {
                              ^~~~~~~~~~~~
scripts/Makefile.build:280: recipe for target 'spl/board/ti/am335x/mux.o' failed
make[2]: *** [spl/board/ti/am335x/mux.o] Error 1
scripts/Makefile.spl:349: recipe for target 'spl/board/ti/am335x' failed
make[1]: *** [spl/board/ti/am335x] Error 2
Makefile:1394: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have no clue why this is happening.  Please help.

not you

unread,
Jan 1, 2018, 4:56:45 AM1/1/18
to BeagleBoard
After removing the u-boot folder and follow the steps again, everything works fine.  Any idea how that error is thrown anyways?

Jeff Andich

unread,
Jan 1, 2018, 9:44:37 AM1/1/18
to BeagleBoard

Hi,

Don’t know if this is your issue but...

How are you generating the .config file? When I build u-boot for the X15, I typically do a distclean, call another make command to generate the correct .config file from the appropriate defconfig , and then throw the command to build u-boot.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages