[U-Boot-Users] u-boot on M5275EVB?

David van Geest david at rhythmreloaded.com
Fri Jan 11 04:01:10 CET 2008


TsiChung,
Thanks for your response.  Could you be a bit more specific? - I'm pretty
new at both U-Boot and Coldfire.  Are you saying that I can use the exact
same code for the M5275EVB as the M5272C3?  Also, can anyone tell me the
differences between U-boot 1.1.6 and 1.3.1?  If 1.1.6 works fine, and has a
functional patch for M5275EVB, I'm tempted to use it.  We're not doing
anything fancy, just loading uClinux.

So far I added these lines to the Makefile:
M5275EVB_config :        unconfig
    @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb

Changed this line in include/asm-m68k/immap.h: #ifdef CONFIG_M5272 to #ifdef
CONFIG_M5272 || CONFIG_M5275

And copied include/configs/M5272C3.h as M5275EVB.h.

>From reading the readme, it seems that there should be a lot more changes
that I have to do.  I get this error when compiling:

make[1]: Entering directory `/home/david/u-boot/cpu/mcf52x2'
start.S:61:43: error: operator '==' has no left operand

Any ideas?  Full text of the compile follows.
Thanks,
-David

david at dave:~/u-boot$ make M5275EVB_config
Configuring for M5275EVB board...
david at dave:~/u-boot$ make
Generating include/autoconf.mk
for dir in tools examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/david/u-boot/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
ln -s ../lib_generic/sha1.c sha1.c
make[1]: Leaving directory `/home/david/u-boot/tools'
make[1]: Entering directory `/home/david/u-boot/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/david/u-boot/tools'
make[1]: Entering directory `/home/david/u-boot/examples'
make[1]: Leaving directory `/home/david/u-boot/examples'
make[1]: Entering directory `/home/david/u-boot/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/david/u-boot/examples'
make -C tools all
make[1]: Entering directory `/home/david/u-boot/tools'
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -g -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o sha1.o sha1.c
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o sha1.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g  -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o sha1.o
gcc -g -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o ubsha1.o ubsha1.c
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -o ubsha1 ubsha1.o sha1.o
gcc -g -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter /home/david/u-boot/include -idirafter
/home/david/u-boot/include2 -idirafter /home/david/u-boot/include
-DTEXT_BASE= -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/david/u-boot/include/bmp_logo.h
make[1]: Leaving directory `/home/david/u-boot/tools'
make -C examples all
make[1]: Entering directory `/home/david/u-boot/examples'
m68k-elf-gcc -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ -DTEXT_BASE=
-I/home/david/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem
/opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1/include -pipe
-DCONFIG_M68K -D__M68K__ -mcpu=5272 -Wall -Wstrict-prototypes -c -o
hello_world.o hello_world.c
m68k-elf-gcc -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ -DTEXT_BASE=
-I/home/david/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem
/opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1/include -pipe
-DCONFIG_M68K -D__M68K__ -mcpu=5272 -Wall -Wstrict-prototypes -c -o stubs.o
stubs.c
m68k-elf-ar crv libstubs.a stubs.o
a - stubs.o
m68k-elf-ld -g  -Ttext 0x20000  -L
/opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/lib/m5206e
\
                        -o hello_world -e hello_world hello_world.o
libstubs.a \

-L/opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1
-lgcc
m68k-elf-objcopy -O srec hello_world hello_world.srec 2>/dev/null
m68k-elf-objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory `/home/david/u-boot/examples'
make -C cpu/mcf52x2 start.o
make[1]: Entering directory `/home/david/u-boot/cpu/mcf52x2'
start.S:61:43: error: operator '==' has no left operand
start.S:180:41: error: operator '==' has no left operand
start.S:333:34: error: operator '!=' has no left operand
make[1]: Leaving directory `/home/david/u-boot/cpu/mcf52x2'
make[1]: Entering directory `/home/david/u-boot/cpu/mcf52x2'
m68k-elf-gcc  -D__ASSEMBLY__ -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__
-DTEXT_BASE=  -I/home/david/u-boot/include -fno-builtin -ffreestanding
-nostdinc -isystem
/opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1/include
-pipe  -DCONFIG_M68K -D__M68K__ -mcpu=5272 -c -o start.o start.S
start.S:61:43: error: operator '==' has no left operand
start.S:180:41: error: operator '==' has no left operand
start.S:333:34: error: operator '!=' has no left operand
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/home/david/u-boot/cpu/mcf52x2'
make: *** [cpu/mcf52x2/start.o] Error 2


On Jan 9, 2008 7:28 PM, Liew Tsi Chung <Tsi-chung.Liew at freescale.com> wrote:

>  David,
>
>     Based on the UM, I believe most of the modules are similar. You need
> to add M5275EVB in Makefile, defined CONFIG_M5272 || defined CONFIG_M5275 in
> include/asm-m68k/immap.h and a M5275EVB in include/configs.
>
>     Hope this help.
>
> Regards,
> TsiChung
>
>  ------------------------------
> *From:* u-boot-users-bounces at lists.sourceforge.net [mailto:
> u-boot-users-bounces at lists.sourceforge.net] *On Behalf Of *David van Geest
> *Sent:* Tuesday, January 08, 2008 11:55 PM
> *To:* u-boot-users
> *Subject:* [U-Boot-Users] u-boot on M5275EVB?
>
> Hi all,
>
> Has anyone succeeded in running u-boot 1.3.1 on the Freescale M5275EVB?  I
> noticed a patch was created with 1.1.6 back in 2006.
>
> If no one has done it or created a patch, how hard would it be to do?  Can
> I base an M5275EVB port on something similar such as the M5272C3?  What
> needs to be changed exactly?
>
> Apologies for my noob questions :-).
> Thanks.
>
> -David van Geest
> [ Rhythm Reloaded ]
> www.rhythmreloaded.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080110/80fca3d7/attachment.htm 


More information about the U-Boot mailing list