kernel: add parser finding rootfs after CFE bootfs
authorRafał Miłecki <rafal@milecki.pl>
Wed, 20 Jan 2021 15:49:26 +0000 (16:49 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 22 Jan 2021 19:14:39 +0000 (20:14 +0100)
commit20b4f77bb69cdded143c15ce962ccd3483bfe77a
tree28f223a386549a01e04269caa7ac42ec60629bcb
parent6ba3a0e889053475930e9a23a2404d8872eb887a
kernel: add parser finding rootfs after CFE bootfs

It's required for BCM4908. It cannot use "bcm-wfi-fw" parser because
that one requires *two* JFFS2 partitions which is untested / unsupported
on the BCM4908 architecture. With a single JFFS2 partition "bcm-wfi-fw"
parser will:
1. Fail to find "vmlinux.lz" as it doesn't follow "1-openwrt" file
2. Create partitions that don't precisely match bootfs layout

The new parser is described in details in the MTD_SPLIT_CFE_BOOTFS
symbol help message.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm4908/config-5.4
target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
target/linux/generic/files/drivers/mtd/mtdsplit/Makefile
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_cfe_bootfs.c [new file with mode: 0644]