d1: enable overlay support
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 20 Oct 2025 14:16:21 +0000 (22:16 +0800)
committerZoltan HERPAI <wigyori@uid0.hu>
Fri, 23 Jan 2026 09:35:36 +0000 (10:35 +0100)
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 <amadeus@jmu.edu.cn>
target/linux/d1/Makefile
target/linux/d1/config-6.12

index 0d30c8233c215028ac0e4dd5a2ebd7e24713f400..cd3b1495ebf04fcff06158953f36a68d8eca61a4 100644 (file)
@@ -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
index fc733f3455d6d32d005b6e78a3a84987a62decc5..53d5319030c698a85fcb77778df55a096386f447 100644 (file)
@@ -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