summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-08-19 16:24:17 +0200
committerStefan Roese <sr@denx.de>2020-08-31 14:45:53 +0200
commita65e65939eaee611c86c96bee4556f552f5b42a3 (patch)
tree27a840ec63ff32cf164169510f4320666cbe6642 /configs
parent4366082bfee345d2ca9f8ca7a27e70b6e30efd47 (diff)
arm: mvebu: Espressobin: Setup MTD partitions when booting kernel
Due to different partition layouts in different U-Boot versions, DTS for Espressobin in Linux does not contain any definition of MTD partitions. See commit https://git.kernel.org/stable/c/00954566464a4 for more details. This patch via ft_board_setup() hook fills current partition layout used by U-Boot, so booted kernel would see correct MTD partitions layout. U-Boot env partition is calculated from CONFIG_ENV_OFFSET option. First partition contains secure firmware, ARM trusted firmware and U-Boot with checksums. So it is not possible to replace just one image (e.g. U-Boot) without updating other parts where is stored checksum of U-Boot. Therefore there is no extra partition defined for U-Boot and first partition is called just 'firmware'. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Konstantin Porotchkin <kostap@marvell.com> Tested-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'configs')
-rw-r--r--configs/mvebu_espressobin-88f3720_defconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/mvebu_espressobin-88f3720_defconfig b/configs/mvebu_espressobin-88f3720_defconfig
index afcdd947c1..0c1c92d4ff 100644
--- a/configs/mvebu_espressobin-88f3720_defconfig
+++ b/configs/mvebu_espressobin-88f3720_defconfig
@@ -82,3 +82,4 @@ CONFIG_SHA1=y
CONFIG_SHA256=y
CONFIG_MVNETA=y
CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_OF_BOARD_SETUP=y