[U-Boot-Users] ppc4xx u-boot image size toooooo bigggggggggg

Hi,
I am working on PPC4xx processor. I am using u-boot-1.1.4 version. I am building the u-boot image with the following options. But size of my u-boot.srec size 3.1M and u-boot.bin size 1.0M.
Can any one help me out why the size of the image is toooooo bigggggggg.......plzzzzzzzz...
make[1]: Leaving directory `/home/sumanth/u-boot-1.1.4/post/cpu' powerpc-405-linux-gnu-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -Os -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -I/home/sumanth/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m405 -mcpu=405 -msoft-float -c -o cpu/ppc4xx/start.o /home/sumanth/u-boot-1.1.4/cpu/ppc4xx/start.S
Regards Arun.

In message c656a4d20708081053m25be710aycc275644f52162f5@mail.gmail.com you wrote:
I am working on PPC4xx processor. I am using u-boot-1.1.4 version. I am building the u-boot image with the following options. But size of my u-boot.srec size 3.1M and u-boot.bin size 1.0M.
This may be normal, depending on your configuration...
Can any one help me out why the size of the image is toooooo bigggggggg.......plzzzzzzzz...
Fix your code?
make[1]: Leaving directory `/home/sumanth/u-boot-1.1.4/post/cpu' powerpc-405-linux-gnu-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -Os -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -I/home/sumanth/u-boot-1.1.4/include
^^^^^^^^^^^^^^^^^^^^^^^^
Your code starts at 0xFFF00000, and the 4xx have the reset entry point at 0xFFFFFFFC, i. e. at the end of the 32 bit ddress space. Guess how much 0xFFFFFFFC - 0xFFF00000 + 4 gives? 1.0 MiB? Right.
You asked for it, so you got it.
No error. All exactly as you requested.
Best regards,
Wolfgang Denk
participants (2)
-
arun c
-
Wolfgang Denk