FORUMS

[DEV]How to compile TWRP touch recovery

1,705 posts
Thanks Meter: 13,620
 
Post Reply Email Thread
22nd May 2020, 07:27 PM |#4601  
Quote:
Originally Posted by Royna

Did you use prebuilt kernel? It may not work
Compile kernel with source

I looked at the SELinux status and it says it is Premissive.
I think I know what I messed up, it's the partition sizes.
Today, 01:05 PM |#4602  
Junior Member
Thanks Meter: 7
 
More
Have some problems in compiling. Please help me.
My phone is samsung a20e running android q
Downloaded the kernel source from samsungopensource.com
Have set KERNEL_SOURCE in BoardConfig.mk
Lunched my phone using
Code:
lunch omni_a20ektt-userdebug
Entered :
Code:
export ANDROID_MAJOR_VERSION=q; export ARCH=arm64; export ALLOW_MISSING_DEPENDENCIES=true; export TEMPORARY_DISABLE_PATH_RESTRICTIONS=true; make clean && mka recoveryimage
( android major version, export arch is needed by the kernel source (it saids in readme), allow missing dependencies is for building in minimal-manifest-twrp, disable path restrictions for compiler to use something like 'perl')
Code:
FAILED: Building Kernel
Outputs: /home/royna/Desktop/minimal-manifest-twrp/out/target/product/a20ektt/obj/KERNEL_OBJ/arch/arm64/boot/Image.gz-dtb
Error: exited with code: 1
[...]
Output:
make: Entering directory '/home/royna/Desktop/minimal-manifest-twrp/kernel/samsung/a20ektt'
make[1]: Entering directory '/home/royna/Desktop/minimal-manifest-twrp/out/target/product/a20ektt/obj/KERNEL_OBJ'
[...]
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md


Warning (reg_format): "reg" property in /[email protected]/__overlay__/[email protected] has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /[email protected]/__overlay__/[email protected] has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /[email protected]/__overlay__/[email protected] has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /[email protected]/__overlay__/[email protected] has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /[email protected]/__overlay__/[email protected] has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /[email protected]/__overlay__/[email protected] has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #size-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #address-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #size-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #address-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #size-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #address-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #size-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #address-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #size-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #address-cells value for /[email protected]/__overlay__/[email protected]
Warning (avoid_default_addr_size): Relying on default #size-cells value for /[email protected]/__overlay__/[email protected]
[...]
make[2]: *** No rule to make target 'vmlinux', needed by 'arch/arm64/boot/Image'.  Stop.
make[1]: *** [arch/arm64/Makefile:139: Image.gz-dtb] Error 2
make[1]: Leaving directory '/home/royna/Desktop/minimal-manifest-twrp/out/target/product/a20ektt/obj/KERNEL_OBJ'
make: *** [Makefile:152: sub-make] Error 2
make: Leaving directory '/home/royna/Desktop/minimal-manifest-twrp/kernel/samsung/a20ektt'
What is wrong here?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes