-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy path010.Disable-CRC-Checks.patch
More file actions
executable file
·60 lines (53 loc) · 1.87 KB
/
010.Disable-CRC-Checks.patch
File metadata and controls
executable file
·60 lines (53 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
commit 7b1c6fc69796d7bb3883a578a0798a733eb0de06
Author: Ravindu Deshan <droidcasts@protonmail.com>
Date: Sat Mar 29 00:45:51 2025 +0530
kernel/module.c: Ignore symbols crc check
Force Load LKMs
mmc: disable CRC check for better performance
Signed-off-by: Ravindu Deshan <droidcasts@protonmail.com>
diff --git a/arch/arm64/configs/custom.config b/arch/arm64/configs/custom.config
index 35bc9456b..8b7656cf0 100755
--- a/arch/arm64/configs/custom.config
+++ b/arch/arm64/configs/custom.config
@@ -6,3 +6,14 @@ CONFIG_SECURITY_DEFEX=n
CONFIG_DEBUG_KERNEL=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
+
+#Force Load Kernel Modules
+CONFIG_MODULES=y
+CONFIG_MODULE_FORCE_LOAD=y
+CONFIG_MODULE_UNLOAD=y
+CONFIG_MODULE_FORCE_UNLOAD=y
+CONFIG_MODVERSIONS=y
+CONFIG_MODULE_SRCVERSION_ALL=n
+CONFIG_MODULE_SIG=n
+CONFIG_MODULE_COMPRESS=n
+CONFIG_TRIM_UNUSED_KSYMS=n
\ No newline at end of file
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 659b5ff09..70ef82cea 100755
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -58,7 +58,7 @@ static const unsigned freqs[] = { 400000, 300000, 200000, 100000 };
* performance cost, and for other reasons may not always be desired.
* So we allow it it to be disabled.
*/
-bool use_spi_crc = 1;
+bool use_spi_crc = 0;
module_param(use_spi_crc, bool, 0);
static int mmc_schedule_delayed_work(struct delayed_work *work,
diff --git a/kernel/module.c b/kernel/module.c
index 83b459f6a..fe36dd65f 100755
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1315,9 +1315,9 @@ static int check_version(const struct load_info *info,
return 1;
bad_version:
- pr_warn("%s: disagrees about version of symbol %s\n",
+ pr_warn("%s: disagrees about version of symbol %s\n, but ignore...",
info->name, symname);
- return 0;
+ return 1;
}
static inline int check_modstruct_version(const struct load_info *info,