Re: How to run a "Hello world" on ppc board?
From: Frank (young726_at_yahoo.com)
Date: 04/08/04
- Next message: mark: "Re: Building SnapGear for x86"
- Previous message: Wolfgang Mües: "Re: reserving gpios"
- In reply to: Blane Bramble: "Re: How to run a "Hello world" on ppc board?"
- Next in thread: Fred: "Re: How to run a "Hello world" on ppc board?"
- Reply: Fred: "Re: How to run a "Hello world" on ppc board?"
- Reply: Wolfgang Denk: "Re: How to run a "Hello world" on ppc board?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 7 Apr 2004 15:20:21 -0700
I think I didn't make myself clear. I haven't had the linux kernel
running on my board yet. The board has only a boot loader. The boot
loader has TFTP and serial port enabled. I am wondering if I can run a
program _before_ I load the linux kernel? In another word, can I use
the boot loader to load a C program and send some data to serial port
so that I can monitor it through minicom?
Thanks,
Frank
"Blane Bramble" <blane@spamguard.lyzard.net> wrote in message news:<ghsdk1-29r.ln1@shelob.lyzard.net>...
> "Frank" <young726@yahoo.com> wrote in message
> news:620b1276.0404062207.4ae6f853@posting.google.com...
> > I am using ppc 405gp and monta vista. How to make a simple "Hello
> > world" C program so that boot loader can load it and run it in RAM?
> > The boot loader already has serial port enabled. I will be happy if I
> > can see the string output on the serial monitor (I am using minicom).
> > Is this kind of program considered running in kernel space or user
> > space? Should I use printf or printk? Could anyone give some detailed
> > compile and link commands?
>
> Read the manuals that come with MontaVista's distribution, and get the board
> to boot the MontaVista kernel via TFTP and NFS. You can then cross-compile a
> test program, put it in the NFS exported directory on your host, and either
> use ssh or a serial terminal (minicom) to log in and run the program.
>
> Blane.
- Next message: mark: "Re: Building SnapGear for x86"
- Previous message: Wolfgang Mües: "Re: reserving gpios"
- In reply to: Blane Bramble: "Re: How to run a "Hello world" on ppc board?"
- Next in thread: Fred: "Re: How to run a "Hello world" on ppc board?"
- Reply: Fred: "Re: How to run a "Hello world" on ppc board?"
- Reply: Wolfgang Denk: "Re: How to run a "Hello world" on ppc board?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|