Skip to contentSkip to conversation

Error on making u-boot

U-Boot-Users SAM SONG 2 participants 2 messages Dec 14, 2003

lore
Share & tools
lore

SAM SONG

author
#0 lore raw

Dear you all,

An error message came up when I used "make RPXlite_config"on my LINUX PC host as following:

ppc_8xx-objcopy -O srec timer timer.srec
ppc_8xx-objcopy -O binary hello_world.srec hello_world.bin 2>/dev/null make[1]: *** [hello_world.bin] Error 1
make[1]: Leaving directory `/u-boot-1.0.0/examples'
make: *** [subdirs] Error 1

Have you met it?After masking three files,hello_world.bin,sched.bin
,timer.bin in Makefile of examples directory,it succeeded.But there aren't three files in the directory.I use Montavista Linux Pro 3.0.Any hints?

______________________________________
Sam Song
Shanghai Univ.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20031214/9ae498ec/attachment.htm

#1 lore raw

SAM SONG

Quoted 4 lines

Have you met it?After masking three files,hello_world.bin,sched.bin ,timer.bin in Makefile of examples directory,it succeeded.But there aren't three files in the directory.I use Montavista Linux Pro 3.0.Any hints?

There was recently a patch which works around a bug in the montavista objcopy. The problem is that it doesn't handle SREC input (even if you use -I srec).

The workaround is to ignore the problem - like you say the make will succeed eventually, or change the commands in the examples/Makefile like this:

Near the rule that says:

%.bin: %.srec

Replace this line:

$(OBJCOPY) -O binary $< $@ 2>/dev/null

With this line:

	$(OBJCOPY) -O binary $(<:.srec=) $@ 2>/dev/null

-Cam