Skip to content

Commit 1f24daa

Browse files
committed
docs: Add description for non gki integration
1 parent 898e9d4 commit 1f24daa

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

website/docs/guide/how-to-integrate-for-non-gki.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ KernelSU uses kprobe to do kernel hooks, if the *kprobe* runs well in your kerne
1818
First, add KernelSU to your kernel source tree:
1919

2020
```sh
21-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
21+
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.9.5
2222
```
2323

24+
:::info
25+
[KernelSU 1.0 no longer supports non-GKI kernels](https://github.com/tiann/KernelSU/issues/1705). The last supported version is `v0.9.5`, please make sure to use the correct branch.
26+
:::
27+
2428
Then, you should check if *kprobe* is enabled in your kernel config, if it is not, please add these configs to it:
2529

2630
```txt

website/docs/zh_CN/guide/how-to-integrate-for-non-gki.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,12 @@ KernelSU 使用 kprobe 机制来做内核的相关 hook,如果 *kprobe* 可以
1717

1818
首先,把 KernelSU 添加到你的内核源码树,在内核的根目录执行以下命令:
1919

20-
::: code-group
21-
22-
```sh[最新tag(稳定版本)]
23-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
24-
```
25-
26-
```sh[main分支(开发版本)]
27-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s main
28-
```
29-
30-
```sh[指定tag(比如v0.5.2)]
31-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.5.2
20+
```sh
21+
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.9.5
3222
```
3323

24+
:::info
25+
[KernelSU 1.0 已经不再支持非 GKI 内核](https://github.com/tiann/KernelSU/issues/1705),最后的支持版本为 `v0.9.5`,请注意使用正确的分支。
3426
:::
3527

3628
然后,你需要检查你的内核是否开启了 *kprobe* 相关的配置,如果没有开启,需要添加以下配置:

0 commit comments

Comments
 (0)