MCF5271 Port.
I am new to U-Boot. I downloaded u-boot-1.1.6 and plan to use the same on the MCF5271 EVB. My host system has Red Hat 6.
I followed the instructions provided in the readme and I got the following result
[root at em u-boot-1.1.6]# make M5271EVB_config Configuring for M5271EVB board...
[root at em u-boot-1.1.6]# make all
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/U-Boot/u-boot-1.1.6/tools'
ln -s ../common/environment.c environment.c ln -s ../lib_generic/crc32.c crc32.c
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/tools'
make[1]: Entering directory `/U-Boot/u-boot-1.1.6/tools'
make[1]: Nothing to be done for _depend'. make[1]: Leaving directory /U-Boot/u-boot-1.1.6/tools'
make[1]: Entering directory `/U-Boot/u-boot-1.1.6/examples'
m68k-elf-gcc: hello_world.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: stubs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ' make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/examples'
make[1]: Entering directory `/U-Boot/u-boot-1.1.6/post'
m68k-elf-gcc: cache_8xx.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: cache.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: codec.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: cpu.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: dsp.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: ether.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: i2c.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: memory.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: post.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: rtc.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: spr.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: sysmon.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: tests.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: uart.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: usb.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: watchdog.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ' make[1]: *** [.depend] Error 1
make[1]: Leaving directory /U-Boot/u-boot-1.1.6/post' make[1]: Entering directory /U-Boot/u-boot-1.1.6/post/cpu'
m68k-elf-gcc: asm.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: cmp.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: cmpi.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: two.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: twox.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: three.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: threex.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: threei.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: andi.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: srawi.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: rlwnm.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: rlwinm.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: rlwimi.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: store.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: load.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: cr.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: b.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: multi.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: string.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: complex.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ' make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/post/cpu'
make: *** [depend] Error 2
Can you please help me out.
Regards,
Adarsh.
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
Quoted 3 lines · In message <[email protected]> you wrote:
I am new to U-Boot. I downloaded u-boot-1.1.6 and plan to use the same on the MCF5271 EVB. My host system has Red Hat 6.
Sounds as if you have a favour for old code. Be aware that problems may be lurking in that corner.
Quoted 4 lines
m68k-elf-gcc: hello_world.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: stubs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
...
Seems your toolchain is not working. Try another one.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I mean, I . . . think to understand you, I just don't know what you are saying ... - Terry Pratchett, _Soul Music_
Quoted 8 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
I am new to U-Boot. I downloaded u-boot-1.1.6 and plan to use the same on the MCF5271 EVB. My host system has Red Hat 6.
Sounds as if you have a favour for old code. Be aware that problems may be lurking in that corner.
Quoted 6 lines
Quoted 4 lines
m68k-elf-gcc: hello_world.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: stubs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'...
Seems your toolchain is not working. Try another one.
As Wolfgang says, old toolchains will do this. When trying to compile a recent checkout using the 20010318 Snapgear toolchain, I got the same error. When I upgraded to the 20060615 release, it worked.
Also note that someone recently had a different problem with compiling the 5271 port using the 20060615 toolchain. Here's a link to his post and someone's reply on how to fix it:
http://comments.gmane.org/gmane.comp.hardware.motorola.microcontrollers.coldfire/7212.
I haven't looked at the issue yet. If you (or anyone) gets a chance, it'd be helpful to know what the issue is and if this is a real fix or just a workaround.
Signature · 1 line
Zachary P. Landau <[email protected]>
Quoted 10 lines · Zachary P. Landau <kapheine <at> gmail.com> writes:
Quoted 8 lines · On 1/29/07, Wolfgang Denk <wd <at> denx.de> wrote:
Quoted 3 lines · In message <371814.45747.qm <at> web8321.mail.in.yahoo.com> you wrote:
I am new to U-Boot. I downloaded u-boot-1.1.6 and plan to use the same on the MCF5271 EVB. My host system has Red Hat 6.
Sounds as if you have a favour for old code. Be aware that problems may be lurking in that corner.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
m68k-elf-gcc: hello_world.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: stubs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'...
Seems your toolchain is not working. Try another one.As Wolfgang says, old toolchains will do this. When trying to compile a
recent
Quoted 4 lines
checkout using the 20010318 Snapgear toolchain, I got the same error. When I upgraded to the 20060615 release, it worked.
Also note that someone recently had a different problem with compiling the
5271
Quoted 4 lines
port using the 20060615 toolchain. Here's a link to his post and someone's reply on how to fix it:
http://comments.gmane.org/gmane.comp.hardware.motorola.microcontrollers.coldfir
e/7212.
Quoted 4 lines
I haven't looked at the issue yet. If you (or anyone) gets a chance, it'd be helpful to know what the issue is and if this is a real fix or just a workaround.
Hi Zachary,
I have with me m68k-elf-tools-20030314 tool chain. I have one more thing to report. I tried building twice after I posted the message and each time I got different errors.
the first time:
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/fs/jffs2'
make -C fs/reiserfs/
make[1]: Entering directory `/U-Boot/u-boot-1.1.6/fs/reiserfs'
m68k-elf-gcc: reiserfs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: dev.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: mode_string.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/fs/reiserfs'
make: *** [fs/reiserfs/libreiserfs.a] Error 2
the second time:
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/fs/reiserfs' make -C fs/ext2/
make[1]: Entering directory `/U-Boot/u-boot-1.1.6/fs/ext2'
m68k-elf-gcc: ext2fs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: dev.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/U-Boot/u-boot-1.1.6/fs/ext2'
make: *** [fs/ext2/libext2fs.a] Error 2
Anyways i will try it out with 20060615. Thanks.
Regards,
Adarsh.
Quoted 17 lines · Adarsh Babu <adarshrbpin <at> yahoo.co.in> writes:
Quoted 14 lines · Zachary P. Landau <kapheine <at> gmail.com> writes:
Quoted 12 lines · On 1/29/07, Wolfgang Denk <wd <at> denx.de> wrote:
Quoted 3 lines · In message <371814.45747.qm <at> web8321.mail.in.yahoo.com> you wrote:
I am new to U-Boot. I downloaded u-boot-1.1.6 and plan to use the same on the MCF5271 EVB. My host system has Red Hat 6.
Sounds as if you have a favour for old code. Be aware that problems may be lurking in that corner.
Quoted 4 lines
m68k-elf-gcc: hello_world.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
m68k-elf-gcc: stubs.o: No such file or directory
m68k-elf-gcc: unrecognized option `-MQ'
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
...
Seems your toolchain is not working. Try another one.As Wolfgang says, old toolchains will do this. When trying to compile a
recent
Quoted 1 line
checkout using the 20010318 Snapgear toolchain, I got the same error.
When I
Quoted 9 lines
Quoted 3 lines
upgraded to the 20060615 release, it worked.
Also note that someone recently had a different problem with compiling the
5271
Quoted 4 lines
port using the 20060615 toolchain. Here's a link to his post and someone's reply on how to fix it:
http://comments.gmane.org/gmane.comp.hardware.motorola.microcontrollers.coldfir
Quoted 2 lines
e/7212.
Quoted 1 line
I haven't looked at the issue yet. If you (or anyone) gets a chance, it'd
be
Quoted 5 lines
Quoted 3 lines
helpful to know what the issue is and if this is a real fix or just a workaround.
Hi Zachary,
Well thanks a lot. The 20060615 tool chain along with the suggestion in the link that you sent me did the trick. But now I face a different problem. I did get a neat build and the u-boot.bin file. I flashed the same onto the EVB. But i can't get a u-boot prompt on Minicom. Its just blank and nothing else. I opened the Srec file and compared it with the Srec file I got for MCF5272 with u-boot1.1.2 and seemed pretty ok. Do I have to do something to get it on the console ? is there any other modifications that i need to do other than make M5271EVB_config and make ???
Please help me out.
Regards,
Adarsh.
Quoted 11 lines
Well thanks a lot for your suggestion of going for the new tool chain. The 20060615 tool chain along with the suggestion in the link that you sent me did the trick. But now I face a different problem. I did get a neat build and the u-boot.bin file. I flashed the same onto the EVB. But i can't get a u-boot prompt on Minicom. Its just blank and nothing else. I opened the Srec file and compared it with the Srec file I got for MCF5272 with u-boot1.1.2 and seemed pretty ok.
Is there something specific that I have to do something to get it on the console ? Are there any other modifications that i need to do other than make
M5271EVB_configand make ???
Unfortunately I've never tried u-boot on the M5271EVB. I only added support for the R5200 (a board we did for a customer). According to the Changelog file for u-boot, Marian Balakowicz <[email protected]> did the M5271EVB port. That information really should be in the MAINTAINERS file, but it doesn't seem to be.
I guess I'd say start with making sure there aren't any jumpers or switches on the M5271EVB that can change chip selects or anything like that. Another possibility would be that something broke. You could try checking out commit 78b123cd69d485887f33ebd33ba1f9b27f8e6916, where M5271EVB support was first entered in.
Failing that you'll probably have to start tracing execution, trying to find out where it is failing.
Signature · 1 line
Zachary P. Landau <[email protected]>
Adarsh Babu wrote:
[...]
Quoted 7 lines
Well thanks a lot. The 20060615 tool chain along with the suggestion in the link that you sent me did the trick. But now I face a different problem. I did get a neat build and the u-boot.bin file. I flashed the same onto the EVB. But i can't get a u-boot prompt on Minicom. Its just blank and nothing else. I opened the Srec file and compared it with the Srec file I got for MCF5272 with u-boot1.1.2 and seemed pretty ok. Do I have to do something to get it on the console ?
Hello Adarsh,
There have been changes to cpu/mcf52x2/start.S since the addition of M5271EVB that broke things for this target - with one of the symptoms being missing console output. This have been fixed recently (commit daa6e418bcc0c717752e8de939c213c790286096), so you could try to (1) follow Zachary's suggestion and use sources as of commit 78b123cd69d485887f33ebd33ba1f9b27f8e6916, or (2) use recent sources (daa6e418bcc0c717752e8de939c213c790286096 and later).
HTH,
Bartlomiej
Quoted 4 lines · Bartlomiej Sieka <tur <at> semihalf.com> writes:
Adarsh Babu wrote:
[...]Quoted 1 line
Well thanks a lot. The 20060615 tool chain along with the suggestion in
the
Quoted 1 line
Quoted 1 line
link that you sent me did the trick. But now I face a different problem. I
did
Quoted 1 line
Quoted 1 line
get a neat build and the u-boot.bin file. I flashed the same onto the EVB.
But
Quoted 2 lines
Quoted 2 lines
i can't get a u-boot prompt on Minicom. Its just blank and nothing else. I opened the Srec file and compared it with the Srec file I got for MCF5272
with
Quoted 1 line
Quoted 1 line
u-boot1.1.2 and seemed pretty ok. Do I have to do something to get it on
the
Quoted 12 lines
Quoted 1 line
console ?
Hello Adarsh,
There have been changes to
cpu/mcf52x2/start.Ssince the addition of M5271EVB that broke things for this target - with one of the symptoms being missing console output. This have been fixed recently (commitdaa6e418bcc0c717752e8de939c213c790286096), so you could try to (1) follow Zachary's suggestion and use sources as of commit78b123cd69d485887f33ebd33ba1f9b27f8e6916, or (2) use recent sources (daa6e418bcc0c717752e8de939c213c790286096and later).
Quoted 6 lines
HTH,
Bartlomiej-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job
easier.
Quoted 3 lines
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Hi Bartlomiej,
Thanks for the suggestion. I have got the U-boot up for the EVB. I have started to customize U-boot for my board. I have taken the M5271 as an example to develop files for the custom board. There isn't a "flash.c" for the M5271evb in "board/m5271evb". So does the m5271evb port use the "flash.c" present in the common folder ?
Regards,
Adarsh.
Quoted 4 lines · In message <[email protected]> you wrote:
to develop files for the custom board. There isn't a "
flash.c" for the M5271evb in "board/m5271evb". So does the m5271evb port use the "flash.c" present in the common folder ?
No, it uses the CFI flash driver as all boards with CFI conformant flash devices should do.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de What is tolerance? -- it is the consequence of humanity. We are all formed of frailty and error; let us pardon reciprocally each other's folly -- that is the first law of nature. - Voltaire
Quoted 7 lines · Wolfgang Denk <wd <at> denx.de> writes:
Quoted 4 lines · In message <loom.20070208T161330-690 <at> post.gmane.org> you wrote:
to develop files for the custom board. There isn't a "
flash.c" for the M5271evb in "board/m5271evb". So does the m5271evb port use the "flash.c" present in the common folder ?
Quoted 7 lines
No, it uses the CFI flash driver as all boards with CFI conformant flash devices should do.
Best regards,
Wolfgang Denk
Hi,
I created files for the custom board with M5271EVB as the example. I modified the dram init to support the SDRAM we have on the board. I also made changes to the flash base address and the associated to gel with our memory map. when I flashed the u-boot.bin file that I got, the following turned up on the console.
U-Boot 1.2.0 (Feb 13 2007 - 20:15:12)
CPU: Freescale Coldfire MCF5271 at 100 MHz Board: Freescale M5271EVB DRAM: 16 MB
FLASH:
The board hung after "FLASH:". The flash on our board is SST39VF6401. From the Flash.h file I learn that SSTxF6401 has been considered and cfi_driver.c will check the CFI conformant device. Can you please suggest the possible areas that I should check or have neglected.
Regards,
Adarsh.
Adarsh Babu wrote:
[...]
Quoted 4 lines
Well thanks a lot. The 20060615 tool chain along with the suggestion in the link that you sent me did the trick. But now I face a different problem. I did get a neat build and the u-boot.bin file. I flashed the same onto the EVB. But i can't get a u-boot prompt on Minicom.
One more thing: I just came across the following in the DULG (5.6. Initialization), seems related:
"If you are running Linux on your host system we recommend either kermit or cu as terminal emulation programs. Do not use minicom, since this has caused problems for many users, especially for software download over the serial port."
Regards,
Bartlomiej