From: Andrew May Date: Mon, 26 Jul 2004 18:21:14 -0700 Subject: [U-Boot-Users] bootm change for standalone images Message-ID: <20040727012114.GA22062@acmay.homeip.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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"