[PATCH 4/6] ARM: mxc: don't allow to compile together i.MX51 and i.MX53

Nicolas Pitre nicolas.pitre at linaro.org
Sun May 8 11:23:21 EDT 2011


On Sun, 8 May 2011, Russell King - ARM Linux wrote:

> On Sun, May 08, 2011 at 11:00:30AM -0400, Nicolas Pitre wrote:
> > If CONFIG_AUTO_ZRELADDR is set, then zImage will automatically place the 
> > kernel Image correctly in memory, assuming that zImage is itself loaded 
> > within the first 128MB of memory.
> 
> I was only covering the requirements of the Image, rather than zImage which
> you covered in a subsequent message.

Sorry if I already covered that.  I'm jet-lagged at the moment and my 
memory is fuzzy.

> > > There is one thing to watch out for though - if you did place it 16MB
> > > above, but still tell the kernel via ATAGs that the physical memory
> > > starts where it really does, then I'd expect things to explode as
> > > the kernel direct mapped memory would likely extend below PAGE_OFFSET.
> > 
> > Yeah... We should probably add a warning and truncate the beginning of 
> > the memory bank in that case.  This would also prevent memory from being 
> > wrongly declared below PHYS_OFFSET even without the P2V feature enabled.
> 
> We don't encouter the situation today, so lets leave it until we actually
> have a problem.  There's no point bloating the kernel with such checks if
> they're never going to fire.

OK.


Nicolas



More information about the linux-arm-kernel mailing list