[Android Software/Hacking General [Developers Only]] TogoFire:
attempts:

[Ubuntu 18.04 LTS] - lts compile kernel(Linux_Windows10) ~DAISY(mi a2 lite):

Kernels:

https://gitlab.com/Shimawa/msm-4.9

https://github.com/HachimanH20/Android_kernel_xiaomi_msm8953-4.9

https://github.com/Shimawa?tab=repositories

https://github.com/darkhz/revvz_sakura

https://github.com/Daisy-Dev/kernel_xiaomi_daisy

https://github.com/pawelik001/devic...blob/lineage-16.0/configs/thermal-engine.conf

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/daisy-p-oss

https://github.com/Shimawa/Xiaomi_Kernel_OpenSource

https://github.com/Shimawa/canting_kernel_xiaomi_msm8953

https://github.com/Kanger-Team/android_device_xiaomi_daisy

https://github.com/Kanger-Team/kernel_google_seed

https://github.com/HachimanH20/Android_kernel_xiaomi_msm8953-4.9

https://docs.google.com/spreadsheet...oCe-yFbxymW-fWaC08vMhBbEmQ/edit#gid=926555940

https://github.com/prorooter007/LightningKernel_Xiaomi_msm8953

https://github.com/prorooter007/LightningKernel_Xiaomi_msm8953/tree/lightning-q

https://github.com/khusika/canting_kernel_xiaomi_msm8953/

https://github.com/khusika/canting_kernel_xiaomi_msm8953/releases

https://github.com/LineageOS/android_kernel_xiaomi_msm8953

https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/?h=kernel.lnx.4.9.r27-rel

https://docs.google.com/spreadsheet...oCe-yFbxymW-fWaC08vMhBbEmQ/edit#gid=926555940

https://xdaforums.com/android/software-hacking/reference-how-to-compile-android-kernel-t3627297

https://www.youtube.com/watch?v=5q9Cn3ixRns&t=332s

https://docs.google.com/spreadsheet...oCe-yFbxymW-fWaC08vMhBbEmQ/edit#gid=926555940

https://www.youtube.com/watch?v=5q9Cn3ixRns&t=332s

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/983

https://packages.debian.org/search?keywords=gcc-9

sudo apt install build-essential

sudo apt-get install manpages-dev

gcc --version

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update

sudo apt install g++-9

sudo apt install gcc-9

sudo add-apt-repository ppa:fkrull/deadsnakes

sudo apt-get install python3.3

sudo apt-get install python3

apt install python

apt install python-minimal

python —version

sudo apt-get update -y &&

sudo apt-get upgrade -y &&

sudo apt-get dist-upgrade -y &&

sudo apt-get install build-essential software-properties-common -y &&

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y &&

sudo apt-get update -y &&

sudo apt-get install gcc-9 g++-9 -y &&

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 &&

sudo update-alternatives --config gcc

select gcc 9

sudo apt-get update

whereis gcc make

gcc -v

make -v

cd /mnt

ls

cd c

ls

cd users

ls

cd windows10

ls

cd desktop

ls

cd kernel

ls

sudo apt-get install ia32-libs

sudo apt-get install ia64-libs

sudo apt-get install libwxgtk2.6-dev

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b android-9.0.0_r45 ~/stock

[or]

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b android-9.0.0_r49 ~/stock

[or]

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/ -b android10-gsi~/stock

export ARCH=arm64

export CROSS_COMPILE=~/stock/bin/aarch64-linux-android-

mkdir output

make -C $(pwd) O=output daisy_perf_defconfig

make -C $(pwd) O=output msm8953-perf_defconfig

make mrproper

make -j32 -C $(pwd) O=output

https://stackoverflow.com/questions/35691830/arm64-image-to-zimage-or-boot-img

[optional] make

make msm8953-perf_defconfig

make daisy_perf_defconfig

make zImage - j4 >" for 32bits"

make Image -j4

https://github.com/umiddelb/armhf/wiki/How-To-compile-a-custom-Linux-kernel-for-your-ARM-device

https://stackoverflow.com/questions/56250087/how-to-flash-the-kernel-image-on-android-device

https://gitlab.com/HolyAngel/op6/blob/osr/build.sh

make -j 4

make -j 4 Image

https://forums.xilinx.com/t5/Embedded-Linux/Create-zImage-for-ZynqMP/td-p/897617

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842481/Build+kernel

make ARCH=arm64 xilinx_zynqmp_defconfig

make ARCH=arm64

make ARCH=arm64 zImage

make ARCH=arm64 xilinx_zynqmp_defconfig

make ARCH=arm64 -j4 uImage

make uImage

mkimage

https://www.youtube.com/watch?v=hjnGOSaMQAA

export ARCH=arm64

export CROSS_COMPILE=

make clean && make mrproper

make you_device_config

make menuconfig

make -j4

error attached.