From: Frank Young <young726@hotmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] How to reduce the size of u-boot image file
Date: Fri, 11 Jun 2004 18:45:58 -0400 [thread overview]
Message-ID: <BAY2-F52p7vXee4fDGC0005ba2b@hotmail.com> (raw)
Hi Wolfgang,
>in message <BAY2-F84Hoouifm0Sx700057af6@hotmail.com> you wrote:
> >
> > 1. Because of the size of the flash memory constraint, I need to strip
>the
> > u-boot to its minimum size. Right now by executing "make all" in the
>u-boot
> > directory, I got a image file u-boot at around 700K-800K. It's too big
>for
>
>You must be joking. I haven't seen any configuration yet which exceeds 256
>kB.
>
>Did you by any chance look at the ELF file which includes all the
>hewaders, symbol tables, debug informnation etc.?
>
>Forget about this one. How big is your u-boot.bin file?
>
No kidding at all. I am extremely serious about this.
If I don't change anything, then I got a u-boot as big as 716,334 bytes. The
u-boot.bin is about 500K if I don't change the TEXT_BASE in
board/walnut/config.mk. If I change the CONFIG_COMMANDS to default value, it
is reduced to 576,931. But how would you get it less than 256KB?
The command I used to build u-boot is very simple:
make distclean
make WALNUT405_config
make all
But before that I have to change a line in examples/Makefile
$(OBJCOPY) -O binary $< $@ 2>/dev/null
to:
$(OBJCOPY) -O binary $<:.srec=) $@ 2>/dev/null
I don't think this change will affact the size of the image. Am I right?
> > my target. So I am thinking about getting rid of some functionalities
>which
> > u-boot provides. I do need u-boot to initialize my hardware. But after
>that,
> > I only need to use tftp to get the linux image, decompress the image,
>put
> > the decompressed image in RAM and jump to the linux entry point to let
>the
> > linux take over the control. Is there any FAQ or manual explaining how
>to
> > strip down the u-boot size?
>
>Yes. The README explains how to enable or disable commands or command
>groups.
>
Got it. Thanks!
> > 2. Since my flash memory address starts from 0xFFC00020 instead of
>
>Please check again. I think it is IMPOSSIBLE to have a flash start
>address of 0xFFC00020. I guess you mean 0xFFC00000 ?
Yes, you are right, the flash begins from 0xFFC00000. But I need to reserve
the first 0x20 for my special purpose, so the available flash is from
0xFFC00020. Can u-boot be aligned from this address?
Thanks!
Frank
_________________________________________________________________
Watch the online reality show Mixed Messages with a friend and enter to win
a trip to NY
http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/
next reply other threads:[~2004-06-11 22:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-11 22:45 Frank Young [this message]
2004-06-11 23:10 ` [U-Boot-Users] How to reduce the size of u-boot image file Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2004-06-10 19:14 Frank Young
2004-06-10 22:57 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY2-F52p7vXee4fDGC0005ba2b@hotmail.com \
--to=young726@hotmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.