Skip to contentSkip to conversation

how to run hello_world

U-Boot-Users Farrukh Masood 3 participants 3 messages Oct 8, 2004

lore
Share & tools
lore
#0 lore raw

Hi!
Please tell me where can i find hello_world.bin file and where should it be put on the host system to be accessible from u-boot based target system with tftpboot command.

It will be quite helpful for me if you can stepwise describe the procedure as I am unable to understand it from the denx tutorial.

thanks alot

Regards
Chishti

Wolfgang Denk <[email protected]> wrote:

Quoted 4 lines · In message <[email protected]> you wrote:

As described in u-boot readme file, to run hello_world example we have to write "loads", but this command doesnt seem to work with me and give the following msg

Unknown command 'loads' - try 'help'

Then it seems this command was not enabled in your board configuration. But you can load the file using TFTP as well.

Quoted 3 lines

and when i give the command go 40004 Hello World! This is a test.

following error msg appears

Ummm.. did you really expect that some magic code would spring into life and do something reasonable when you jump to this address after

---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041008/5938a1ce/attachment.htm

#1 lore raw

Your system should have a root directory called /tftpboot Any file that tftp can download from your host system to your target should be in a directory under /tftpboot. Keep things simple and put hello_world.bin file directly in /tftpboot.

As for finding hello_world.bin on your system, you might try...
cd /
find . -name "hello_world.bin" -print

Note that above command will yield a bunch of warnings if your aren't the superuser or root user.
Cheers,
T.mike
-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net
[mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Farrukh Masood
Sent: Friday, October 08, 2004 6:22 AM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] Re: how to run hello_world

Hi!
Please tell me where can i find hello_world.bin file and where should
it be put on the host system to be accessible from u-boot based target system with tftpboot command.

It will be quite helpful for me if you can stepwise describe the procedure
as I am unable to understand it from the denx tutorial.

thanks alot

Regards
Chishti

Wolfgang Denk <[email protected]> wrote:

    In message <[email protected]> you
Quoted 2 lines · wrote:

As described in u-boot readme file, to run hello_world example we have

to write "loads", but this command doesnt seem to work with me and give the following msg

Quoted 2 lines

Unknown command 'loads' - try 'help'

Then it seems this command was not enabled in your board configuration. But you can load the file using TFTP as well.

> and when i give the command go 40004 Hello World! This is a test. >
> following error msg appears

Ummm.. did you really expect that some magic code would spring into life and do something reasonable when you jump to this address after

----------------------------------------------------------------------------
--
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041008/62becb8a/attachment.htm

#2 lore raw
In reply to Farrukh Masood
Quoted 2 lines · In message <[email protected]> you wrote:

Please tell me where can i find hello_world.bin file and where should it be put on the host system to be accessible from u-boot based target system with tftpboot command.

You can find it in the examples/ directory (after building u-boot), and you load it to the address it is linked for - 0x40000 in this case.

Quoted 1 line

It will be quite helpful for me if you can stepwise describe the procedure as I am unable to understand it from the denx tutorial.

Maybe you explain which part of
http://www.denx.de/twiki/bin/view/DULG/UBootStandalone#Section_5.12.1.
you were unable to understand so we can improve the documentation.

I thought the description on this page was pretty explicit...

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Systems programmers are the high priests of a low cult.
                                                       -- R.S. Barton