[U-Boot-Users] bootm change for standalone images
Andrew May
acmay at acmay.homeip.net
Tue Jul 27 03:21:14 CEST 2004
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"
More information about the U-Boot
mailing list