public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew May <acmay@acmay.homeip.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] bootm change for standalone images
Date: Mon, 26 Jul 2004 18:21:14 -0700	[thread overview]
Message-ID: <20040727012114.GA22062@acmay.homeip.net> (raw)

I need to boot a HW test program and it expects to be loaded down at address 0x0
with the interrupt vectors laid out. So it is like a stupid homegrown OS.

I came up with this quick fix to check for a load to address 0x0 for a standalone
type, and not re-enable interrupts.

But I am not sure if the check would be universal.
Would it better to add a new type or flag to image header.

It looks like RTEMS is the simplest OS loader and it should work as
is with my image, but it would be nice to have a generic print instead.

-------------- next part --------------
--- u-boot-1.1.1/common/cmd_bootm.c	2004-04-18 14:13:43.000000000 -0700
+++ u-boot-gige2/common/cmd_bootm.c	2004-07-15 19:55:08.000000000 -0700
@@ -363,7 +363,7 @@
 
 	switch (hdr->ih_type) {
 	case IH_TYPE_STANDALONE:
-		if (iflag)
+		if ( ntohl(hdr->ih_load) != 0x0 && iflag)
 			enable_interrupts();
 
 		/* load (and uncompress), but don't start if "autostart"

             reply	other threads:[~2004-07-27  1:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-27  1:21 Andrew May [this message]
2004-07-27 22:05 ` [U-Boot-Users] bootm change for standalone images Wolfgang Denk
2004-07-27 22:31   ` Andrew May
2004-07-28  8:57     ` Wolfgang Denk
2004-07-28 19:59       ` Andrew May
2004-07-28 21:22         ` Wolfgang Denk
2004-07-29 17:16           ` Andrew May
2004-07-29 17:29             ` Wolfgang Denk
2004-07-29 18:00               ` Andrew May

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040727012114.GA22062@acmay.homeip.net \
    --to=acmay@acmay.homeip.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox