]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: better diagnostics with missing/corrupt dtb
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 21 Sep 2017 11:06:20 +0000 (12:06 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Sep 2017 12:57:21 +0000 (13:57 +0100)
commit99cf8f903148347e3d2ac86ffe98bb04bebc6983
tree3dd7e30953b8a218c5ac8ec1cca7f3b8fa0724d7
parent0f7c4c15a30ffc5f5fd563ad1159cb899e121407
ARM: better diagnostics with missing/corrupt dtb

With a kernel containing both DT and atag support, the diagnostics
output when the dtb is missing or corrupt assume that we're trying
to boot using atags and the machine ID, and only print the machine
ID.  This is not useful for diagnosing a missing or corrupt dtb.

Move the message into arch/arm/kernel/setup.c, and print the address
of the dtb/atag list, and the first 16 bytes of memory of the dtb or
atag list.

This allows us to see whether the dtb was corrupted in some way,
causing the fallback to the machine ID / atag list.

Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/atags_parse.c
arch/arm/kernel/setup.c