diff options
| author | Jascha Sundaresan | 2026-04-08 07:21:58 +0000 |
|---|---|---|
| committer | Christian Marangi | 2026-04-08 08:04:02 +0000 |
| commit | 865229fad90af85989bbcdd294424a6f2d2723b3 (patch) | |
| tree | fc92d5fe92747ec099dff98925d29b434dcaf3f9 | |
| parent | 642e10e5f76279cd7dba49c73e3b1b40f5cc04d1 (diff) | |
| download | openwrt-865229fad90af85989bbcdd294424a6f2d2723b3.tar.gz | |
mediatek: filogic: fix EAX17 rootfs hash in FIT node for per-device rootfs builds
When CONFIG_TARGET_PER_DEVICE_ROOTFS is enabled (as in buildbot builds),
the final per-device rootfs is assembled at root.squashfs+pkg=<hash> rather
than root.squashfs. The gen_netgear_rootfs_node.sh script was always hashing
root.squashfs (the base rootfs without device-specific packages), causing the
size and hash in the FIT node to not match the actual rootfs written to the
UBI volume, resulting in boot failure on buildbot-produced images.
Fix by using the per-device rootfs path when TARGET_PER_DEVICE_ROOTFS is set,
consistent with how include/image.mk handles the same distinction elsewhere.
Fixes: 46ab9f3f1c ("filogic: add support for Netgear EAX17")
Signed-off-by: Jascha Sundaresan <flizarthanon@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22839
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit bc0a2c933edc0ba56bf849f2681dd6ff6f487e7d)
| -rw-r--r-- | target/linux/mediatek/image/filogic.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index b76df57577..f87a6a2464 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -10,7 +10,7 @@ endef define Build/fit-with-netgear-top-level-rootfs-node $(call Build/fit-its,$(1)) - $(TOPDIR)/scripts/gen_netgear_rootfs_node.sh $(KERNEL_BUILD_DIR)/root.squashfs > $@.rootfs + $(TOPDIR)/scripts/gen_netgear_rootfs_node.sh $(KERNEL_BUILD_DIR)/root.squashfs$(if $(TARGET_PER_DEVICE_ROOTFS),+pkg=$(ROOTFS_ID/$(DEVICE_NAME))) > $@.rootfs awk '/configurations/ { system("cat $@.rootfs") } 1' $@.its > $@.its.tmp @mv -f $@.its.tmp $@.its @rm -f $@.rootfs |