Skip to contentSkip to conversation

u-boot pre-loader and bdm helper files for M5282EVB

U-Boot-Users Stuart Wood 2 participants 2 messages Jan 6, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Bernhard,

How did you adapt the templet files so they could compile under gcc? Specifically the assembly files. I'm trying to use the modified templet files provided by Arrow for their M5282ARB board, but the assembler gives errors like;

mcf5xxx.S:72: Error: operands mismatch -- statement `move.l sp,al' ignored

Also what goes the -r option mean in

m68k-elf-gcc -r -o mcf5xxx.o mcf5xxx.s

Thanks for any help.

Stuart Wood

Quoted 6 lines · Bernhard Kuhn

Attached, you will find the pre-bootloader and the bdm related helper files as described in doc/README.coldfire for the M5282EVB.

Please note that some files in the attached tarballs are taken from the "MCF5282/MCF5280 processor initalization templates" package provided by Motorola at

#2 lore raw
Quoted 1 line · Stuart Wood

mcf5xxx.S:72: Error: operands mismatch -- statement `move.l sp,al' ignored

I didn't used that file for the 5282 pre-bootloader. I adopted boot.S from the 5272 pre-bootloader, instead.

Quoted 3 lines

Also what goes the -r option mean in

m68k-elf-gcc -r -o mcf5xxx.o mcf5xxx.s

"-o" would add startfiles and libc (which is
certainly not what you want in this context),
so you need to add "-r" to prevent that.

regards

Bernhard