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: 99545b4bb1 ("d1: add new target")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
(cherry picked from commit 1e7950a45d)
This commit is contained in:
Chukun Pan 2025-10-20 22:16:21 +08:00 committed by Zoltan HERPAI
parent 947bcc95f8
commit 79d8e14497
2 changed files with 3 additions and 0 deletions

View 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

View 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