From 890daca9e2596359808bcffcab31202288bef63f Mon Sep 17 00:00:00 2001 From: Thibaut VARENE Date: Tue, 14 Feb 2017 14:42:10 +0100 Subject: 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 --- target/linux/generic/config-4.4 | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/generic/config-4.4') diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4 index ebc54bc7bd..e76359a8ae 100644 --- a/target/linux/generic/config-4.4 +++ b/target/linux/generic/config-4.4 @@ -2367,6 +2367,7 @@ CONFIG_MTD_SPLIT=y CONFIG_MTD_SPLIT_FIRMWARE_NAME="firmware" # CONFIG_MTD_SPLIT_FIT_FW is not set # CONFIG_MTD_SPLIT_LZMA_FW is not set +# CONFIG_MTD_SPLIT_MINOR_FW is not set # CONFIG_MTD_SPLIT_SEAMA_FW is not set CONFIG_MTD_SPLIT_SQUASHFS_ROOT=y CONFIG_MTD_SPLIT_SUPPORT=y -- cgit v1.2.3