public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] bootm change for standalone images
@ 2004-07-27  1:21 Andrew May
  2004-07-27 22:05 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew May @ 2004-07-27  1:21 UTC (permalink / raw)
  To: u-boot

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"

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-07-29 18:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-27  1:21 [U-Boot-Users] bootm change for standalone images Andrew May
2004-07-27 22:05 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox