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?
---------------------------------
??????????
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071010/2ac65920/attachment.htm
sun a ?crit :
Quoted 8 lines
hi,all:
I compiled u-boot for marvelldb88f5181board,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
Quoted 18 lines
sun a ?crit :
Quoted 8 lines
hi,all:
I compiled u-boot for marvelldb88f5181board,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 ininclude/configs/db88f5181.hby some #define CONFIG_CMD_* and ininclude/config_cmd_default.h.
See althrough if you not build your u-boot with debug support.
Quoted 3 lines
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
Quoted 6 lines · sun
hi,all:
I compiled u-boot for marvelldb88f5181board,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
Quoted 8 lines · sun
hi,all:
I compiled u-boot for marvelldb88f5181board,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