diff options
author | John Bonesio <bones@secretlab.ca> | 2011-05-27 18:45:50 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2011-09-14 13:50:45 -0400 |
commit | e2a6a3aafa9862c4a4b59f2a59b8f923d64a680e (patch) | |
tree | 599aeb9dc39e0a987932e2c024e7f5e7667fa456 /arch/arm/Kconfig | |
parent | 72bf0bce411d9df0935eb77256604212de8f89cc (diff) |
ARM: zImage: Allow the appending of a device tree binary
This patch provides the ability to boot using a device tree that is appended
to the raw binary zImage (e.g. cat zImage <filename>.dtb > zImage_w_dtb).
Signed-off-by: John Bonesio <bones@secretlab.ca>
[nico: ported to latest zImage changes plus additional cleanups/improvements]
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r-- | arch/arm/Kconfig | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5ebc5d922ea1..c66e0808c2b1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -1781,6 +1781,26 @@ config ZBOOT_ROM_SH_MOBILE_SDHI | |||
1781 | 1781 | ||
1782 | endchoice | 1782 | endchoice |
1783 | 1783 | ||
1784 | config ARM_APPENDED_DTB | ||
1785 | bool "Use appended device tree blob to zImage (EXPERIMENTAL)" | ||
1786 | depends on OF && !ZBOOT_ROM && EXPERIMENTAL | ||
1787 | help | ||
1788 | With this option, the boot code will look for a device tree binary | ||
1789 | (DTB) appended to zImage | ||
1790 | (e.g. cat zImage <filename>.dtb > zImage_w_dtb). | ||
1791 | |||
1792 | This is meant as a backward compatibility convenience for those | ||
1793 | systems with a bootloader that can't be upgraded to accommodate | ||
1794 | the documented boot protocol using a device tree. | ||
1795 | |||
1796 | Beware that there is very little in terms of protection against | ||
1797 | this option being confused by leftover garbage in memory that might | ||
1798 | look like a DTB header after a reboot if no actual DTB is appended | ||
1799 | to zImage. Do not leave this option active in a production kernel | ||
1800 | if you don't intend to always append a DTB. Proper passing of the | ||
1801 | location into r2 of a bootloader provided DTB is always preferable | ||
1802 | to this option. | ||
1803 | |||
1784 | config CMDLINE | 1804 | config CMDLINE |
1785 | string "Default kernel command string" | 1805 | string "Default kernel command string" |
1786 | default "" | 1806 | default "" |