[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] Hello World
Hi John,
> After you run ./hello, can you recover the login?
Yes, after ./hello executes, the terminal is returned and commands can be executed.
> Can you execute "stty sane" (even if you can't see the characters as you
> type them)?
Yes, executing "stty sane" executes and returns without printing anything to the screen.
> What if you do the out of tree compile, but remove the printf call (ie
> just have the program do effectively nothing)?
Removing the printf call and then executing ./hello from a telnet prompt results in the same garbled mess. Some of the junk that is printed is boxed below:
------------------------------------------------------
Command: ÉÉÉÉÉÉÉÉUëσSR╗ òí òâ° t
âδ♦ ╨ï♥â° u⌠X[]├UëσSΦ
ÉÉÉÉÉÉÉÉUëσSR╗: Bad command or file name
Command:
Command: 3.3.2 (Mandrake Linux 10.0 3.3.2-4mdk)
3.3.2: Bad command or file name
Command:
Command: 0.7
------------------------------------------------------
It seems like it is getting compiled into x86 instructions instead of microblaze instructions. In fact, the hello world executes fine on the x86 linux system.
> Does the same happen if you do an in-tree compile (basically create a
> uClinux-dist/user/hello directory, put your source and Makefile in
> there, and adjust the /user/Makefile to build your app)?
I will get to work on this.
Thank you!
-Shamus
-----Original Message-----
From: owner-microblaze-uclinux@itee.uq.edu.au [mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of John Williams
Sent: Monday, July 12, 2004 6:01 PM
To: microblaze-uclinux@itee.uq.edu.au
Subject: Re: [microblaze-uclinux] Hello World
Hi Shamus,
McCarthy, Shamus wrote:
> I am trying to compile a simple hello world application for an Insight/Memec
> Virtex2 board. I have read the out of tree compile and am even using the
> MAKEFILE from this page; however, when I run the compiled program I receive
> a garbled mess in the telnet screen. Here is my testing procedure:
>
> 1) Get to a working shell prompt (telnet into the board)
> 2) Mount a NFS file system (Mandrake 10)
> 3) cd /mnt
> 4)./hello
That's very strange - a couple of questions:
After you run ./hello, can you recover the login? ie is the system
crashing, or is it just getting the terminal into a funny state? Can
you execute "stty sane" (even if you can't see the characters as you
type them)?
Does the same happen if you do an in-tree compile (basically create a
uClinux-dist/user/hello diurectory, put your source and Makefile in
there, and adjust the /user/Makefile to build your app)?
What if you do the out of tree compile, but remove the printf call (ie
just have the program do effectively nothing)?
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/