Home Forum Blog Private Support Courses Archive
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android How to boot a built stock kernel on stock rom ? UNISOC

How to boot a built stock kernel on stock rom ? UNISOC

How to boot a built stock kernel on stock rom ? UNISOC

lucoz1971
lucoz1971
lucoz1971
Enthusiastic Member
12
16-05-2025, 01:24 PM
#1



hi  I'm starting learning kernel building on Realme c53 rmx3760 
source: https://github.com/realme-kernel-opensou...nel-source
clang :https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee
as per defconfig from devices proc
gcc: platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9

command make O=out ARCH=arm64 RE58C2_defconfig
PATH="/home/lucoz/kernels/linux-x86/clang-r416183c/bin:/home/lucoz/kernels/aarch64-linux-android-4.9/bin:${PATH}" \
make -j$(nproc --all) O=out \
                      ARCH=arm64 \
                      CC=clang \
                      (optional) CONFIG_SECTION_MISMATCH_WARN_ONLY=y \
                      CLANG_TRIPLE=aarch64-linux-gnu- \
                      CROSS_COMPILE=aarch64-linux-android-

the Issue: Building stock kernel using magiskboot unpack, replace kernel file with built Image file (renamed as kernel) and repack it stucks on boot logo
the device is unlocked, also tryied patching with magisk, same result
I've tryied to build also from sprd_qogirl6_defconfig that is the included defconfig for this device same tests same result
thanks
This post was last modified: 16-05-2025, 01:30 PM by lucoz1971.
lucoz1971
lucoz1971
lucoz1971
Enthusiastic Member
12
16-05-2025, 02:10 PM
#2
further details https://hastebin.com/share/quporekolu.vbnet
06-10-2025, 08:58 AM
#3
(16-05-2025, 01:24 PM)lucoz1971 hi  I'm starting learning kernel building on Realme c53 rmx3760 
source: https://github.com/realme-kernel-opensou...nel-source
clang :https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee
as per defconfig from devices proc
gcc: platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9

command make O=out ARCH=arm64 RE58C2_defconfig
PATH="/home/lucoz/kernels/linux-x86/clang-r416183c/bin:/home/lucoz/kernels/aarch64-linux-android-4.9/bin:${PATH}" \
make -j$(nproc --all) O=out \
                      ARCH=arm64 \
                      CC=clang \
                      (optional) CONFIG_SECTION_MISMATCH_WARN_ONLY=y \
                      CLANG_TRIPLE=aarch64-linux-gnu- \
                      CROSS_COMPILE=aarch64-linux-android-

the Issue: Building stock kernel using magiskboot unpack, replace kernel file with built Image file (renamed as kernel) and repack it stucks on boot logo
the device is unlocked, also tryied patching with magisk, same result
I've tryied to build also from sprd_qogirl6_defconfig that is the included defconfig for this device same tests same result
thanks
I’m also experiencing this issue. Have you found a solution for it yet? If so, could you please let me know? Thank you.
This post was last modified: 06-10-2025, 08:58 AM by Ridho Ardiansyah.
lucoz1971
lucoz1971
lucoz1971
Enthusiastic Member
12
06-01-2026, 09:08 PM
#4
seems fixed try this ----------config ---------------
export PATH="/home/lucoz/kernels/linux-x86/clang-r416183b/bin:/home/lucoz/kernels/aarch64-linux-android-4.9-12-5/bin:${PATH}"
make RE58C2_defconfig O=out \
ARCH=arm64 \
LLVM=1 \
CC=clang\
AR=llvm-ar \
AS=llvm-as \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
OBJDUMP=llvm-objdump \
STRIP=llvm-strip \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE_COMPAT="/home/lucoz/kernels/arm-linux-androideabi-4.9-12-5/bin/arm-linux-androideabi-" \
CROSS_COMPILE=aarch64-linux-android-

--------------make -------------------
export PATH="/home/lucoz/kernels/linux-x86/clang-r416183b/bin:/home/lucoz/kernels/aarch64-linux-android-4.9-12-5/bin:${PATH}"
make O=out -j$(nproc) ARCH=arm64 \
LLVM=1 \
CC=clang \
AR=llvm-ar \
AS=llvm-as \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
OBJDUMP=llvm-objdump \
STRIP=llvm-strip \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE_COMPAT="/home/lucoz/kernels/arm-linux-androideabi-4.9-12-5/bin/arm-linux-androideabi-" \
CROSS_COMPILE=aarch64-linux-android-

----------edit ---------------
export PATH="/home/lucoz/kernels/linux-x86/clang-r416183b/bin:/home/lucoz/kernels/aarch64-linux-android-4.9-12-5/bin:${PATH}"
make menuconfig O=out \
ARCH=arm64 \
LLVM=1 \
CC=clang\
AR=llvm-ar \
AS=llvm-as \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
OBJDUMP=llvm-objdump \
STRIP=llvm-strip \
CLANG_TRIPLE=aarch64-linux-gnu- \
CROSS_COMPILE_COMPAT="/home/lucoz/kernels/arm-linux-androideabi-4.9-12-5/bin/arm-linux-androideabi-" \
CROSS_COMPILE=aarch64-linux-android-
lucoz1971
lucoz1971
lucoz1971
Enthusiastic Member
12
06-01-2026, 09:09 PM
#5

Mediatek Course Mediatek Course


need to pick config to live device
xerxes
xerxes
xerxes
Senior Member
10,420
07-01-2026, 08:04 AM
#6
ok that's good
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)