From 893c6c3d5e3a71af9de1dfac6adc8d1ccb74e03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Thu, 16 Mar 2023 15:10:58 +0530 Subject: [PATCH 035/281] OpenWrt: 435-mtd-add-routerbootpart-parser-config.patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit generic: routerboot partition build bits (5.4) This patch adds routerbootpart kernel build bits Signed-off-by: Thibaut VARĂˆNE Change-Id: Ie89835cbb1f00f9e84383dc686fe45d11407b64b Signed-off-by: Ram Chandra Jangir --- drivers/mtd/parsers/Kconfig | 9 +++++++++ drivers/mtd/parsers/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig index 1bf51c672c86..b3187cb06247 100644 --- a/drivers/mtd/parsers/Kconfig +++ b/drivers/mtd/parsers/Kconfig @@ -221,3 +221,12 @@ config MTD_SERCOMM_PARTS partition map. This partition table contains real partition offsets, which may differ from device to device depending on the number and location of bad blocks on NAND. + +config MTD_ROUTERBOOT_PARTS + tristate "RouterBoot flash partition parser" + depends on MTD && OF + help + MikroTik RouterBoot is implemented as a multi segment system on the + flash, some of which are fixed and some of which are located at + variable offsets. This parser handles both cases via properly + formatted DTS. diff --git a/drivers/mtd/parsers/Makefile b/drivers/mtd/parsers/Makefile index c2e276c0611d..198f9a26186b 100644 --- a/drivers/mtd/parsers/Makefile +++ b/drivers/mtd/parsers/Makefile @@ -16,3 +16,4 @@ obj-$(CONFIG_MTD_SERCOMM_PARTS) += scpart.o obj-$(CONFIG_MTD_SHARPSL_PARTS) += sharpslpart.o obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o obj-$(CONFIG_MTD_QCOMSMEM_PARTS) += qcomsmempart.o +obj-$(CONFIG_MTD_ROUTERBOOT_PARTS) += routerbootpart.o -- 2.17.1