aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-11-10 21:58:22 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-11-11 01:12:54 +1000
commitea4ca65aaf51b511499a45bfe02c8525d3288b42 (patch)
tree97a721c1ef03ee04c93049f1d83b06de0153706c
parentabd094bcbcce404b24d724930f040eca54e9cb3d (diff)
downloadmeta-xilinx-ea4ca65aaf51b511499a45bfe02c8525d3288b42.tar.gz
meta-xilinx-ea4ca65aaf51b511499a45bfe02c8525d3288b42.tar.bz2
meta-xilinx-ea4ca65aaf51b511499a45bfe02c8525d3288b42.zip
linux/config: For Zynq hard disable CONFIG_DEBUG_RODATA
CONFIG_DEBUG_RODATA was switched to default yes in v4.6+ kernels. Whilst the feature works correctly it causes changes with how the kernel .head.text and .text sections are padded which allows for memory below 0x80000 (512KB) to be non-reserved and used as memory for DMA allocations which do not work on Zynq due to devices not being allowed to access DDR below 0x80000. Disabling CONFIG_DEBUG_RODATA prevents the padding between .head.text/.text. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/zynq7.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/zynq7.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/zynq7.cfg
index 93584875..b6dc0dbd 100644
--- a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/zynq7.cfg
+++ b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/zynq7.cfg
@@ -40,3 +40,6 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_IDLE=y
CONFIG_ARM_ZYNQ_CPUIDLE=y
+# DEBUG_RODATA causes issues with the lower 512KB of memory which doesn't do DMA
+# CONFIG_DEBUG_RODATA is not set
+