Giter Site home page Giter Site logo

tifictive / kernel_joyeuse Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 6.0 1.53 GB

Kernel for Redmi Note 9 Pro (joyeuse)

License: Other

Makefile 0.25% C 95.22% Assembly 2.39% C++ 1.25% Objective-C 0.60% Shell 0.07% Perl 0.10% Awk 0.01% Python 0.07% GDB 0.01% sed 0.01% Yacc 0.01% Lex 0.01% UnrealScript 0.01% SmPL 0.01% Gherkin 0.01% XS 0.01% Raku 0.01% Roff 0.01% Clojure 0.01%
xiaomi joyeuse

kernel_joyeuse's Introduction

How to compile kernel for Redmi Note 9 Pro (joyeuse)

Intro

This source code already contains WiFi and Audio drivers that were not included in the original Xiaomi code. Also, added AOSP Device Tree Compiler (DTC) to compile DTB and DTBO trees.

Features

Differences from stock are minimal:

  • Removed incompatible architectures
  • TTL target support
  • Some TCP congestion-avoidance algorithms
  • CPU frequency statistics for the schedutil governor
  • Various minor changes

1. Downloading

Create a working folder, for example kernel:

mkdir kernel
cd kernel

Download kernel source:

git clone --depth=1 https://github.com/tifictive/kernel_joyeuse.git kernel_joyeuse

Download a compatible GCC toolchain. I used AOSP GCC 4.9 for arm64.

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 aarch64-linux-android

Download Clang toolchain. I used Proton Clang, you can use another suitable one, for example AOSP Clang.

git clone https://github.com/kdrag0n/proton-clang.git proton-clang

2. Building the kernel

Move to the kernel folder:

cd kernel_joyeuse

Setup default config:

./build.sh custj_defconfig

Note: build.sh - a simple script that sets up environment variables and starts the compilation process.

Optional. You can tweak some kernel parameters:

./build.sh menuconfig

Compiling:

./build.sh

3. Flashing

If the compilation passed without errors, then in the arch/arm64/boot folder you will see the following files:

  • Image.gz - kernel image
  • dtbo.img - board-specific device tree overlay
  • dtb - SoC device tree blob

Preparation

These files must be flashed into the boot section of the phone. To do this, we will use the AnyKernel3 utility.

Download AnyKernel3.zip, unpack and change the following lines in anykernel.sh file as shown below:

kernel.string=Kernel for Joyeuse
do.devicecheck=1
do.modules=0
do.systemless=1
do.cleanup=1
do.cleanuponabort=0
device.name1=joyeuse

# remove others lines like "device.name*"!

block=/dev/block/bootdevice/by-name/boot;

Also remove the lines from # begin ramdisk changes to # end ramdisk changes.

Place the files Image.gz, dtbo.img and dtb where the script is located and repack all the contents of the folder into a zip archive.

Flashing

Reboot into recovery mode, backup the boot and dtbo partitions. Then install our zip archive. Reboot into the system.

kernel_joyeuse's People

Contributors

acmel avatar adrianbunk avatar airlied avatar alexdeucher avatar arndb avatar axellin avatar bigguiness avatar broonie avatar bzolnier avatar danvet avatar davem330 avatar dhowells avatar geertu avatar gregkh avatar htejun avatar ickle avatar jhovold avatar jmberg-intel avatar joeperches avatar larsclausen avatar linusw avatar mchehab avatar morimoto avatar olofj avatar pmundt avatar rafaeljw avatar ralfbaechle avatar tiwai avatar torvalds avatar vsyrjala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.