Problems with objcopy -O binary
Hi,
I got a same problem with release 0.3.0. However,
if I use the use same toolchain to compile the 0.2.0 version, it is ok. My compiler version is 2.95.3 (montaVisita). I just modify the "CROSS-COMPILER" parameter. Do I need to change any other parameters ?
Wilson
From: Bogdan Woldert-Jokisz <bwoldert@gi...>
Problems with objcopy -O binary
2003-04-10 01:45
hi
When I compile u-boot-0.3.0 then I have the following
problem:
ppc_405-ld -g -Ttext 0x40000 -o sched -e sched
sched.o libsyscall.a
ppc_405-objcopy -O srec sched sched.srec ppc_405-objcopy -O binary hello_world.srec
hello_world.bin 2>/dev/null
make[1]: *** [hello_world.bin] Error 1 make[1]: Leaving directory
`/home/bwoldert/bootloader/u-boot-0.3.0/examples'
make: *** [subdirs] Error 1
I found out:
ppc_405-objcopy -O binary hello_world.srec
hello_world.bin
ppc_405-objcopy: Warning: Output file cannot
represent architecture
UNKNOWN!
ppc_405-objcopy: hello_world.srec: Bad value
When I delete hello_world from the Makefile, then I
have the same problem
with examples/sched.c. I compile on a i386. What's
wrong?
regards
Bogdan
From: Wolfgang Denk <wd@de...>
Re: Problems with objcopy -O binary
2003-04-10 02:35
In message
<LMELLOOANGIAKFIBMEHNGEBECAAA.bwoldert@gi...> you
Quoted 4 lines · wrote:
I found out:
ppc_405-objcopy -O binary hello_world.srec
hello_world.bin
Quoted 1 line
ppc_405-objcopy: Warning: Output file cannot
represent architecture
Quoted 4 lines
UNKNOWN!
ppc_405-objcopy: hello_world.srec: Bad valueWhen I delete
hello_worldfrom theMakefile, then I
have the same problem
Quoted 1 line
with
examples/sched.c. I compile on a i386. What's
wrong?
Your toolchain is broken. It works fine with our
ELDK.
Best regards,
Wolfgang Denk
_________________________________________________________
????(???)?????(???)????...??(Twins)...
Yahoo! ????
http://ringtone.yahoo.com.hk
Quoted 6 lines · In message <[email protected]> you wrote:
I got a same problem with release 0.3.0. However,
if I use the use same toolchain to compile the 0.2.0 version, it is ok. My compiler version is 2.95.3 (montaVisita). I just modify the "CROSS-COMPILER" parameter. Do I need to change any other parameters ?
The only change in 0.3.0 was that I added the target to build binary images, too, as some people asked for it to be able to download the standalone examples over FTP.
Quoted 8 lines
I found out:
ppc_405-objcopy -O binary hello_world.srec
hello_world.bin
ppc_405-objcopy: Warning: Output file cannot
represent architecture
UNKNOWN!
ppc_405-objcopy: hello_world.srec: Bad value
The warning is normal and can be ignored.
The error message means that your version of "ppc_405-objcopy" is not capable of reading the "hello_world.srec" file which it created itself one step before.
Using the objcopy that comes with the ELDK I get:
bash$ ppc_4xx-objcopy -O srec sched sched.srec bash$ ppc_4xx-objcopy -O binary hello_world.srec
ppc_4xx-objcopy: hello_world.srec: File format not recognized bash$
And I get the same result with the native "objcopy" on any of the x86 Linux systems I was able to test (RH-7.1 to RH-9).
The only explanation I have is that your version of "ppc_405-objcopy" is seriously broken.
Get yourself working tools. They are available for free.
Best regards,
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
He had been eight years upon a project for extracting sunbeams out of
cucumbers, which were to be put in vials hermetically sealed, and let
out to warm the air in raw inclement summers. - Jonathan Swift
_Gulliver's Travels_ ``A Voyage to Laputa, etc.'' ch. 5