From: =?big5?q?Wilson=20Lo?= Date: Fri, 11 Apr 2003 13:15:18 +0800 (CST) Subject: [U-Boot-Users] Re:Problems with objcopy -O binary Message-ID: <20030411051518.78415.qmail@web21102.mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 Re: Problems with objcopy -O binary 2003-04-10 02:35 In message you wrote: > > 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? Your toolchain is broken. It works fine with our ELDK. Best regards, Wolfgang Denk _________________________________________________________ ????(???)?????(???)????...??(Twins)... Yahoo! ???? http://ringtone.yahoo.com.hk