]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dm: spl: Support device tree when BSS is in a different section
authorSimon Glass <sjg@chromium.org>
Sun, 18 Oct 2015 01:41:19 +0000 (19:41 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Nov 2015 13:49:52 +0000 (14:49 +0100)
commit10172962479ddd6609101fdb83bde66c0719852c
treee196e182c84e2bab9fecbfdc059e042f05a84965
parent021b4d117cc9df9dba65c07f40d242e6d09f3106
dm: spl: Support device tree when BSS is in a different section

At present in SPL we place the device tree immediately after BSS. This
avoids needing to copy it out of the way before BSS can be used. However on
some boards BSS is not placed with the image - e.g. it can be in RAM if
available.

Add an option to tell U-Boot that the device tree should be placed at the
end of the image binary (_image_binary_end) instead of at the end of BSS.

Note: A common reason to place BSS in RAM is to support the FAT filesystem.
We should update the code so that it does not use so much BSS.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Kconfig
include/asm-generic/sections.h
lib/fdtdec.c