kernel: mtdsplit_minor: accept bootimage filename
authorJohn Thomson <git@johnthomson.fastmail.com.au>
Wed, 16 Oct 2024 02:51:22 +0000 (12:51 +1000)
committerRobert Marko <robimarko@gmail.com>
Wed, 30 Oct 2024 10:15:34 +0000 (11:15 +0100)
commit36834ea3403d05b6beab3a2efc3f00f097e58c81
treee183c3f8281c6e513b36029259464f564a8cdb4a
parentade045084bd3f86969eaf0b35234aaa01e430fe1
kernel: mtdsplit_minor: accept bootimage filename

RouterBOOT v7 on NOR devices no longer accepts the YAFFS kernel ELF
method of booting. It will accept an NPK image named bootimage.
Adjust mtdsplit_minor to accept this second possible boot file name.
Use the conservative value of 127 for YAFFS max name length (used when
YAFFS compiled with unicode support) vs 255.

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Acked-by: Thibaut VARENE <hacks@slashdirt.org>
Link: https://github.com/openwrt/openwrt/pull/16780
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_minor.c