oluceps / android_kernel_oneplus_sm8250-KSU

KernelSU patched LineageOS-20 kernel for OnePlus 8 (instantnoodle)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KNOWN ISSUE: MAY BROKEN QUICK CHARGE

Get the patched kernel image:

NOTE: prebuilt kernel image artifacts compiled with config from NamelessOS TQ2A.230505.002, follow steps below to build if using other OS.

Download zip from artifact or:

at the root of repo:

curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -

Then enter nix devShell (pretend Nix has already installed)

nix develop

Generate config

  • using adb shell enter shell in device and run zcat /proc/config.gz > /sdcard/config to export kernel config.
  • run adb pull /sdcard/config .config on your computer, with the device adb connected.
  • put .config under /out directory. then:
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE CROSS_COMPILE_ARM32=CROSS_COMPILE_ARM32  LLVM=1 LLVM_IAS=1 O=$O CC=$CC oldconfig

Compile kernel

make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE CROSS_COMPILE_ARM32=CROSS_COMPILE_ARM32  LLVM=1 LLVM_IAS=1 O=$O CC=$CC -j$(nproc)

Found file Image under out/arch/arm64/boot/.

repack boot.img

  1. get your current origin boot.img, put it on a clean dir

  2. get magiskboot binary from whatever place, run magiskboot unpack ./boot.img,

  3. remove the file kernel unpacked, place Image in place and rename into kernel,

  4. run ./magiskboot repack ./boot.img

Flash

Just simply flash or boot the new-boot.img using fastboot.

About

KernelSU patched LineageOS-20 kernel for OnePlus 8 (instantnoodle)

License:Other


Languages

Language:C 98.4%Language:Assembly 1.0%Language:Makefile 0.2%Language:Perl 0.1%Language:Shell 0.1%Language:Python 0.1%Language:C++ 0.0%Language:Roff 0.0%Language:SmPL 0.0%Language:Yacc 0.0%Language:Lex 0.0%Language:Awk 0.0%Language:UnrealScript 0.0%Language:Gherkin 0.0%Language:Raku 0.0%Language:M4 0.0%Language:Clojure 0.0%Language:XS 0.0%Language:Nix 0.0%Language:sed 0.0%