[#7701] build u-boot with early-printk config fails

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

[#7701] build u-boot with early-printk config fails

Submitted By: Mingquan Pan

Open Date

2013-03-12 03:43:34     Close Date

2013-03-20 02:55:51

Priority:

Medium     Assignee:

Nobody

Category:

N/A     Fixed In Release:

2013R1

Found In Release:

2013R1     Status:

Closed

Board:

EZ-Kit Lite     Processor:

BF609

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: build u-boot with early-printk config fails

Details:

 

build u-boot with early-printk config fails.

 

UNDEF_LST=`bfin-uclinux-objdump -x board/bf609-ezkit/libbf609-ezkit.o api/libapi.o arch/blackfin/cpu/libblackfin.o arch/blackfin/lib/libblackfin.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dfu/libdfu.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/battery/libbattery.o drivers/power/fuel_gauge/libfuel_gauge.o drivers/power/libpower.o drivers/power/pmic/libpmic.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/sound/libsound.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb-new/libusb_musb-new.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cbfs/libcbfs.o fs/cramfs/libcramfs.o fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/libfs.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o fs/zfs/libzfs.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o test/libtest.o | sed  -n -e 's/.*\(__u_boot_list_.*\)/-u\1/p'|sort|uniq`; cd /home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT && bfin-uclinux-ld.bfd -m elf32bfin  -T u-boot.lds --gc-sections -Bstatic $UNDEF_LST arch/blackfin/cpu/start.o --start-group api/libapi.o arch/blackfin/cpu/libblackfin.o arch/blackfin/lib/libblackfin.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dfu/libdfu.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/battery/libbattery.o drivers/power/fuel_gauge/libfuel_gauge.o drivers/power/libpower.o drivers/power/pmic/libpmic.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/sound/libsound.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb-new/libusb_musb-new.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cbfs/libcbfs.o fs/cramfs/libcramfs.o fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/libfs.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o fs/zfs/libzfs.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o test/libtest.o board/bf609-ezkit/libbf609-ezkit.o --end-group -L /opt/uClinux.2013_Mar_06_19_32/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.3.5 -lgcc -Map u-boot.map -o u-boot

drivers/serial/libserial.o: In function `serial_setbrg':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:417: multiple definition of `serial_setbrg'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial.c:328: first defined here

drivers/serial/libserial.o: In function `serial_tstc':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:448: multiple definition of `serial_tstc'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial.c:347: first defined here

drivers/serial/libserial.o: In function `serial_puts':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:482: multiple definition of `serial_puts'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial.c:362: first defined here

drivers/serial/libserial.o: In function `serial_init':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:402: multiple definition of `serial_init'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial.c:339: first defined here

drivers/serial/libserial.o: In function `serial_initialize':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:226: multiple definition of `serial_initialize'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial4.h:51: first defined here

drivers/serial/libserial.o: In function `serial_getc':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:433: multiple definition of `serial_getc'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial.c:352: first defined here

drivers/serial/libserial.o: In function `serial_putc':

/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/drivers/serial/serial.c:464: multiple definition of `serial_putc'

arch/blackfin/cpu/libblackfin.o:/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/serial.c:357: first defined here

make[1]: *** [u-boot] Error 1

make[1]: Leaving directory `/home/test/workspace/UBOOT_BF609-EZKIT/label/UBOOT_BF609-EZKIT'

make: *** [bf609-ezkit] Error 2

api    boards.cfg       common     CREDITS  drivers   fs         lib               MAINTAINERS  mkconfig  post      snapshot.commit  test_script  u-boot.map

arch   BUILD-RELEASE    config.mk  disk     dts       helper.mk  localversion-adi  MAKEALL      nand_spl  README    spl              tools

board  change_conf_log  COPYING    doc      examples  include    logs              Makefile     net       rules.mk  test             u-boot.lds

test@test-OptiPlex-390:UBOOT_BF609-EZKIT$make fail

Starting reset_board_test.exp

spawn su

 

Follow-ups

 

--- Sonic Zhang                                              2013-03-14 03:27:02

The u-boot generic serial API can't be disable in 2013.01 release.

Convert early print code to reuse the generic serial API except for that in the

bypass mode.

 

--- Mingquan Pan                                             2013-03-20 04:02:49

It builds ok now.Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes