aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-02-14 14:42:10 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-22 22:52:19 +0100
commit890daca9e2596359808bcffcab31202288bef63f (patch)
tree377d003b9ffe763bfc8983eb41a6ef69214d6602 /target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
parent2c8cb0c572956a59d6495e4d2e0463bc14bf8d0e (diff)
downloadupstream-890daca9e2596359808bcffcab31202288bef63f.tar.gz
upstream-890daca9e2596359808bcffcab31202288bef63f.tar.bz2
upstream-890daca9e2596359808bcffcab31202288bef63f.zip
kernel: mtdsplit: Add support for Mikrotik NOR firmware
The RouterBOOT bootloader does not care where the kernel lives in the SPI flash, all that matters is that the kernel is wrapped in the custom yaffs container as generated by kernel2minor. This container has a fixed signature as follows: 00000000 00 00 00 01 00 00 00 01 ff ff 6b 65 72 6e 65 6c |..........kernel| This patch adds mtdsplit support for identifying that signature and triggering the search for the rootfs. rootfs is expected at EB boundary since we use wget mtd_find_rootfs_from(). We make no use of the yaffs file size field because it contains invalid data in the image generated by kernel2minor. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig b/target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
index 7e653e78a1..4a15d4879b 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
@@ -64,3 +64,8 @@ config MTD_SPLIT_EVA_FW
bool "EVA image based firmware partition parser"
depends on MTD_SPLIT_SUPPORT
select MTD_SPLIT
+
+config MTD_SPLIT_MINOR_FW
+ bool "Mikrotik NOR image based firmware partition parser"
+ depends on MTD_SPLIT_SUPPORT
+ select MTD_SPLIT