* [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command?
@ 2007-10-10 3:37 sun
2007-10-10 5:36 ` Jean-Christophe PLAGNIOL-VILLARD
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: sun @ 2007-10-10 3:37 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command?
2007-10-10 3:37 [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command? sun
@ 2007-10-10 5:36 ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-10 7:04 ` Yotam Admon
2007-10-10 6:25 ` Kelsey Dawes
2007-10-10 13:34 ` Jerry Van Baren
2 siblings, 1 reply; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2007-10-10 5:36 UTC (permalink / raw)
To: 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command?
2007-10-10 5:36 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2007-10-10 7:04 ` Yotam Admon
0 siblings, 0 replies; 5+ messages in thread
From: Yotam Admon @ 2007-10-10 7:04 UTC (permalink / raw)
To: 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
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command?
2007-10-10 3:37 [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command? sun
2007-10-10 5:36 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2007-10-10 6:25 ` Kelsey Dawes
2007-10-10 13:34 ` Jerry Van Baren
2 siblings, 0 replies; 5+ messages in thread
From: Kelsey Dawes @ 2007-10-10 6:25 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command?
2007-10-10 3:37 [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command? sun
2007-10-10 5:36 ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-10 6:25 ` Kelsey Dawes
@ 2007-10-10 13:34 ` Jerry Van Baren
2 siblings, 0 replies; 5+ messages in thread
From: Jerry Van Baren @ 2007-10-10 13:34 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-10 13:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 3:37 [U-Boot-Users] why can not make u-boot.bin smaller via cutting u-boot command? sun
2007-10-10 5:36 ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-10 7:04 ` Yotam Admon
2007-10-10 6:25 ` Kelsey Dawes
2007-10-10 13:34 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox