Skip to contentSkip to conversation

Image size of u-boot.bin is too huge, why and how to correct?

U-Boot zq_fan 2 participants 2 messages May 8, 2011 – May 9, 2011 1 message not in the archive

lore
Share & tools
lore

zq_fan

author
#1 lore raw
In reply to a message not in the archive

hi, everybody. I've got a problem here.
My u-boot version is 1.3.0.My tool chain prefix is powerpc-linux-gnu- .
I wanna build uboot for freescale processor MPC8247
I found MPC8260ADS-config in Makefile, I thought MPC8260 was similar to MPC8247, so I choose this config target. Then I make u-boot.bin, I found that after objcopy the file u-boot was about 700KB, but the file u-boot.bin was about xGB.

How should this happened? What Should I Do?

PS: objcopy uses an option --gap-fill=0xff, is this using right?

#2 lore raw

Dear zq_fan,

Quoted 1 line · In message <[email protected]> you wrote:

hi, everybody. I've got a problem here.

This is an understatement. It appears you got more than one problem.

Quoted 1 line

My u-boot version is 1.3.0.My tool chain prefix is powerpc-linux-gnu- .

This is your first one. U-Boot 1.3.0 is > 3.5 years old, which means it is hopelessly obsolete and completely unsupported.

Quoted 2 lines

I wanna build uboot for freescale processor MPC8247
I found MPC8260ADS-config in Makefile, I thought MPC8260 was similar to MPC8247, so I choose this config target.

A MPC8247 is NOT a MPC8260, and each board needs it's own port.

Quoted 3 lines

Then I make u-boot.bin, I found that after objcopy the file u-boot was about 700KB, but the file u-boot.bin was about xGB.

How should this happened? What Should I Do?

This is the result of a misconfiguration.

Quoted 1 line

PS: objcopy uses an option --gap-fill=0xff, is this using right?

Yes, this is correct.

What you should do? Start with current code (top of tree from git repository), and port it to your board.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Certainly there are things in life that money  can't  buy,  but  it's
very funny - Did you ever try buying them without money? - Ogden Nash