]> 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)
commitaf0a68f39e28ab67fab92854783898cc669b5e7c
tree31bd8b819760d7b72bdd090a4ab3ec6de3342fff
parent1b8bd930b05ba1f659bccfc6ef406e93916f57ed
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: 0f39cf158c67 ("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