* Russell King - ARM Linux <linux at armlinux.org.uk> [160707 03:25]: > On Wed, Jun 15, 2016 at 11:42:28PM +0100, Russell King - ARM Linux wrote: > > The boot environment must be setup such that there is room for the > > uncompressed image (aligned currently to 256 bytes) followed by the > > size of the compressed image, with any appended DTBs included. > > Anything which is located below that is likely to get trampled by > > the decompressor. > > There's a question that's been lingering, which hasn't been brought up > by anyone yet: should we even support zImage files with an appended > DTB for kexec? > > When kexec is operating in DTB mode, it will provide the DTB to the > kernel from the host environment, possibly with some modifications (eg, > to change the command line arguments.) Since an appended DTB would > override the kexec-provided DTB, this would wipe out those changes, > some of which are necessary for things like crashdump to work. > > So, I'm thinking that kexec should not support a zImage with appended > DTB - in fact, I think it should truncate the zImage to be loaded, and > ensure that the word following the zImage does not contain a DTB magic > number, in case the zImage has been built with CONFIG_ARM_APPENDED_DTB > enabled. > > Thoughts? Sorry for a late reply, I've been offline. Sounds like a good idea to me as this as we can properly error out with appendd dtb before anything nasty happens making new kernel fail. And if somebody really needs it, we can add an option for --force-appended-dtb. Regards, Tony