website: fixup
This commit is contained in:
@@ -48,6 +48,7 @@ function sidebarGuide() {
|
||||
{ text: 'What is KernelSU?', link: '/guide/what-is-kernelsu' },
|
||||
{ text: 'Installation', link: '/guide/installation' },
|
||||
{ text: 'How to build?', link: '/guide/how-to-build' },
|
||||
{ text: 'Intergrate for non-GKI devices', link: '/guide/how-to-integrate-for-non-gki'},
|
||||
{ text: 'FAQ', link: '/guide/faq' },
|
||||
]
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ function sidebarGuide() {
|
||||
{ text: '什么是 KernelSU?', link: '/zh_CN/guide/what-is-kernelsu' },
|
||||
{ text: '安装', link: '/zh_CN/guide/installation' },
|
||||
{ text: '如何构建?', link: '/zh_CN/guide/how-to-build' },
|
||||
{ text: '如何为非GKI设备集成 KernelSU', link: '/zh_CN/guide/how-to-integrate-for-non-gki'},
|
||||
{ text: '常见问题', link: '/zh_CN/guide/faq' },
|
||||
]
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh
|
||||
|
||||
Then, you should check if *kprobe* is enabled in your kernel config, if it is not, please add these configs to it:
|
||||
|
||||
```txt
|
||||
```
|
||||
CONFIG_KPROBES=y
|
||||
CONFIG_HAVE_KPROBES=y
|
||||
CONFIG_KPROBE_EVENTS=y
|
||||
|
||||
@@ -36,6 +36,6 @@ KernelSU 的模块系统与 Magisk 的 magic mount 有冲突,如果 KernelSU
|
||||
|
||||
可以,但你需要手动移植它,欢迎 PR !
|
||||
|
||||
## 如何为旧内核基础 KernelSU?
|
||||
## 如何为旧内核集成 KernelSU?
|
||||
|
||||
参考[教程](how-to-integrate-for-non-gki)
|
||||
|
||||
@@ -23,7 +23,7 @@ curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh
|
||||
|
||||
然后,你需要检查你的内核是否开启了 *kprobe* 相关的配置,如果没有开启,需要添加以下配置:
|
||||
|
||||
```txt
|
||||
```
|
||||
CONFIG_KPROBES=y
|
||||
CONFIG_HAVE_KPROBES=y
|
||||
CONFIG_KPROBE_EVENTS=y
|
||||
@@ -133,9 +133,9 @@ index 376543199b5a..82adcef03ecc 100644
|
||||
|
||||
主要是要改四个地方:
|
||||
|
||||
1. do_faccessat, usually in `fs/open.c`
|
||||
2. do_execveat_common, usually in `fs/exec.`
|
||||
3. vfs_read, usually in `fs/read_write.c`
|
||||
4. vfs_statx, usually in `fs/stat.c`
|
||||
1. do_faccessat,通常位于 `fs/open.c`
|
||||
2. do_execveat_common,通常位于 `fs/exec.`
|
||||
3. vfs_read,通常位于 `fs/read_write.c`
|
||||
4. vfs_statx,通常位于 `fs/stat.c`
|
||||
|
||||
改完之后,打开 `KernelSU/kernel/ksu.c`,注释 `enable_sucompat()`调用,然后重新编译内核即可。
|
||||
|
||||
Reference in New Issue
Block a user