compiling kernel for kenzo - Xiaomi Redmi Note 3 Questions & Answers

i want this kernel https://forum.xda-developers.com/re...ernel-redmi-note-3-caf-kernel-source-t3367231
but it is deleted from the provided link
so i think i have to compile it myself
dev provided github link for source
https://github.com/daeiron/kenzo_caf_kernel
in the guide of flashing he said
"- Edit user vars in build/build_kernel.sh
- From kernel root run: sh build/build_kernel.sh"
now m not sure that does that mean
please help me

Related

Help Needed In Modifing Kernel For Ported Rom

Unpack the kernel from PORTED
Unpack your Device's kernel
Open PORTED's init.rc
Replace the BOOTCLASSPATH from PORTED's init.rc to BASE's init.rc
Compare the two files, and addon to your Kernel's init.rc
Packup/Repack your Kernel
These are the steps i need a Dev who can unpack and repack the kernel for me as i dont have linux or ubuntu and too many problems in Windows 8
Anyone interested plezz Pm Me will send u the kernelz
I AM PORTING P.A.C MAN As the Spacman rom was not PACMAN In true Sense And had Too Many UI Problems
MY PACMAN ROM WILL HAVE ONLY ONE UI WHICH WILL WORK WITH PA,CM,AOKP SETTINGS
I'm sorry, but what is this thread for?
Closed.

SOLVED:Build From Source AOSP ROM(AOSX,Xperia u)

Anyone can help me please?I would compile from source aosx rom for my xperia u(port of aosp), but when I do "./CompileROM.sh"(it's a script that executes a series of commands such as "make") after 2 minutes it crashes!!!!!! I have all!!!!Sources(8,2gb),python 6,gnu make,ubuntu 14.04.......
This is my log file, I executed "./Update.sh"(it's a script file that executes repo sync and other) and "./CompileROM.sh -u"THE END
http://pastebin.com/nyYffN2G
There are two guides that helped me:
http://xda-university.com/as-a-developer/getting-started-building-android-from-source
https://github.com/AndroidOpenSourceXperia/android_scripts
Sorry for my bad english but I'm not English....
Close thread please, SOLVED!!! My pc is 32bit and it can't build rom ((((( because it isn't 64 bit!!!

[Guide][Noob-Friendly]Building Kernel For Lenovo A6000/+

Building A Kernel For A6k​
Hello Folks, Looks like A6000 Forums Are On Fire So Now I AM HErE TO POuR Oil In The FIRE
Lets Get Straight To The POint
This Guide Will Help you build a kernel for our little Precious One
Requirements:
Ubuntu[DOnt Ask How]
Required Libs like libncurses, and stuff [If you face any such error realted to libs, just google Once]
Good Internet
AT least 2GB RAM and a good processor
A bit of your time
Patience and brain
Steps:
1) Create A folder anywhere with any name you want and open it
2) Open terminal in that folder and Run This COmmand Which will install all required Libs
Code:
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
3)After It gets done now we need a toolchain so now type " mkdir kernel" and "cd kernel" without quotes
4) Now we will dload toolchain so first install GIT and GCC libs for ex
"sudo apt get-install git"
Now Run This to clone the toolchain
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
5)After toolchain gets downloaded now we need kernel sources, to simplify it clone the sources from my GIT using this command in terminal
Code:
git clone https://github.com/varunhardgamer/kernel_lenovo_a6000.git
6)After Dloading kernel sources open the kernel sources folder which may have name Semar Kernel or something like that and open BuildingKernel.txt and understand the way you need to edit Build.sh
Its not hard you just need to type the address to your kernel folder which you made
7)Now type
Code:
make ARCH=arm
and press enter
8)Then RUn
Code:
make wt86518_defconfig
9)THen Run
Code:
make menuconfig
and a popup will appear showing you all the tweaks that can be included in the kernel, select accordingly and save it
10)After you Finish tweaking it, open build.sh and edit it acordingly and then run the script by " .build.sh " in the terminal and wait till you get the zimage which is the kernel
8)Now download semar kernel r5zip and push your zimage inside it and flash your first Kernel
COmment here if you face any Errrors
Kernel Source _ https://github.com/varunhardgamer/kernel_lenovo_a6000
Credits to-
Me
Mr.AW
@3lambda
Orata
@mshoaib7
@dev_harsh1998
and XDA Forums
Reserved
Link To the original Thread
https://forum.xda-developers.com/android/software/guide-easy-kernel-building-tutorial-t3581057
Thanks To @3lambda
[Really THanks Man]
Just In Case
DualBoot Coming Soon By The WAy
The MErc With A MouTh is Back
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
dev_harsh1998 said:
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
Click to expand...
Click to collapse
Ok but the build.sh that i have mentioned will have to be edited again
Oh man
OK wait
Some Modifications To the guide will be done by tomorrow
No worries you doing good work
dev_harsh1998 said:
No worries you doing good work
Click to expand...
Click to collapse
Thanks Limit DOne
WIll thanks Tomorrow
You need to edit build.sh
Change -j64 to -j4 or it'll mess up for everyone.
---------- Post added at 05:02 PM ---------- Previous post was at 05:02 PM ----------
dev_harsh1998 said:
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
Click to expand...
Click to collapse
+1
Use this kernel it's updated nd better.
Has.007 said:
You need to edit build.sh
Change -j64 to -j4 or it'll mess up for everyone.
---------- Post added at 05:02 PM ---------- Previous post was at 05:02 PM ----------
+1
Use this kernel it's updated nd better.
Click to expand...
Click to collapse
Oh Thanks for pointing that 64 out:good:
Thanks
The Hard Gamer said:
Oh Thanks for pointing that 64 out:good:
Thanks
Click to expand...
Click to collapse
Welcome. Keep up the good work. :good:
Lol, just rechecked your git.
The kernel will not compile. You need to define the toolchain.
Has.007 said:
Lol, just rechecked your git.
The kernel will not compile. You need to define the toolchain.
Click to expand...
Click to collapse
I myself used this method and compiled a kernel
And for toolchain
I already mentioned
export cross_compile in .sh
The Hard Gamer said:
I myself used this method and compiled a kernel
And for toolchain
I already mentioned
export cross_compile in .sh
Click to expand...
Click to collapse
bad command practise..
is it work for any version of Android? currently I'm using RR 5.8.2
hayatnas18 said:
is it work for any version of Android? currently I'm using RR 5.8.2
Click to expand...
Click to collapse
Wait till i update the guide again

Nethunter on Redmi 6A:- Can't Find defconfig in Kernel Source!!

Hello, I am trying to compile Nethunter for Redmi 6A, I am using this tutorial on Youtube:-
"Can't send the url (cause i'm a new user)
Redmi 6A's Kernel Sources are available too, I need defconfig for Redmi 6A to compile Nethunter for Redmi 6A but I can't find defconfig of Redmi 6A! arch/arm64/configs contains multiple defconfigs, I can't find Redmi 6A's defconfig! Please Help!!
cactus-o-oss/arch/arm/configs/cactus_defconfig
Liquidfox48 said:
Hello, I am trying to compile Nethunter for Redmi 6A, I am using this tutorial on Youtube:-
"Can't send the url (cause i'm a new user)
Redmi 6A's Kernel Sources are available too, I need defconfig for Redmi 6A to compile Nethunter for Redmi 6A but I can't find defconfig of Redmi 6A! arch/arm64/configs contains multiple defconfigs, I can't find Redmi 6A's defconfig! Please Help!!
Click to expand...
Click to collapse
Need to look in arm not arm64.
arch/arm/configs
Also see is you have def config on the device. Look in /proc for config.gz
mrmazak said:
Need to look in arm not arm64.
arch/arm/configs
Also see is you have def config on the device. Look in /proc for config.gz
Click to expand...
Click to collapse
arch/arm/configs?? It contains a lot of files. Which one is for Redmi 6A??
/proc? config.gz?? I do know that we can extract kernel config from android devices, but i tried it on my Samsung On7 prime and it didn't work. I haven't tried it on Redmi 6A, maybe I don't know the exact procedure to do it correctly please let me know how to do it!
Liquidfox48 said:
arch/arm/configs?? It contains a lot of files. Which one is for Redmi 6A??
/proc? config.gz?? I do know that we can extract kernel config from android devices, but i tried it on my Samsung On7 prime and it didn't work. I haven't tried it on Redmi 6A, maybe I don't know the exact procedure to do it correctly please let me know how to do it!
Click to expand...
Click to collapse
To see which config in the source should be for your device. Look at the /system/build.prop.
Here is from my device.
ro.build.description=full_k62v1_64_bsp-user 8.1.0 O11019 1537518103 release-keys
So my defconfig is "k62v1_64_bsp"
Not always, but often the kernel config used to build kernel on device is saved on the device as well.
In my current phone. (Blu Vivo XL4 - mtk Helio p22). The config file was stored at "/proc/config gz"
From adb you can pull it. . Might need to be in rooted shell in order to get access, do not remember.
Try this adb cmd in your terminal to see
Code:
adb shell ls /proc | find "config"
That will show the contents of the /proc folder, and filter it to show only files with "config" in the name.
mrmazak said:
To see which config in the source should be for your device. Look at the /system/build.prop.
Here is from my device.
ro.build.description=full_k62v1_64_bsp-user 8.1.0 O11019 1537518103 release-keys
So my defconfig is "k62v1_64_bsp"
Not always, but often the kernel config used to build kernel on device is saved on the device as well.
In my current phone. (Blu Vivo XL4 - mtk Helio p22). The config file was stored at "/proc/config gz"
From adb you can pull it. . Might need to be in rooted shell in order to get access, do not remember.
Try this adb cmd in your terminal to see
Code:
adb shell ls /proc | find "config"
That will show the contents of the /proc folder, and filter it to show only files with "config" in the name.
Click to expand...
Click to collapse
"To see which config in the source should be for your device. Look at the /system/build.prop."
How to do it??
​
Liquidfox48 said:
"To see which config in the source should be for your device. Look at the /system/build.prop."
How to do it??
Click to expand...
Click to collapse
Several ways are possible.
1. Adb pull /system/build.prop
2. With root explorer type app. Browse to /system and open build.prop
3. File manager from TWRP
4. Open stock rom system image look for build.prop.
Liquidfox48 said:
"To see which config in the source should be for your device. Look at the /system/build.prop."
How to do it??
Click to expand...
Click to collapse
Here I looked on the GitHub shared kernel source, and the "cactus" defconfig is right there in the config folder.
https://github.com/MiCode/Xiaomi_Ke...actus-o-oss/arch/arm/configs/cactus_defconfig
mrmazak said:
Here I looked on the GitHub shared kernel source, and the "cactus" defconfig is right there in the config folder.
https://github.com/MiCode/Xiaomi_Ke...actus-o-oss/arch/arm/configs/cactus_defconfig
Click to expand...
Click to collapse
thanks, I also extracted config.gz from /proc/config.gz from TWRP
there are major difference between the Github's config and extracted config
which one to use?? the one extracted via TWRP from proc/config.gz or Github's config???
Note: I uncompressed the config.gz using archive manager in Ubuntu.
Liquidfox48 said:
thanks, I also extracted config.gz from /proc/config.gz from TWRP
there are major difference between the Github's config and extracted config
which one to use?? the one extracted via TWRP from proc/config.gz or Github's config???
Note: I uncompressed the config.gz using archive manager in Ubuntu.
Click to expand...
Click to collapse
Hopefully what you may find if you compare the two closely, is that the file from /proc/ will just have extra lines that are all "option not set".
The git hub source might build both configs, But not certain.
All I can suggest is to try both
mrmazak said:
Hopefully what you may find if you compare the two closely, is that the file from /proc/ will just have extra lines that are all "option not set".
The git hub source might build both configs, But not certain.
All I can suggest is to try both
Click to expand...
Click to collapse
Okay, so far I am using these tutorials to compile kernel of Redmi 6A for Nethunter:
https://github.com/offensive-security/kali-nethunter/wiki#70-porting-nethunter-to-new-devices
http://en.miui.com/thread-293285-1-1.html
https://youtu.be/6-oKLou69WM
Please have a look and help me understand what I am doing and how to do it properly.
If you have time please post a guide to compile kernel for Nethunter.
GitHub link to Nethunter:
https://github.com/offensive-security/kali-nethunter
Liquidfox48 said:
Okay, so far I am using these tutorials to compile kernel of Redmi 6A for Nethunter:
https://github.com/offensive-security/kali-nethunter/wiki#70-porting-nethunter-to-new-devices
http://en.miui.com/thread-293285-1-1.html
https://youtu.be/6-oKLou69WM
Please have a look and help me understand what I am doing and how to do it properly.
If you have time please post a guide to compile kernel for Nethunter.
GitHub link to Nethunter:
https://github.com/offensive-security/kali-nethunter
Click to expand...
Click to collapse
No, I am not making a how to guide.
Mainly because I am no expert , by any meaning of it.
But try and look at this GitHub. It is kernel builder who is making kernel for your device.
https://github.com/Dhoine/android_kernel_cereus
Hey anyone plz tell me how to Install Kali nethunter in redmi 6A

Help!! error in choosing lunch omni_device and building the image

hi guys and good day everyone please i ask you help how to solve this error, im building twrp for my phone oppo a71 cph1717 everything is good from syncing to . build/envsetup.sh
and when i enter lunch i got this error
[email protected]:~/twrp$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_CPH1717-user
8. omni_CPH1717-userdebug
9. omni_CPH1717-eng
Which would you like? [aosp_arm-eng] 7
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/Cph1717/omni_CPH1717.mk]]: "device/oppo/CPH1717/device.mk" does not exist. Stop.
File "/home/osboxes/twrp/build/tools/roomservice.py", line 109
except IOError, ES.ParseError:
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/Cph1717/omni_CPH1717.mk]]: "device/oppo/CPH1717/device.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_CPH1717'
** Do you have the right repo manifest?
[email protected]:~/twrp$
its the same error when i pick 8 and 9 please help guys im using
Ubuntu 22.10 Kinetic Kudu please help guys any answer will be appreciated
Hi @Anonymous V
Based on your build logs, it's clearly that you did not provide device-tree in your building environment.
Device-tree including kernel and vendor bloobs are required to build TWRP.
Anonymous V said:
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/Cph1717/omni_CPH1717.mk]]: "device/oppo/CPH1717/device.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_CPH1717'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
Kindly read this guide carefully from the official site of TWRP
How can I get TWRP for my device? (how to compile TWRP)
We can’t afford to buy every device made and many times certain devices are only available in other countries. TWRP is fully open source, so you can port TWR...
twrp.me
khusika said:
Hi @Anonymous V
Based on your build logs, it's clearly that you did not provide device-tree in your building environment.
Device-tree including kernel and vendor bloobs are required to build TWRP.
Kindly read this guide carefully from the official site of TWRP
How can I get TWRP for my device? (how to compile TWRP)
We can’t afford to buy every device made and many times certain devices are only available in other countries. TWRP is fully open source, so you can port TWR...
twrp.me
Click to expand...
Click to collapse
thanks for reply sir my phone doesnt have a device tree so i created a twrp compatible device tree using the tool Twrpdtgen and i succsessfully created one and i created this first device tree and its seems its alright when i enter lunch and enter 7 it runs successfully but not 8 and 9 because is gives me error, i first did it with kali linux machineand its alright but when i enter mka recovery i got error in building regarding in ninja so i switch into Ubuntu 22.10 Kinetic Kudu and now when i did what i did in the kali linux machine i got this kind of error i follow all the instruction but it really gives me an error and also i tried the pre created twrp compatible device tree in github but it still give error pls help me to fix it sir thanks for your reply.
this the link of the Twrpdtgen -------> https://github.com/twrpdtgen/twrpdtgen
and this one is for the pre created twrp compatible device tree for my device ---------> https://github.com/twrpdtgen/android_device_oppo_CPH1717
khusika said:
Kindly read this guide carefully from the official site of TWRP
How can I get TWRP for my device? (how to compile TWRP)
We can’t afford to buy every device made and many times certain devices are only available in other countries. TWRP is fully open source, so you can port TWR...
twrp.me
Click to expand...
Click to collapse
and this is the tutorial that i followed branch 7.1

Categories

Resources