2008-10-23 09:23:16     RAM region full - Compilation issue of u-boot.1.1.6-2008R1.5 for my custom board-BF561

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

2008-10-23 09:23:16     RAM region full - Compilation issue of u-boot.1.1.6-2008R1.5 for my custom board-BF561

P SENTHIL KUMAR (INDIA)

Message: 64119   

 

Hi all,

 

          I had configured the latest uboot ( u-boot-1.1.6-2008R1.5.tar.tar ) for  my custom board and given the make command to build a uboot for my custom board. But I am getting below compilation issue for my custom board configuration.

 

make -C drivers/nand_legacy/

make[1]: Entering directory `/home/psenthil/Test/u-boot-1.1.6-2008R1.5/drivers/nand_legacy'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/home/psenthil/Test/u-boot-1.1.6-2008R1.5/drivers/nand_legacy'

make -C drivers/sk98lin/

make[1]: Entering directory `/home/psenthil/Test/u-boot-1.1.6-2008R1.5/drivers/sk98lin'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/home/psenthil/Test/u-boot-1.1.6-2008R1.5/drivers/sk98lin'

make -C common/

make[1]: Entering directory `/home/psenthil/Test/u-boot-1.1.6-2008R1.5/common'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/home/psenthil/Test/u-boot-1.1.6-2008R1.5/common'

UNDEF_SYM=`bfin-uclinux-objdump -x lib_generic/libgeneric.a board/DPFPanview/libDPFPanview.a cpu/blackfin/libblackfin.a lib_blackfin/libblackfin.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a common/libcommon.a |sed  -n -e 's/.*\(___u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/psenthil/Test/u-boot-1.1.6-2008R1.5 && bfin-uclinux-ld -Bstatic -T /home/psenthil/Test/u-boot-1.1.6-2008R1.5/board/DPFPanview/u-boot.lds  -Ttext 0x03FC0000 $UNDEF_SYM cpu/blackfin/start.o --start-group lib_generic/libgeneric.a board/DPFPanview/libDPFPanview.a cpu/blackfin/libblackfin.a lib_blackfin/libblackfin.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a common/libcommon.a --end-group -L /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2 -lgcc -Map u-boot.map -o u-boot

bfin-uclinux-nm u-boot | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort \

                | awk '$2 ~ /[tTwW]/ {print $1" "$3}' \

                | sed -e 's:^\(.*\):.asciz "\1":' > .syms.u-boot.S

bfin-uclinux-gcc  -D__ASSEMBLY__ -g  -Os   -ffixed-P5 -fomit-frame-pointer -mcpu=bf561-0.3 -D__KERNEL__ -DTEXT_BASE=0x03FC0000 -I/home/psenthil/Test/u-boot-1.1.6-2008R1.5/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/include -pipe  -DCONFIG_BLACKFIN -I/home/psenthil/Test/u-boot-1.1.6-2008R1.5 -I. -DSYM_FILE='".syms.u-boot.S"' -c cpu/blackfin/system_map.S -o cpu/blackfin/system_map.o

UNDEF_SYM=`bfin-uclinux-objdump -x lib_generic/libgeneric.a board/DPFPanview/libDPFPanview.a cpu/blackfin/libblackfin.a lib_blackfin/libblackfin.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a common/libcommon.a |sed  -n -e 's/.*\(___u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/psenthil/Test/u-boot-1.1.6-2008R1.5 && bfin-uclinux-ld -Bstatic -T /home/psenthil/Test/u-boot-1.1.6-2008R1.5/board/DPFPanview/u-boot.lds  -Ttext 0x03FC0000 $UNDEF_SYM cpu/blackfin/start.o --start-group lib_generic/libgeneric.a board/DPFPanview/libDPFPanview.a cpu/blackfin/libblackfin.a lib_blackfin/libblackfin.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a common/libcommon.a --end-group -L /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2 -lgcc -Map u-boot.map -o u-boot cpu/blackfin/system_map.o

/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-ld.real: region ram is full (u-boot section .bss)

/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-ld.real: region ram is full (u-boot section .bss)

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

 

 

Let me know some suggestion for the above issue.

 

 

 

Regards, Senthil

 

 

QuoteReplyEditDelete

 

 

2008-10-23 09:50:45     Re: RAM region full - Compilation issue of u-boot.1.1.6-2008R1.5 for my custom board-BF561

Robin Getz (UNITED STATES)

Message: 64120   

 

Senthil:

 

That is basically saying the the ram is full. Typically - that means you are doing something wrong - 256k is normally what things are defined to - and if your U-Boot is bigger than that - you have too much **** in there.

 

 

 

"ram" is defined in your ./board/*/u-boot.lds.S

 

It should be something like:

 

ram     : ORIGIN = CFG_MONITOR_BASE, LENGTH = CFG_MONITOR_LEN

 

It means that your CFG_MONITOR_LEN is too small. That is defined in include/configs/*.h it is normally something like:

 

#define CFG_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for monitor */

 

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-24 02:21:01     Re: RAM region full - Compilation issue of u-boot.1.1.6-2008R1.5 for my custom board-BF561

P SENTHIL KUMAR (INDIA)

Message: 64140   

 

Hi Robin,

 

                Thanks for your reply and suggestion, i had solved the issue.

 

Actually the issue is due to ENV_OFFSET size.

 

Regards, Senthil

Attachments

    Outcomes