Coder Social home page Coder Social logo

kernelsu_action_mt6768's Introduction

中文 | English

KernelSU Action For Begonia

用于 Non-GKI Kernel 的 Action,具有一定的普遍性,需要了解内核及 Android 的相关知识得以运用。

警告:warning: :warning: :warning:

如果你不是内核作者,使用他人的劳动成果构建KernelSU,请仅供自己使用,不要分享给别人,这是对作者的劳动成果的尊重。

支持内核

  • 4.19
  • 4.14

使用

编译成功后,会在Action上传 AnyKernel3,已经关闭设备检查,请在 Twrp 刷入。

Fork 本仓库到你的储存库然后按照以下内容编辑config.env,之后点击StarAction,在左侧可看见Build Kernel选项,点击选项会看见右边的大对话框的上面会有Run workflows点击它会启动构建。

Kernel Source

填写你的内核仓库地址

例如: https://github.com/begonia-dev/android_kernel_xiaomi_mt6785

Kernel Source Branch

填写你的内核分支

例如: 13.0

Kernel defconfig

填写你的内核配置文件名

例如: begonia_user_defconfig

Target arch

例如: arm64

Kernel file

填写需要刷写的 image,一般与你的 aosp-device tree 里的 BOARD_KERNEL_IMAGE_NAME 是一致的

例如: Image.gz-dtb

Clang version

默认版本为zyc clang17.0.0,如果需要更改,可前往build-kernel.yml进行修改

一般 Clang12 就能通过大部分 4.14 及以上的内核的编译 我自己的 Redmi Note 8 Pro 4.14 使用的是 clang17.0.0

Extra build commands

有的内核需要手动加入一些编译命令,才能正常编译,不需要的话不填写即可 请在命令与命令之间用空格隔开

例如: LLVM=1 LLVM_IAS=1

Disable LTO

用于优化内核,但有些时候会导致错误,所以提供禁用它,设置为 true 即禁用

Use KernelSU

是否使用 KernelSU,用于排查内核故障或单独编译内核

Use Kprobes

如果你的内核 Kprobes 工作正常这项改成 true 即可自动在 defconfig 注入参数

Use overlayfs

内核没有该参数的话请启用,模块需要

Need DTBO

如果你的内核还需要刷入DTBO,请设置为true

Make boot image

从之前的Workflows合并进来的,可以查看历史提交

设置为true会编译boot.img,需要你提供Source boot image

Source boot image

故名思义,提供一个源系统可以正常开机的 boot 镜像,需要直链,最好是同一套内核源码以及与你当前系统同一套设备树从 aosp 构建出来的。ramdisk 里面包含分区表以及 init,没有的话构建出来的镜像会无法正常引导。

例如: https://raw.githubusercontent.com/xiaoleGun/KernelSU_action/main/boot/boot-wayne-from-Miku-UI-latest.img

感谢

kernelsu_action_mt6768's People

Contributors

kindle4jerry avatar natsumerinchan avatar shas45558 avatar wuxing90 avatar xiaolegun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.