Coder Social home page Coder Social logo

lalblc / kernel_docker_nethunter_realme_sdm710_rmx1901 Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 187.49 MB

Docker kernel for RealmeX

License: MIT License

Shell 0.06% C++ 0.03% Python 0.06% Perl 0.12% C 98.12% Clojure 0.01% Assembly 1.30% Awk 0.01% UnrealScript 0.01% Makefile 0.26% XS 0.01% Yacc 0.01% Lex 0.01% M4 0.01% GDB 0.01% Roff 0.01% Gherkin 0.01% sed 0.01% SmPL 0.01% Raku 0.01%

kernel_docker_nethunter_realme_sdm710_rmx1901's Introduction

适用于Realme X的Docker Linux内核(已停更)

因为此内核的源码过旧,并且开启了所有内核选项,导致内核不稳定,
所以内核停止维护,并且删除所有的Releases 

编译

温馨提示:编译机尽量使用Ubuntu 20.04以上或Kali,其他GNU/Linux均未测试

依赖:

apt update && apt upgrade -y  

apt install -y git libssl-dev gcc-arm-linux-gnueabi clang build-essential libncurses5-dev bzip2 make python-is-python3 gcc g++ grep bc curl bison flex openssl lzop ccache unzip libssl-dev zlib1g-dev ninja-build texinfo file ca-certificates ccache wget cmake texinfo ca-certificates zlib1g-dev xz-utils libelf-dev make python libssl-dev build-essential bc bison flex unzip libssl-dev ca-certificates xz-utils mkbootimg cpio device-tree-compiler binutils gcc-aarch64-linux-gnu  

cd ~ && wget https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-aarch64-linux-gnu.tar.xz && tar -xvf clang+llvm-13.0.0-aarch64-linux-gnu.tar.xz && rm -rf clang+llvm-13.0.0-aarch64-linux-gnu.tar.xz  

环境变量:

export PATH=/root/clang+llvm-13.0.0-aarch64-linux-gnu/bin:$PATH  
export ARCH=arm64  
export SUBARCH=arm64  
export CROSS_COMPILE=aarch64-linux-gnu-  
export CROSS_COMPILE_ARM32=arm-linux-gnueabi-  

构建:

make clean && make mrproper && rm -rf out && mkdir -p out

make O=out CC=clang-13 RMX1901_defconfig

make -j$(nproc --all) O=out CC=clang-13 ARCH=arm64 \
CROSS_COMPILE=aarch64-linux-gnu- \
CROSS_COMPILE_ARM32=arm-linux-gnueabi- \
AR=llvm-ar \
OBJDUMP=llvm-objdump \
STRIP=llvm-strip \
NM=llvm-nm \
2>&1 | tee error.log

最后在out/arch/arm64/boot下取得kernel(Image.gz-dtb)

如果目录下没有kernel则说明编译时出现了错误,那么请查看kernel原始码目录的error.log找到报错部分并使用搜索引擎查找解决方案

kernel_docker_nethunter_realme_sdm710_rmx1901's People

Contributors

baichenxianchen avatar lalblc avatar

Stargazers

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