From: Chukun Pan Date: Mon, 20 Oct 2025 14:16:21 +0000 (+0800) Subject: d1: enable overlay support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e7950a45de593354a508d80a39951b440336ab7;p=thirdparty%2Fopenwrt.git d1: enable overlay support Add the loop module and mkfs tool to use f2fs/ext4 based overlays. This fixes the following bug: mount_root: unable to create loop device mount_root: no usable overlay filesystem found, using tmpfs overlay Fixes: 99545b4bb1faf7c3 ("d1: add new target") Signed-off-by: Chukun Pan --- diff --git a/target/linux/d1/Makefile b/target/linux/d1/Makefile index 0d30c8233c2..cd3b1495ebf 100644 --- a/target/linux/d1/Makefile +++ b/target/linux/d1/Makefile @@ -15,6 +15,8 @@ KERNEL_PATCHVER:=6.12 include $(INCLUDE_DIR)/target.mk +DEFAULT_PACKAGES += e2fsprogs f2fsck mkf2fs + define Target/Description Build firmware images for Allwinner D1 RISC-V boards endef diff --git a/target/linux/d1/config-6.12 b/target/linux/d1/config-6.12 index fc733f3455d..53d5319030c 100644 --- a/target/linux/d1/config-6.12 +++ b/target/linux/d1/config-6.12 @@ -23,6 +23,7 @@ CONFIG_ARCH_WANTS_THP_SWAP=y CONFIG_ASN1=y CONFIG_ASSOCIATIVE_ARRAY=y # CONFIG_AX45MP_L2_CACHE is not set +CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_SD=y CONFIG_BLK_MQ_PCI=y CONFIG_CC_HAVE_STACKPROTECTOR_TLS=y