public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Can we drop I386 specific hack from do_bootm()?
@ 2007-12-19 15:03 Bartlomiej Sieka
  2007-12-27 15:07 ` Bartlomiej Sieka
  0 siblings, 1 reply; 2+ messages in thread
From: Bartlomiej Sieka @ 2007-12-19 15:03 UTC (permalink / raw)
  To: u-boot

Hello,

While working on adapting do_bootm() to new uImage format, I've came 
across this I386-specific hack:

#ifdef __I386__ /* correct image format not implemented yet - fake it */
                 if (fake_header(hdr, (void*)addr, -1) != NULL) {
                         /* to compensate for the addition below */
                         addr -= sizeof(image_header_t);
                         /* turnof verify,
                          * fake_header() does not fake the data crc
                          */
                         verify = 0;
                 } else
#endif  /* __I386__ */

It looks like I386 targets provide the kernel as an zImage, instead of
an uImage, and this special case is needed to add a faked uImage header,
so that the rest of the booting code works without modification.

How about dropping this hack altogether? This would make the code
cleaner, but would require I386 targets (sc520_cdp, sc520_spunk) to use
kernels in uImage format.

What do people think? What is the opinion of the maintainer of the 
affected platforms (Daniel Engstr?m, copied)?

Regards,
Bartlomiej

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

* [U-Boot-Users] Can we drop I386 specific hack from do_bootm()?
  2007-12-19 15:03 [U-Boot-Users] Can we drop I386 specific hack from do_bootm()? Bartlomiej Sieka
@ 2007-12-27 15:07 ` Bartlomiej Sieka
  0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Sieka @ 2007-12-27 15:07 UTC (permalink / raw)
  To: u-boot

Bartlomiej Sieka wrote:
[...]
> While working on adapting do_bootm() to new uImage format, I've came 
> across this I386-specific hack:
[...]
> How about dropping this hack altogether? This would make the code
> cleaner, but would require I386 targets (sc520_cdp, sc520_spunk) to use
> kernels in uImage format.
> 
> What do people think? What is the opinion of the maintainer of the 
> affected platforms (Daniel Engstr?m, copied)?

Just a quick update: Daniel's email address given in MAINTAINERS is no
longer actual, so he's not likely to voice his opinion... Anybody else
would like to comment?

Regards,
Bartlomiej

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

end of thread, other threads:[~2007-12-27 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 15:03 [U-Boot-Users] Can we drop I386 specific hack from do_bootm()? Bartlomiej Sieka
2007-12-27 15:07 ` Bartlomiej Sieka

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