Skip to content

Makefile.boot cleanup

Uwe Kleine-König linux-arm-kernel linux-sh 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 5 patches 0 repliesNew

1 of 5 patches is in this archive. The cover letter announces 5.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
4/5Auto calculate ZRELADDR and provide option for exceptions+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Makefile.boot cleanup
Quoted 15 lines · Nicolas Pitre
Quoted 13 lines · Uwe Kleine-K?nig

Hello Eric,

Quoted 10 lines · Eric Miao

Several facts:

1. ZRELADDR in most cases can be auto detected by maksing PC with 0xf000_0000 if the zImage is placed within the first 256MiB from the memory start, which is a sane assumption except for:

- when ARCH_MX1 or ARCH_SHARK is defined
- when ARCH_U300 is defined (U300 really is strange when defining PHYS_OFFSET and ZRELADDR)
- or when ZBOOT_ROM is defined

Quoted 7 lines
Quoted 2 lines

If you guess ZRELADDR based on sp instead of pc it even should work if ZBOOT_ROM is defined?!

If you're using ZBOOT_ROM that means you want to execute zImage directly from ROM. This is therefore a highly customized configuration. In that context, having a variable phys-offset doesn't make much sense to start with.

Right, but then the kernel needs to know this fixed value for phys-offset. In the patches presented by Eric the person configuring the kernel needs to know that value. When guessing based on sp she doesn't need to read addional docs when enabling ZBOOT_ROM.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |