diff options
author | Pali Rohár | 2022-08-01 12:02:20 +0200 |
---|---|---|
committer | Stefan Roese | 2022-08-09 08:57:23 +0200 |
commit | e6c5e975b53958f7780746648363187d23aea358 (patch) | |
tree | 6e8ba302dcf00967f03f3099474a21bb3c62504c /board | |
parent | 37af2c7b296c66bd463943a3193df3c5e085a738 (diff) |
arm: mvebu: turris_omnia: Increase fdt size in fixup_mtd_partitions
Sometimes fixup_mtd_partitions() prints during booting kernel error
"Failed fixing SPI NOR partitions!" because it does not have enough space
for creating all paritions nodes. So increase fdt size.
Fixes: 92f36c8e74c1 ("arm: mvebu: turris_omnia: fixup MTD partitions in Linux' DTB")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Marek Behún <kabel@kernel.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/CZ.NIC/turris_omnia/turris_omnia.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 796c55f3c63..98bad11537d 100644 --- a/board/CZ.NIC/turris_omnia/turris_omnia.c +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c @@ -979,6 +979,9 @@ static bool fixup_mtd_partitions(void *blob, int offset, struct mtd_info *mtd) return false; } + if (fdt_increase_size(blob, 512) < 0) + return false; + parts = fdt_add_subnode(blob, offset, "partitions"); if (parts < 0) return false; |