[#7629] build nand uboot for bf537 has overflow error

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

[#7629] build nand uboot for bf537 has overflow error

Submitted By: Mingquan Pan

Open Date

2013-02-19 04:06:29     Close Date

2013-03-07 03:04:27

Priority:

Medium     Assignee:

Sonic Zhang

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2013R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: build nand uboot for bf537 has overflow error

Details:

 

build nand uboot for bf537 has overflow error now.

 

bfin-uclinux-gcc -E -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf537-0.2 -D__KERNEL__ -I/home/test/work/cruise/checkouts/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux.2012_Dec_21_12_45/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -include /home/test/work/cruise/checkouts/u-boot/include/u-boot/u-boot.lds.h -DCPUDIR=arch/blackfin/cpu  -ansi -D__ASSEMBLY__ -P - </home/test/work/cruise/checkouts/u-boot/arch/blackfin/cpu/u-boot.lds >u-boot.lds^M

UNDEF_LST=`bfin-uclinux-objdump -x board/bf537-stamp/libbf537-stamp.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/work/cruise/checkouts/u-boot && 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/bf537-stamp/libbf537-stamp.o --end-group -L /opt/uClinux.2012_Dec_21_12_45/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.3.5 -lgcc -Map u-boot.map -o u-boot^M

smap=`bfin-uclinux-nm u-boot | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | LC_ALL=C sort | \^M

                        awk '$2 ~ /[tTwW]/ {printf $1 $3 "\\\\000"}'` ; \^M

                bfin-uclinux-gcc -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf537-0.2 -D__KERNEL__ -I/home/test/work/cruise/checkouts/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux.2012_Dec_21_12_45/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security  -DSYSTEM_MAP="\"${smap}\"" \^M

                        -c common/system_map.c -o common/system_map.o^M

UNDEF_LST=`bfin-uclinux-objdump -x board/bf537-stamp/libbf537-stamp.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/work/cruise/checkouts/u-boot && 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/bf537-stamp/libbf537-stamp.o --end-group -L /opt/uClinux.2012_Dec_21_12_45/bfin-uclinux/bin/../lib/gcc/bfin-uclinux/4.3.5 -lgcc -Map u-boot.map -o u-boot common/system_map.o^M

bfin-uclinux-ld.bfd: u-boot section `.bss' will not fit in region `ram'^M

bfin-uclinux-ld.bfd: region `ram' overflowed by 5328 bytes^M

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

make[1]: Leaving directory `/home/test/work/cruise/checkouts/u-boot'^M

make: *** [bf537-stamp] Error 2^M

^[[00m^[[01;34mapi^[[00m    ^[[00mboards.cfg^[[00m       ^[[01;34mcommon^[[00m     ^[[00mCREDITS^[[00m  ^[[01;34mdrivers^[[00m   ^[[01;34mfs^[[00m         ^[[01;34mlib^[[00m               ^[[00;32mMAKEALL^[[00m   ^[[01;34mnand_spl^[[00m  ^[[00mREADME^[[00m           ^[[01;34mspl^[[00m          ^[[01;34mtools^[[00m       ^[[00mu-boot.map^[[00m^M

^[[01;34march^[[00m   ^[[00;32mBUILD-RELEASE^[[00m    ^[[00mconfig.mk^[[00m  ^[[01;34mdisk^[[00m     ^[[01;34mdts^[[00m       ^[[00mhelper.mk^[[00m  ^[[00mlocalversion-adi^[[00m  ^[[00mMakefile^[[00m  ^[[01;34mnet^[[00m       ^[[00mrules.mk^[[00m         ^[[01;34mtest^[[00m         ^[[00mu-boot.ldr^[[00m^M

^[[01;34mboard^[[00m  ^[[00;32mchange_conf_log^[[00m  ^[[00mCOPYING^[[00m    ^[[01;34mdoc^[[00m      ^[[01;34mexamples^[[00m  ^[[01;34minclude^[[00m    ^[[00mMAINTAINERS^[[00m       ^[[00;32mmkconfig^[[00m  ^[[01;34mpost^[[00m      ^[[00msnapshot.commit^[[00m  ^[[01;34mtest_script^[[00m  ^[[00mu-boot.lds^[[00m^M

^[[mtest@uboot34-bf537stamp:u-boot$make fail

 

===== Recording result: build nand uboot is fail

 

Follow-ups

 

--- Sonic Zhang                                              2013-02-20 05:37:18

Enable MMC only when MMC_SPI is defined.

Plesae disable MMC_SPI when testing NAND driver.

 

--- Mingquan Pan                                             2013-03-07 04:11:22

ok, modified in test script. close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes