]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fdt: Allow non-FDT kernels to boot when CONFIG_OF_LIBFDT is defined
authorSuriyan Ramasami <suriyan.r@gmail.com>
Thu, 27 Nov 2014 21:24:16 +0000 (13:24 -0800)
committerTom Rini <trini@ti.com>
Mon, 8 Dec 2014 14:35:47 +0000 (09:35 -0500)
commit48aead71c1ad2c93fffa182e798f1bcbb5f6dd9d
tree865d2bf68980ec0c42d39d41133edb9f9566bb6c
parent8b923a56dc0eb9f1ce9d616ae93bd0f63857f315
fdt: Allow non-FDT kernels to boot when CONFIG_OF_LIBFDT is defined

The boot commands - bootz/bootm mandate a third argument which is the
address to the FDT blob. In cases where this argument is not specified,
boot fails with a message indicating a missing FDT.

This causes non-FDT kernels to fail to boot. This patch allows both FDT
and non-FDT kernels to boot by making the third parameter to the bootm/bootz
optional.

Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
[trini: Update again for covering appended DTB case after last revert in
this area]
Signed-off-by: Tom Rini <trini@ti.com>
common/image-fdt.c