This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README.md of Grass Kernel specific
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
|
||
<h1 align="center"> | ||
<br> | ||
<img src="https://i.ibb.co/LYYJzJC/logo.jpg" alt="Markdownify" width="2048"> | ||
<br> | ||
GrassKernel | ||
<br> | ||
</h1> | ||
|
||
<h4 align="center">A custom kernel for the Exynos9611 devices.</h4> | ||
|
||
<p align="center"> | ||
<a href="#key-features">Key Features</a> • | ||
<a href="#how-to-build">How To Build</a> • | ||
<a href="#how-to-flash">How To Flash</a> • | ||
<a href="#credits">Credits</a> | ||
</p> | ||
|
||
## Key Features | ||
|
||
* Disable Samsung securities, debug drivers, etc modifications | ||
* Checkout and rebase against Android common kernel source, Removing Samsung additions to drivers like ext4,f2fs and more | ||
* Compiled with bleeding edge Neutron Clang 17, with full LLVM binutils, LTO (Link time optimization) and -O3 | ||
* Import Erofs, Incremental FS, BinderFS and several backports. | ||
* Supports DeX touchpad for corresponding OneUI ports that have DeX ported. | ||
* Lot of debug codes/configuration Samsung added are removed. | ||
* Added [wireguard](https://www.wireguard.com/) driver, an open-source VPN driver in-kernel | ||
* Added [KernelSU](https://kernelsu.org/) | ||
|
||
## How To Build | ||
|
||
You will need ubuntu, git, around 8GB RAM and bla-bla-bla... | ||
|
||
```bash | ||
# Install dependencies | ||
$ sudo apt install -y bash git make libssl-dev curl bc pkg-config m4 libtool automake autoconf | ||
|
||
# Clone this repository | ||
$ git clone https://github.com/Gojikovi/kernel_samsung_universal9611 | ||
|
||
# Go into the repository | ||
$ cd kernel_samsung_universal9611 | ||
|
||
# Install toolchain | ||
|
||
You could try any clang/LLVM based toolchain, however I use neutron clang | ||
If you are using Arch or distro with latest glibc, You may want to use antman instead. | ||
$ bash <(curl https://gist.githubusercontent.com/roynatech2544/0feeeb35a6d1782b186990ff2a0b3657/raw/b170134a94dac3594df506716bc7b802add2724b/setup.sh) | ||
|
||
|
||
# If you want to compile the kernel not for A51 then change the 23 line in build_kernel.sh to f41, m21, m31, m31s | ||
# Build the kernel | ||
$ ./build_kernel.sh aosp ksu # (for AOSP) | ||
$ ./build_kernel.sh oneui ksu # (for OneUI) | ||
``` | ||
|
||
After build the image of the kernel will be in out/arch/arm64/boot/Image | ||
|
||
## How To Flash | ||
|
||
After a successful build, you can see the Kernel.zip archive. | ||
This is your kernel. Just flash it via TWRP or adb sideload | ||
|
||
## Credits | ||
|
||
- [roynatech2544](https://github.com/roynatech2544) | ||
- [Samsung Open Source](https://opensource.samsung.com/) | ||
- [Android Open Source Project](https://source.android.com/) | ||
- [The Linux Kernel](https://www.kernel.org/) | ||
|
||
|