TsiChung,<br>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.<br><br>So far I added these lines to the Makefile:<br>M5275EVB_config : unconfig
<br> @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb<br><br>Changed this line in <font style="color: rgb(0, 0, 0);" color="#0000ff" face="Arial" size="2"><span>include/asm-m68k/immap.h: #ifdef CONFIG_M5272 to #ifdef CONFIG_M5272 || CONFIG_M5275
<br><br>And copied include/configs/M5272C3.h as M5275EVB.h.<br><br>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:<br><br>make[1]: Entering directory `/home/david/u-boot/cpu/mcf52x2'
<br>start.S:61:43: error: operator '==' has no left operand<br><br>Any ideas? Full text of the compile follows.<br>Thanks,<br>-David<br><br></span></font><font color="#0000ff" face="Arial" size="2"><span></span></font>
david@dave:~/u-boot$ make M5275EVB_config<br>Configuring for M5275EVB board...<br>david@dave:~/u-boot$ make<br>Generating include/autoconf.mk<br>for dir in tools examples ; do make -C $dir _depend ; done<br>make[1]: Entering directory `/home/david/u-boot/tools'
<br>ln -s ../common/environment.c environment.c<br>ln -s ../lib_generic/crc32.c crc32.c<br>ln -s ../lib_generic/sha1.c sha1.c<br>make[1]: Leaving directory `/home/david/u-boot/tools'<br>make[1]: Entering directory `/home/david/u-boot/tools'
<br>make[1]: Nothing to be done for `_depend'.<br>make[1]: Leaving directory `/home/david/u-boot/tools'<br>make[1]: Entering directory `/home/david/u-boot/examples'<br>make[1]: Leaving directory `/home/david/u-boot/examples'
<br>make[1]: Entering directory `/home/david/u-boot/examples'<br>make[1]: Nothing to be done for `_depend'.<br>make[1]: Leaving directory `/home/david/u-boot/examples'<br>make -C tools all<br>make[1]: Entering directory `/home/david/u-boot/tools'
<br>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<br>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<br>strip img2srec<br>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
<br>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<br>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<br>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<br>
strip mkimage<br>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<br>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<br>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<br>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<br>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<br>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
<br>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<br>strip gen_eth_addr
<br>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<br>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
<br>strip bmp_logo<br>./bmp_logo logos/denx.bmp >/home/david/u-boot/include/bmp_logo.h<br>make[1]: Leaving directory `/home/david/u-boot/tools'<br>make -C examples all<br>make[1]: Entering directory `/home/david/u-boot/examples'
<br>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
<br>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<br>m68k-elf-ar crv libstubs.a stubs.o<br>a - stubs.o<br>m68k-elf-ld -g -Ttext 0x20000 -L /opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/lib/m5206e \<br> -o hello_world -e hello_world hello_world.o
libstubs.a \<br> -L/opt/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1 -lgcc<br>m68k-elf-objcopy -O srec hello_world hello_world.srec 2>/dev/null<br>m68k-elf-objcopy -O binary hello_world hello_world.bin 2>/dev/null
<br>make[1]: Leaving directory `/home/david/u-boot/examples'<br>make -C cpu/mcf52x2 start.o<br>make[1]: Entering directory `/home/david/u-boot/cpu/mcf52x2'<br>start.S:61:43: error: operator '==' has no left operand
<br>start.S:180:41: error: operator '==' has no left operand<br>start.S:333:34: error: operator '!=' has no left operand<br>make[1]: Leaving directory `/home/david/u-boot/cpu/mcf52x2'<br>make[1]: Entering directory `/home/david/u-boot/cpu/mcf52x2'
<br>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<br>start.S:61:43: error: operator '==' has no left operand<br>start.S:180:41: error: operator '==' has no left operand<br>start.S:333:34: error: operator '!=' has no left operand<br>
make[1]: *** [start.o] Error 1<br>make[1]: Leaving directory `/home/david/u-boot/cpu/mcf52x2'<br>make: *** [cpu/mcf52x2/start.o] Error 2<br><br><br><div class="gmail_quote">On Jan 9, 2008 7:28 PM, Liew Tsi Chung <<a href="mailto:Tsi-chung.Liew@freescale.com">
Tsi-chung.Liew@freescale.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>David,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span> 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.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span> Hope this help.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Regards,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>TsiChung</span></font></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:u-boot-users-bounces@lists.sourceforge.net" target="_blank">u-boot-users-bounces@lists.sourceforge.net</a>
[mailto:<a href="mailto:u-boot-users-bounces@lists.sourceforge.net" target="_blank">u-boot-users-bounces@lists.sourceforge.net</a>] <b>On Behalf Of </b>David
van Geest<br><b>Sent:</b> Tuesday, January 08, 2008 11:55 PM<br><b>To:</b>
u-boot-users<br><b>Subject:</b> [U-Boot-Users] u-boot on
M5275EVB?<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>Hi all,<br><br>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.<br><br>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? <br><br>Apologies for my noob
questions :-).<br>Thanks.<br><br>-David van Geest<br>[ Rhythm Reloaded ]<br><a href="http://www.rhythmreloaded.com" target="_blank">www.rhythmreloaded.com</a><br></div></div></div>
</blockquote></div><br>