[][openwrt][common][emmc][Change and load loop kernel module at early stage during kernel startup]
[Description]
Change and load loop kernel module at early stage during kernel startup.
That is to say, in /etc/modules-boot.d, we'll have 30-loop symlink.
Without this patch, we can't create loop device with eMMC/SD on mt7988.
[Release-log]
N/A
Change-Id: I1bc4530827788087b21f5321ad4dfc78430ca6aa
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7780274
diff --git a/openwrt_patches-21.02/160-load-loop-ko-at-kernel-startup-early-stage.patch b/openwrt_patches-21.02/160-load-loop-ko-at-kernel-startup-early-stage.patch
new file mode 100644
index 0000000..9b32e13
--- /dev/null
+++ b/openwrt_patches-21.02/160-load-loop-ko-at-kernel-startup-early-stage.patch
@@ -0,0 +1,11 @@
+--- a/package/kernel/linux/modules/block.mk
++++ b/package/kernel/linux/modules/block.mk
+@@ -463,7 +463,7 @@ define KernelPackage/loop
+ CONFIG_BLK_DEV_LOOP \
+ CONFIG_BLK_DEV_CRYPTOLOOP=n
+ FILES:=$(LINUX_DIR)/drivers/block/loop.ko
+- AUTOLOAD:=$(call AutoLoad,30,loop)
++ AUTOLOAD:=$(call AutoLoad,30,loop,1)
+ endef
+
+ define KernelPackage/loop/description