[U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command?

hi,all: I compiled u-boot for marvell db88f5181 board,and u-boot.bin is 449kb,it too big for porting. I want to cut u-boot,but after i cut some u-boot commands via cutting *.o files under u-boot*/common/Makefile, then make u-boot, but u-boot.bin size still be 449kb? why?
What's the best way to cut u-boot?
--------------------------------- 雅虎邮箱,终生伙伴!

sun a écrit :
hi,all: I compiled u-boot for marvell db88f5181 board,and u-boot.bin is 449kb,it too big for porting. I want to cut u-boot,but after i cut some u-boot commands via cutting *.o files under u-boot*/common/Makefile, then make u-boot, but u-boot.bin size still be 449kb? why?
What's the best way to cut u-boot?
Hi, The active command is defined in include/configs/db88f5181.h by some #define CONFIG_CMD_* and in include/config_cmd_default.h . See althrough if you not build your u-boot with debug support.
Best Regards,
Jea-Christophe PLAGNIOL-VILLARD

sun a écrit :
hi,all: I compiled u-boot for marvell db88f5181 board,and u-boot.bin is 449kb,it too big for porting. I want to cut u-boot,but after i cut some u-boot commands via cutting *.o files under u-boot*/common/Makefile, then make u-boot, but u-boot.bin size still be 449kb? why?
What's the best way to cut u-boot?
Hi, The active command is defined in include/configs/db88f5181.h by some #define CONFIG_CMD_* and in include/config_cmd_default.h . See althrough if you not build your u-boot with debug support.
Best Regards,
Jea-Christophe PLAGNIOL-VILLARD
Hi, Can you state the Marvell patch version for the U-boot? In Marvell release the linker script is setting the bin file size to be ~450kbyte. Removing commands will not do any effect before changing the linker script. Thanks, Yotam

On Wed, Oct 10, 2007 at 11:37:27AM +0800, sun wrote:
hi,all: I compiled u-boot for marvell db88f5181 board,and u-boot.bin is 449kb,it too big for porting. I want to cut u-boot,but after i cut some u-boot commands via cutting *.o files under u-boot*/common/Makefile, then make u-boot, but u-boot.bin size still be 449kb? why?
What's the best way to cut u-boot?
Hi, in our board config header file, we have defined CFG_MONITOR_LEN - which ends up being the final size of the u-boot.bin file.
From the README :
CFG_MONITOR_LEN: Size of memory reserved for monitor code, used to determine _at_compile_time_ (!) if the environment is embedded within the U-Boot image, or in a separate flash sector.
-Kelsey

sun wrote:
hi,all: I compiled u-boot for marvell db88f5181 board,and u-boot.bin is 449kb,it too big for porting. I want to cut u-boot,but after i cut some u-boot commands via cutting *.o files under u-boot*/common/Makefile, then make u-boot, but u-boot.bin size still be 449kb? why?
What's the best way to cut u-boot?
If you want to cut out commands, you need to edit the u-boot configuration file. See the README file around line 549. http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob;f=README;h=09eb76fe4528dfedca027b119ac760fce2570e35;hb=HEAD#l549
Deleting .o files isn't going to be successful because make will simply rebuild them.
gvb
participants (5)
-
Jean-Christophe PLAGNIOL-VILLARD
-
Jerry Van Baren
-
Kelsey Dawes
-
sun
-
Yotam Admon