[U-Boot-Users] How to reduce the size of u-boot image file

Frank Young young726 at hotmail.com
Thu Jun 10 21:14:19 CEST 2004


Hi,

I have two questions here:

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 
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?

2. Since my flash memory address starts from 0xFFC00020 instead of 
0xFFF80000, so I changed the TEXT_BASE in board/walnut405/config.mk to 
0xFFC00020. When I use "make u-boot", everything is fine. But if I use "make 
u-boot.bin", it ends up with a u-boot.bin more than 4MB. I think I didn't 
get the TEXT_BASE set correctly. Isn't TEXT_BASE the start point of the 
flash? If it isn't, what does TEXT_BASE mean? And where to indicate the 
start of the flash memory?

BTW, here is my environment:
CPU: PPC 405 200MHz
Flash: 4MB
SDRAM: 16MB
BOARD: walnut


Thanks a lot!

Frank

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/





More information about the U-Boot mailing list