[U-Boot-Users] [PATCH] Fix the condition to detect if an image is already in its place

Uwe Kleine-König ukleinek at informatik.uni-freiburg.de
Wed Mar 21 21:33:15 CET 2007


Hello Wolfgang,

Wolfgang Denk wrote:
> In message <20070316090213.GA4940 at informatik.uni-freiburg.de> you wrote:
> > 
> > > XIP = eXecute In Place, i. e. the image is run directly from flash /
> > > ROM, without loading it to RAM at all.
> > That's clear, yes.  I recognize that my example is notional.  But the
> > other way round makes more sense.  If you have a non-XIP image then it
> > is not moved if it was loaded to ih_load or (ih_load - 0x40).
> 
> If you have a non-XIP image you willnot execute that part of the code.
> It was in an if-branch ...
The only condition I see is:

	hdr->ih_comp == IH_COMP_NONE

Could you please be more verbose and point out which if-branch you mean?

Best regards
Uwe

-- 
Uwe Kleine-König

exit vi, lesson I:
: q ! <CR>




More information about the U-Boot mailing list