Re: How to run a "Hello world" on ppc board?

From: Wolfgang Denk (wd_at_denx.muc.de)
Date: 04/09/04

  • Next message: Wolfgang Denk: "Re: reserving gpios"
    Date: Thu, 8 Apr 2004 23:12:47 GMT
    
    

    young726@yahoo.com (Frank) writes:

    >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

    You must provide more details. Which boot loader, for example?

    Some of them, like U-Boot for example, allow you to use "standalone
    applications" which can use services provided by the boot loader,
    like standard functions as printf() etc.

    Other boot loaders don't provide any interface to their builtin
    drivers, so you will probably end up re-coding your own serial driver
    if you need console output.

    Also, there may be a C runtime environment, or there may be not.

    I cannot even guess without precise information.

    Best regards,

    Wolfgang Denk

    -- 
    Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
    Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88   Web: www.denx.de
    "In matters of principle, stand like a rock;  in  matters  of  taste,
    swim with the current."                            - Thomas Jefferson
    

  • Next message: Wolfgang Denk: "Re: reserving gpios"