[RFC PATCH 0/1] Introduce mtd splitter for ELF kernel loader
sander at svanheule.net
Wed Jul 8 09:43:42 EDT 2020
Currently, there appears to be no mtd splitter that works with a
firmware partition starting with an ELF kernel loader. Devices using a
loader must provide manual splits, possibly increasing the maintenance
effort for these devices.
This splitter may for example be used with the TP-Link CPE devices that
use a plain ELF loader or OKLI loader, but currently require a fixed
partition layout. Some examples are CPE510 and CPE610 devices.
Support is provided for 32-bit and 64-bit platforms, as well as
different rootfs types. This splitter has been tested on my TP-Link
EAP245v1 (32-bit platform with squashfs rootfs).
Sander Vanheule (1):
kernel: mtdsplit: support ELF loader splitting
.../files/drivers/mtd/mtdsplit/Kconfig | 5 +
.../files/drivers/mtd/mtdsplit/Makefile | 1 +
.../files/drivers/mtd/mtdsplit/mtdsplit_elf.c | 216 ++++++++++++++++++
3 files changed, 222 insertions(+)
create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_elf.c
More information about the openwrt-devel