]> git.ipfire.org Git - thirdparty/openwrt.git/commit
generic: mtdsplit: fit: improve detecting external-data FIT
authorDaniel Golle <daniel@makrotopia.org>
Sat, 4 Oct 2025 23:34:42 +0000 (00:34 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 5 Nov 2025 14:19:39 +0000 (14:19 +0000)
commita3b2a2e15d5e5a296f5bc7c5549b11bba46e10ea
tree3b5b14b66ad83bb6bf7a9e06afaf0d47f2d02d0f
parentf91e205286aa0e3f60a8102c344ff14d9c1b96e1
generic: mtdsplit: fit: improve detecting external-data FIT

Currently the detection of external-data FIT images works by checking
if the FIT structure is more than 4 kiB. However, for boards with lots
of different DT-overlays and configurations the FIT structure can
exceed 4 kiB which results in the FIT splitter to fail detecting the
rootfs.
Increase the threshold for external-data FIT to 512 kiB as there aren't
any kernel images smaller than that, and FIT structure less than 512 kiB
will always be an external-data FIT.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c