]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: boot/compressed: Copy DTB to aligned address
authorPaul Cercueil <paul@crapouillou.net>
Wed, 3 Mar 2021 19:33:05 +0000 (19:33 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 8 Mar 2021 10:49:47 +0000 (11:49 +0100)
commitdee496a2cfd0652415f9a1b88f8370a56a80782b
tree31bd8b819760d7b72bdd090a4ab3ec6de3342fff
parent219c9076286fd92026e818ab1375558e5b20649f
MIPS: boot/compressed: Copy DTB to aligned address

Since 5.12-rc1, the Device Tree blob must now be properly aligned.

Therefore, the decompress routine must be careful to copy the blob at
the next aligned address after the kernel image.

This commit fixes the kernel sometimes not booting with a Device Tree
blob appended to it.

Fixes: 2b9136faec55 ("scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/compressed/decompress.c
arch/mips/kernel/vmlinux.lds.S