[U-Boot-Users] Need Some Help

Alshine Mondesir alshinem at xgtechnology.com
Fri Aug 1 20:25:14 CEST 2008


Wolfgang Denk,

Thanks for the reply, but I have a few questions.
The first is can U-boot load any application other than a Linux.
I simply want to use u-boot as a boot loader, to load a non-Linux app into
memory and jump to that app with or without uboot's hardware init. The
second wuestion is where can I get some help in doing just that, if it's
possible? I don't want to have to build and cross-compile my app in Linux in
order for u-boot to load it. Third, if I have to compile my app in Linux,
can I simply use mkimage with the hello world binary and do a bootm from
that?

Thanks in adavance,


Alshine Mondesir
Firmware Engineer
xG Technology Inc.
7771 W. Oakland Park Blvd, Sunrise, FL 33351
Tel: 954-572-0395 ext 3323
Fax: 954-572-0397
http://www.xgtechnology.com
-----Original Message-----
From: wd at denx.de [mailto:wd at denx.de] 
Sent: Wednesday, July 23, 2008 11:18 PM
To: Mondesir, Alshine
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Need Some Help

In message <7F4C091727699947ACBAB0410268C5D92B2FDB at VS11.EXCHPROD.USA.NET>
you wrote:
> 
> My latest endaevor has me cross compiling a stand alone application for
> MPC8548 PPC for a U-Boot Based target.  There is no Operating System to
> run on the target to speak of, just my application.  I'm building the
> application in Code Warrior using an 8548_init.S hardware intialization
> file.

What has this file to do with U-Boot? Nothing! Forget about it.

> 1) My first thought was that this should be as simple as using the .ELF
> image that codewarrior produces, right?  So I build a simple hello_world

I have no idea what CW produces. You should use the U-Boot Makefile
and linker scripts.

> application and sent it down to my target.  U-Boot recognizes it as an
> ELF image, sets up the segements, and tries to run it!  But then low and

Who says so?

> behold, the U-Boot flash image comes up again.

That's to be expected.

Guess it's time for you to start reading the fine manual, especially
the section about standalone applications.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is impractical for  the  standard  to  attempt  to  constrain  the
behavior  of code that does not obey the constraints of the standard.
                                                          - Doug Gwyn







More information about the U-Boot mailing list