All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot
@ 2005-01-27  0:08 raj
  2005-01-27  0:23 ` Wolfgang Denk
  2005-01-27 22:25 ` Jon Loeliger
  0 siblings, 2 replies; 4+ messages in thread
From: raj @ 2005-01-27  0:08 UTC (permalink / raw)
  To: u-boot

Hello All,

              I am compiling u-boot version 1.1.0 for SC520_CDP
board. I ma trying to compile on a P.C with redhat version 9 and the
tools provided along with it.Compilation is sucessful after few errors
being handles. I ma running the command "make u-boot.bin" to get
binary file. The out file sizes are as follows.

u-boot            - 60442 bytes
u-boot.bin     - 947911360 bytes.
u-boot.map  - 116152 bytes.

This is really confusing since we get the raw binary by running the
"objcopy" tool on the ELF format file u-boot.

I treid version 1.0.0 but have same problem

Any help on this shall be really helpful



-- 
Regards,
Rajesha.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot
  2005-01-27  0:08 [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot raj
@ 2005-01-27  0:23 ` Wolfgang Denk
  2005-01-27 17:50   ` raj
  2005-01-27 22:25 ` Jon Loeliger
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2005-01-27  0:23 UTC (permalink / raw)
  To: u-boot

In message <b4ab3e29050126160843cb886a@mail.gmail.com> you wrote:
> 
> u-boot            - 60442 bytes
> u-boot.bin     - 947911360 bytes.
> u-boot.map  - 116152 bytes.
> 
> This is really confusing since we get the raw binary by running the
> "objcopy" tool on the ELF format file u-boot.

This can happen easily if there  are  (huge)  gaps  in  your  image's
address map. Run "objdump -h" to check this.

> Any help on this shall be really helpful

Check your linker script and compare against the  memory  map  needed
for your hardware.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
COMPONENT EQUIVALENCY NOTICE:  The  Subatomic  Particles  (Electrons,
Protons,  etc.) Comprising This Product Are Exactly the Same in Every
Measurable Respect as Those Used in the Products of Other  Manufactu-
rers,  and  No Claim to the Contrary May Legitimately Be Expressed or
Implied.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot
  2005-01-27  0:23 ` Wolfgang Denk
@ 2005-01-27 17:50   ` raj
  0 siblings, 0 replies; 4+ messages in thread
From: raj @ 2005-01-27 17:50 UTC (permalink / raw)
  To: u-boot

Hello All,

               I got the following by running "objdump -h u-boot" , I
have no idea what has to be done with this .

|----------------------------------------------------------------------------------------------------------------------|
u-boot:     file format elf32-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000157a7  387c0000  387c0000  00001000  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .rodata       000074ec  387d57c0  387d57c0  000167c0  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .data         00000df8  00400000  387dccac  0001e000  2**5
                  CONTENTS, ALLOC, LOAD, DATA
  3 .got          00000000  00400df8  00400df8  00021000  2**0
                  CONTENTS
  4 .bss          000062c0  00400e00  00400e00  00000e00  2**5
                  ALLOC
  5 .realmode     00000166  000007c0  387ddaa4  0001f7c0  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  6 .bios         0000053e  00000000  387ddc0a  00020000  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  7 .u_boot_cmd   00000438  00000540  00000540  00000540  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  8 .start16      000000ad  0000ff00  387fff00  00020f00  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  9 .reset        00000010  0000fff0  387ffff0  00020ff0  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 10 .stab         00002c7c  00000000  00000000  00021000  2**2
                  CONTENTS, READONLY, DEBUGGING
 11 .stabstr      000001d9  00000000  00000000  00023c7c  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_abbrev 00007bdd  00000000  00000000  00023e55  2**0
                  CONTENTS, READONLY, DEBUGGING
 13 .debug_info   000467ac  00000000  00000000  0002ba32  2**0
                  CONTENTS, READONLY, DEBUGGING
 14 .debug_line   0000a236  00000000  00000000  000721de  2**0
                  CONTENTS, READONLY, DEBUGGING
 15 .debug_frame  0000521c  00000000  00000000  0007c414  2**2
                  CONTENTS, READONLY, DEBUGGING
 16 .debug_pubnames 00002849  00000000  00000000  00081630  2**0
                  CONTENTS, READONLY, DEBUGGING
 17 .debug_aranges 000007e0  00000000  00000000  00083e79  2**0
                  CONTENTS, READONLY, DEBUGGING
 18 .debug_ranges 00000470  00000000  00000000  00084659  2**0
                  CONTENTS, READONLY, DEBUGGING
 19 .debug_str    00005658  00000000  00000000  00084ac9  2**0
                  CONTENTS, READONLY, DEBUGGING
 20 .comment      00000cc0  00000000  00000000  0008a121  2**0
                  CONTENTS, READONLY
|----------------------------------------------------------------------------------------------------------------------|

Regarding the linker script what exaclty should i look for, more
details would be helful.

Anyway i have added the LD command from the compilation windows.

|----------------------------------------------------------------------------------------------------------------------|
ld -Bstatic -T /home/rashetty/u-boot-1.0.0/board/sc520_cdp/u-boot.lds
-Ttext 0x387c0000  $UNDEF_SYM cpu/i386/start.o cpu/i386/start16.o
cpu/i386/reset.o \
		--start-group board/sc520_cdp/libsc520_cdp.a cpu/i386/libi386.a
lib_i386/libi386.a fs/jffs2/libjffs2.a fs/fdos/libfdos.a
fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a -L
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2 -lgcc --end-group \
		-Map u-boot.map -o u-boot
|----------------------------------------------------------------------------------------------------------------------|

I am doing this for first time. More detailed information would be
more helpful for newbie like me.


On Thu, 27 Jan 2005 01:23:19 +0100, Wolfgang Denk <wd@denx.de> wrote:
> In message <b4ab3e29050126160843cb886a@mail.gmail.com> you wrote:
> >
> > u-boot            - 60442 bytes
> > u-boot.bin     - 947911360 bytes.
> > u-boot.map  - 116152 bytes.
> >
> > This is really confusing since we get the raw binary by running the
> > "objcopy" tool on the ELF format file u-boot.
> 
> This can happen easily if there  are  (huge)  gaps  in  your  image's
> address map. Run "objdump -h" to check this.
> 
> > Any help on this shall be really helpful
> 
> Check your linker script and compare against the  memory  map  needed
> for your hardware.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> COMPONENT EQUIVALENCY NOTICE:  The  Subatomic  Particles  (Electrons,
> Protons,  etc.) Comprising This Product Are Exactly the Same in Every
> Measurable Respect as Those Used in the Products of Other  Manufactu-
> rers,  and  No Claim to the Contrary May Legitimately Be Expressed or
> Implied.
> 


-- 
Regards,
Rajesha.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot
  2005-01-27  0:08 [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot raj
  2005-01-27  0:23 ` Wolfgang Denk
@ 2005-01-27 22:25 ` Jon Loeliger
  1 sibling, 0 replies; 4+ messages in thread
From: Jon Loeliger @ 2005-01-27 22:25 UTC (permalink / raw)
  To: u-boot

On Wed, 2005-01-26 at 18:08, raj wrote:
> Hello All,
> 
>               I am compiling u-boot version 1.1.0 for SC520_CDP
> board. I ma trying to compile on a P.C with redhat version 9 and the
> tools provided along with it.Compilation is sucessful after few errors
> being handles. I ma running the command "make u-boot.bin" to get
> binary file. The out file sizes are as follows.
> 
> u-boot            - 60442 bytes
> u-boot.bin     - 947911360 bytes.
> u-boot.map  - 116152 bytes.
> 
> This is really confusing since we get the raw binary by running the
> "objcopy" tool on the ELF format file u-boot.

It might be instructive to see my missive earlier this month:

From: 	Jon Loeliger <jdl@freescale.com>
To: 	u-boot-users <u-boot-users@lists.sourceforge.net>
Subject: [U-Boot-Users] Why objdump Creates 4G U-Boot Images
Date: 	Thu, 20 Jan 2005 16:26:28 -0600

Enjoy,
jdl

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-27 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27  0:08 [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot raj
2005-01-27  0:23 ` Wolfgang Denk
2005-01-27 17:50   ` raj
2005-01-27 22:25 ` Jon Loeliger

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.