[TUT] Compile Genom Kernel from Source Code for ONC - Xiaomi Redmi 7 Guides, News, & Discussion

Hello everyone,
This is a tutorial on how to compile kernel from source code for our device Redmi 7
Special thanks to @rama982 for making Xiaomi source code usable, upstreaming kernel to latest CAF tag and integrating Wifi drivers
So basically to compile kernel from source code we will have to do 4 steps
1. Setup build environment
2. Install required packages
3. Download source code
4. Compile kernel
1. Setup build environment
Setup your favorite linux distro (I recommend using Ubuntu because it is user friendly).
You use virtual box or install linux to a separate partition if you are a Windows user.
2. Install Required packages
Open up terminal and run this command
Code:
sudo apt-get update
Terminal will ask for your password...This is normal....enter your password and press enter
Then run this command
Code:
sudo apt install bc bash git-core gnupg build-essential zip curl make automake autogen autoconf autotools-dev libtool shtool python m4 gcc libtool zlib1g-dev flex
You will get a question with (yes or no) in terminal....you have to press y then enter
3. Download source code
Code:
mkdir android && cd android
mkdir kernel && cd kernel
mkdir xiaomi && cd xiaomi
git clone https://github.com/rama982/android_kernel_xiaomi_onc.git onc
This will download the source code to /home/android/kernel/xiaomi/onc
You PC will download around 1.2 GB....this may take sometime depending on your internet connection speed
4. Compile kernel
One of greatest thing that @rama982 did was to embed a build script that make our lives way easier while compiling the kernel
You might need to change the kernel directory variable to your own path
Code:
KERNEL_DIR=${HOME}/$(basename $(pwd))
to
Code:
KERNEL_DIR=/home/android/kernel/xiaomi/onc
Once done editing build.sh file...let's compile the kernel
Code:
cd /home/android/kernel/xiaomi/onc
chmod a+x build.sh
./build.sh
chmod command is to make build script excutable
the build script will clone toolchains required to compile the kernel and will also clone Anykernel3 which is very useful to make the final flashable zip file.
Once the build script has done its magic you will get your flashable zip in /home/android/kernel/xiaomi/onc/Anykernel3
I hope i made every step as clear as possible
I am available for any questions
Best Regards
Credits:
Xiaomi developers
@rama982

Nice tutorial. I will give a shot when I am free. Thank you.

where is build.sh file ? remove ?

Check his github repos.

doesn't work
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

apt-get update
apt-get -y install libqt4-dev pkg-config

kairusds said:
doesn't work
Click to expand...
Click to collapse
The tutorial is a bit outdated because Rama deleted onc-rebase branch...also now his sources doesn't has build scripts
I'll update it soon
Best Regards

@mylove90
Your stock branch working only the wifi when I change the CONFIG_PRONTO_WLAN=y to CONFIG_PRONTO_WLAN=m
Why only working with module?

Zer0nite said:
@mylove90
Your stock branch working only the wifi when I change the CONFIG_PRONTO_WLAN=y to CONFIG_PRONTO_WLAN=m
Why only working with module?
Click to expand...
Click to collapse
I guess you are building for Miui...i adjusted my branch for Rom builders to build kernel inline with custom Roms with source built vendor..
Best Regards

mylove90 said:
The tutorial is a bit outdated because Rama deleted onc-rebase branch...also now his sources doesn't has build scripts
I'll update it soon
Best Regards
Click to expand...
Click to collapse
build with semaphoreci.sh works perfectly on micode sources, and the special thing is after the build is complete, kernel.zip is sent to the telegram channel itself

Really thank you

Related

HTCFlasher: Open Source ROM Update Utility (RUU) for HTC devices

I have just released HTCFlasher version 3, get it while it's hot!!
HTCFlasher -formerly known as HERMflasher- is an open source tool which allows you to flash ROMs on most current HTC devices. It has some extra features that the original HTC RUU doesn't have, like for example it can present a serial prompt to the bootloader (replacing mtty), or it can dump NBH file contents (.nb ROM parts).
Currently most new HTC devices are supported, and the basic set of functions to work with every HTC bootloader has been implemented, so adding support for new bootloader versions or new devices should be quite easy to do, if not working out of the box.
For an incomplete list, see SupportedDevices.
Supported Operating Systems
GNU/Linux x86 and x86_64
Win32/Cygwin (except Vista)
Mac OS X (intel based)
Features
Flash NBH files: replaces the Windows Rom Upgrade Utility (RUU)
Extract NBH files: replaces windows tools like nbhextract
Serial prompt: replaces mtty / minicom
Easy to use Gtk GUI
Screenshots
Main Window
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Flash NBH file
For more information:
HTCFlasher Project Page
HTCFlasher WIKI
Download
Wow, Nice work!
Thank you, pof!
Absolutely sweet pof, you never cease to amaze me!
Any reason that Vista won't work??? And if so, do you plan on implementing Vista capabilities in the future?
waiting for win32 app
nice & clear GUI and can work with multi phone is much usefull!
thanks pof
ps: you are the great Hermes saver, may i know what is your current phone (follow you forever )
Wow!! Good work.
Very good work guy !
Sorry to ask but how do I use the 2 files that I downloaded? Seems like Linux files.
Any help is appreciated. I am using Vista but can run XP too.
simply amazing!!!
amd64
i have gentoo linux on x86_64 and i get an error whet i try to compile
[email protected] ~/PPC/HTCFlasher-3.0 $ make
cd src && make all
make[1]: Wejście do katalogu `/home/bogoos/PPC/HTCFlasher-3.0/src'
cc nbhextract.o utils.o io.o crc32.o flasher.o info.o prompt.o main.o -o HTCFlasher
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `nbhextract.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `utils.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `io.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `crc32.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `flasher.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `info.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `prompt.o' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
can you make it work on x86_64 platform??
sweeeeeeeeeet! thankx pof
I've compiled it successfully, will test it on my S710 under Debian unstable/sid. This is great news for playing on multi-platform. Thanks pof!
EDIT: Just to let anybody who wants to use this, ensure to disable enhanced network functionality over USB on your device in order to register a default RNDIS and load rndis_host module.
ryncppr said:
Any reason that Vista won't work??? And if so, do you plan on implementing Vista capabilities in the future?
Click to expand...
Click to collapse
Vista handles usb-serial very different than the rest of operating systems. No plans for supporting Vista ATM.
vua777 said:
may i know what is your current phone (follow you forever )
Click to expand...
Click to collapse
I'm using a Polaris right now
zard said:
Sorry to ask but how do I use the 2 files that I downloaded? Seems like Linux files.
Any help is appreciated. I am using Vista but can run XP too.
Click to expand...
Click to collapse
Won't work on Vista. The .tar.gz is like a .zip containing the source code. You have to install cygwin to compile it on XP.
bogoos86 said:
i have gentoo linux on x86_64 and i get an error whet i try to compile
[...]
can you make it work on x86_64 platform??
Click to expand...
Click to collapse
Sorry I left the .o in the source tarball... I've just fixed this, so you can download it again, or run a 'make clean' before 'make'. Let me know if you have any problems compiling on x86_64 now.
Not able to identify my S710/Vox, it will communicate slightly however does not reboot it to the bootloader. Want a log?
this looks like some nice and easy work for us flashers..
make an exe plz some one
pof, you're a crazy boy
Great work, will do the next romflash from debian...
h4waii said:
Not able to identify my S710/Vox, it will communicate slightly however does not reboot it to the bootloader. Want a log?
Click to expand...
Click to collapse
You have to put it in bootloader mode manually, then it will start flashing.
You have to put it in bootloader mode manually, then it will start flashing.
Click to expand...
Click to collapse
Ta. Works.
Thaannnnk youuuu... finally... i can try this.. at home.

Need help creating a flashable .zip

I want to achieve the following two tasks by flashing a .zip file in recovery:
1. Open the following file:
Code:
/system/etc/permissions/handheld_core_hardware.xml​
Add in the following lines right before the </permissions> closing tag at the end:
Code:
<feature name="android.software.vr.mode" />
<feature name="android.hardware.vr.high_performance" />
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
So how can I do it?
Lownita said:
I want to achieve the following two tasks by flashing a .zip file in recovery:
1. Open the following file:
Code:
/system/etc/permissions/handheld_core_hardware.xml​
Add in the following lines right before the </permissions> closing tag at the end:
Code:
<feature name="android.software.vr.mode" />
<feature name="android.hardware.vr.high_performance" />
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
So how can I do it?
Click to expand...
Click to collapse
Find an existing zip so you can see the structure of the file. SuperSU would be good so it uses a shell script rather than the Android mess.
You can use the sed built in to busy box to do the rest. Just call it from your shell script.
Sent from my ONEPLUS A3000 using Tapatalk
Lownita said:
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
Click to expand...
Click to collapse
You do not need to spoof it as a Pixel for Daydream. Just the additions to /etc/permissions will work.
SpasilliumNexus said:
You do not need to spoof it as a Pixel for Daydream. Just the additions to /etc/permissions will work.
Click to expand...
Click to collapse
Hey man, thanks for answering!!!!! I already checked your magisk module for OP3T as I was thinking about using it with my current RR rom!! Spoofing as Pixel because I read that it is important for some apps to work: https://www.reddit.com/r/oneplus/comments/5spgpb/how_to_make_your_op3t_daydream_capable_requires/
Lownita said:
Hey man, thanks for answering!!!!! I already checked your magisk module for OP3T as I was thinking about using it with my current RR rom!! Spoofing as Pixel because I read that it is important for some apps to work: https://www.reddit.com/r/oneplus/comments/5spgpb/how_to_make_your_op3t_daydream_capable_requires/
Click to expand...
Click to collapse
Nope, I've tested it on OxygenOS, RR, and LineageOS (currently running), and it's not needed at all
Also, having interest in creating a flashable zip which inserts those lines you wanted in OP as I did not want to keep adding them manually when I do a ROM update, I've did a bit of research and figured how to do it:
This one searches for the word "mode" and inserts
Code:
<feature name="android.software.vr.mode" />
below in /system/etc/permissions/handheld_core_hardware.xml
Code:
sed -i -r 's/(.*mode.*)/\1\n <feature name="android.software.vr.mode" \/>/g' /system/etc/permissions/handheld_core_hardware.xml
This one searches for the word "high_performance" and inserts
Code:
<feature name="android.hardware.vr.high_performance" />
below in /system/etc/permissions/handheld_core_hardware.xml
Code:
sed -i -r 's/(.*high_performance.*)/\1\n <feature name="android.hardware.vr.high_performance" \/>/g' /system/etc/permissions/handheld_core_hardware.xml
As those words are the only ones in that XML, it made the process pretty easy. I'm still new to using sed, so maybe someone will come up (hopefully) with an even better solution. I haven't created a flashable zip yet as I'm not home, but tested these commands in TWRP and they run perfectly.
Credits to John WH Smith on Stack Exchange for the solution: http://unix.stackexchange.com/quest...-a-new-line-after-the-test-message1-using-sed
And jherran for the replace: http://unix.stackexchange.com/quest...tribute-to-existing-xml-file-using-sed-or-awk
Flashable ZIP attached.
EDIT: Screenshot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Spoofing it as another device will make the Daydream apps available if you do these edits on a device that is already set up and synced with your Google account
If you do the XML edits on a clean install BEFORE booting to Android, no spoofing is needed in build.prop.
SpasilliumNexus said:
Flashable ZIP attached.
Click to expand...
Click to collapse
Thanks a lot! I just tested without sailfish spoofing in buildprop and the app called "Within" didn't work properly. After I added the line back, it worked again!

[ROM][WIP][ALPHA]Ubuntu Touch 16.04 for Xiaomi Mi5 (gemini)

Hello everyone, today i'm here to share my work with you!
It is based on android 7.1 and on halium 7.1 (Thanks to halium and ubports team!).
I am not responsible for any damage or malfunctions!
Requirements
-You can use which operating system you want.
-Adb & Fastboot tools, you can download it here.
-The phone needs to be updated to android 7 or higher.
-TWRP recovery, you can found it here.
IMPORTANT THINGS
-- If your data partition is encrypted, you need to format it or ubuntu will not boot!
-- If your data partition is f2fs ubuntu will not work so you need to format it in ext4.
-- If your device is stuck on mi logo, flash miui 10 and then repeat the procedure.
Here's the instruction to install it on your device:
1- Download halium-boot.img, system.img and rootfs.img from here.
2- Reboot your device in TWRP, connect it to the computer, open terminal and run these 2 commands
3- adb push system.img /data/system.img
4- adb push rootfs.img /data/rootfs.img
5- Reboot your device to fastboot and run
6- fastboot flash boot halium-boot.img
7- Reboot the device and you'll see ubuntu touch running
Things to be noticed:
-- Default password is: "12345". You can change it by opening terminal on the phone and run "sudo passwd phablet" and insert your new password 2 times.
-- When you disable wifi from settings you aren't able to turn it on (i'm working on it). If you want to enable it open terminal on the phone and run "sudo -i" and "echo sta > /sys/module/wlan/parameters/fwpath".
-- Bluetooth, vibration, camera don't work.
-- Calls and messages are not tested.
-- If you want anbox (android app support) run the following commands on terminal: "wget https://raw.githubusercontent.com/halium-gemini/Ubuntu-touch/master/anbox.sh" "chmod +x anbox.sh" "./anbox.sh". When it will finish read the last line.
-- If you want to use apt to install new binaries you need to mount / as rw: "sudo mount -o remount,rw /" and first run an "sudo apt update".
If you want to tell me something like bugs, ideas or something else you can find me here or on telegram.
Source code: www.github.com/halium-gemini
If you want to offer me a coffe here.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Reserved
It there any way to boot on K20P. Its a dump question. But I really want to use it.
oh thank you.
Downloading right now. will update how it works
where is the download link?
it is better if Bluetooth, vibration, camera cloud work, hope that Bluetooth, vibration, camera cloud work
great
For sure i will always keep my eyes and follow this development. thanks for your work.
Really ubuntu on my Mi 5 ! WoWW
I' ll try
Hello all,
Stuck on Mi boot logo screen nothing happend trying to flash again. I was using pixel experience 10...
Hi,
After flashing miui 10 and then repeat the procedure again but still stuck on Mi logo? please help.
BR
Hello all,
After reformatting data partition worked and running perfect !
Some of using my phone;
-wifi running if you activate on nmtui tool, but cellular is not working actually calling okey but no voice ?
phone call is not working finally, how can I fix
I tried to sudo apt update not fixed
Thanks
Hello !
wow this is the best thing i've seen but it needs some improvement !
Not for daily use, many thanks for your effort and work man !
BR
I've never seen anything like it before.
Hello all,
any update for this image gsm not working
BR
Does it support arm64 software? If so, how to enable?
zengxianxi said:
Does it support arm64 software? If so, how to enable?
Click to expand...
Click to collapse
Right now it is based on armhf (arm 32 bit) because the 64bit version has lot of bugs and there are few applications.
Hello all,
any update for this image gsm not working
BR
Hello all,
any update for this image gsm not working
BR
Can you create halium 9.0 for android 9? I will try gsi ubports.
harris123424 said:
Can you create halium 9.0 for android 9? I will try gsi ubports.
Click to expand...
Click to collapse
Yeah, i could try but right now i have no free time. I'm sorry

(Q) Android oreo for galaxy nexus

Hi everyone i want to have a oreo rom for galaxy nexus? Thanks
I don't have this device, but you can build from sources, and clone from trees:
https://github.com/Galaxy-Nexus/android_device_samsung_tuna/tree/lineage-15.0
https://github.com/Galaxy-Nexus/android_kernel_samsung_tuna/tree/lineage-15.0
https://github.com/Galaxy-Nexus/proprietary_vendor_samsung/tree/lineage-15.0
notnoelchannel said:
I don't have this device, but you can build from sources, and clone from trees:
https://github.com/Galaxy-Nexus/android_device_samsung_tuna/tree/lineage-15.0
https://github.com/Galaxy-Nexus/android_kernel_samsung_tuna/tree/lineage-15.0
https://github.com/Galaxy-Nexus/proprietary_vendor_samsung/tree/lineage-15.0
Click to expand...
Click to collapse
Can someone/Is someone willing to build this for the Galaxy Nexus? I was not able to find a proper documentation on how to do this
doxtsgaming said:
Can someone/Is someone willing to build this for the Galaxy Nexus? I was not able to find a proper documentation on how to do this
Click to expand...
Click to collapse
[GUIDE/HOW-TO] Building LineageOS for an Unsupported Device
Foreword: This is my own notes I created to build LOS for my device (SM-T713 or gts28vewifi). After reading this, I encourage you to create your own notes as it will help you better understand the build process. I followed the official guide...
forum.xda-developers.com
for second step, clone https://github.com/Galaxy-Nexus/proprietary_vendor_ti to proprietary/vendor/ti
https://github.com/Galaxy-Nexus/android_device_samsung_tuna/tree/lineage-15.0 to device/samsung/tuna
https://github.com/Galaxy-Nexus/android_kernel_samsung_tuna/tree/lineage-15.0 to kernel/samsung/tuna
https://github.com/Galaxy-Nexus/android_hardware_ti_omap4
to hardware/ti/omap4
https://github.com/Galaxy-Nexus/proprietary_vendor_samsung/tree/lineage-15.0 to proprietary/vendor/samsung
and clone the lineage-15.0 repo instead of 17.1
AND SKIP STEP 5!!! IMPORTANT
notnoelchannel said:
[GUIDE/HOW-TO] Building LineageOS for an Unsupported Device
Foreword: This is my own notes I created to build LOS for my device (SM-T713 or gts28vewifi). After reading this, I encourage you to create your own notes as it will help you better understand the build process. I followed the official guide...
forum.xda-developers.com
Click to expand...
Click to collapse
Thx. Maybe I'll write and publish my own detailed guide for this specific device. Am I allowed to share my built LOS 15.0 ROM image from this source?
doxtsgaming said:
Thanks for your help. I'm doing this the first time and I'm wondering, how to get a device manifest file and how the resulting .xml file should be named. In addition of that, I want to ask, if I can write and publish my own detailed guide for this specific device. I'm pretty sure I am not allowed to share my built LOS 15.0 ROM image from this source.
Click to expand...
Click to collapse
you are allowed to share your los 15.0 rom
Ok. Thanks for your help
I'm stuck now at the select command after chosen aosp_arm-eng (lunch command). Sry, I'm a bit clueless, but what should I choose as input?
doxtsgaming said:
I'm stuck now at the select command after chosen aosp_arm-eng (lunch command). Sry, I'm a bit clueless, but what should I choose as input?
Click to expand...
Click to collapse
https://github.com/Galaxy-Nexus/android_device_samsung_maguro/tree/lineage-15.0 clone this repo (git clone https://github.com/Galaxy-Nexus/android_device_samsung_maguro -b lineage-15.0 device/samsung/maguro)
and type lunch full_maguro-userdebug
and important!!! skip step 5
lunch option full_maguro-userdebug doesn't seem to work. I received a message.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have two device directories one for tuna and one for maguro.
doxtsgaming said:
lunch option full_maguro-userdebug isn't available. Do I have to collect blob information from the device first (./extrace-files.sh)? This also doesnt worked for me.
Click to expand...
Click to collapse
can you show me the lunch options?
notnoelchannel said:
can you show me the lunch options?
Click to expand...
Click to collapse
after executing source build/envsetup.sh
Also I get many adb errors running ./extract-files.sh in maguro folder even I've installed android-platform-tools-base.
doxtsgaming said:
after executing source build/envsetup.sh
View attachment 5666829
Also I get many adb errors running ./extract-files.sh in maguro folder even I've installed android-platform-tools-base.
View attachment 5666835
Click to expand...
Click to collapse
you chose 15. full_maguro-userdebug
then what does it display?
That will show:
Okay, now type brunch full_maguro-userdebug
notnoelchannel said:
Okay, now type brunch full_maguro-userdebug
Click to expand...
Click to collapse
I stumbled across another error:
doxtsgaming said:
I stumbled across another error:
View attachment 5666863
openjdk-8-jdk and openjdk-11-jdk are installed.
Click to expand...
Click to collapse
Make cannot find tools.jar
Running Ubuntu 12.04 I have added to PATH: /home/jeffrey/jdk1.6.0_43/lib I am attempting to build from source using Make: make -j16 But encounter the error: build/core/config.mk:268: *** Error:
stackoverflow.com
I've reinstalled both jdk 8 and 11. Does anyone know how to solve this new error? thx for help.
doxtsgaming said:
I've reinstalled both jdk 8 and 11. Does anyone know how to solve this new error? thx for help.
View attachment 5668049
Click to expand...
Click to collapse
by removing the
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
on config/common.mk resolve the problem.
by removing the
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
on config/common.mk resolve the problem.
Click to expand...
Click to collapse
config/common.mk doesn't exist in my case. It doesn't seem to contain ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1. Removing PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.adb.secure=1 didn't work. File path: android/lineage/vendor/lineage/config/common.mk
Thx for any help, as its my first time building a rom.

[GUIDE] how to build a kernel for S20 FE (snapdragon) may 28, 2022

*hello everyone my name is El_chanz and today I came here to teach you how to compile a kernel for s20fe
Ok guys, I am going to show you how to build a Sammy kernel from my source.
Below is a list of requirements that you must have in order to be successful.
REQUIREMENTS
1. For the best outcome, you need to be on Linux. I dont support VM Box
2. A github account or the like. Its free.
3. Be familiar with terminal commands
4. And have alot of patients
first thing open a terminal on your desktop you must run the following command: git clone https://github.com/Elchanz3/klimbokernel.git
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this will clone my source to your directory
well after you finish cloning my source to your directory enter on my source
well if you want to configure the kernel with your modifications go to klimbokernel_s20fe/arch/arm64/configs and open the r8q_defconfig as text and make your changes
after finishing your settings go back to /klimbokernel_s20fe
now you are inside the source open the terminal
now run the following command: ./build_kernel.sh ) as root, my script will automatically install the necessary dependencies: gcc clang and All the android dependencies
after you run the script it will start installing the things needed for the build it will ask for permissions to install
you need to say ( y ) to all
after installing everything the script will ask which variant you want to compile the kernel for
, you choose need to choose your device variant
ok after you choose it will compile for your variant you will need to wait, this can take time depending on your cpu in my case it compiles between 25 to 30 minutes
your kernel is already compiled and ready to be flashed!
to find the kernel zip file go to anykernel3
all done
remembering that my script runs clang 10 if you want the latest stable version of clang you will need to download
download link: https://android.googlesource.com/pl...3febb26cbd05d9a1e44f089190ac892f72e684.tar.gz
after you download this you will need to extract to /home
then open the following path: /home/chanz/clang-14.0.7/clang-r445002/bin
in my case i renamed this to clang 14 but enter linux-64 and do this path
copy this path and go back to kernel source and edit the build_kernel.sh script
edit the KERNEL_LLVM_BIN=clang-12 line to
KERNEL_LLVM_BIN=/home/chanz/clang-14.0.7/clang-r445002/bin/clang
remember put your clang path here, i used my only path as an example
after that save the script and run it in the source terminal (./build_kernel.sh)
well after that the kernel will be compiled automatically
and we finally ended up here
I hope I helped you
if I helped you don't forget to leave a like XD
goodbye until next time!
Good guide
Hi,
for compiling exynos kernel the guide it's fails.
Please update also exynos.
Thank you
Hello! I'm trying to understand the process of building the kernel from source according to the instructions but I get an error. Can you suggest what am I doing wrong?
ip-drop said:
Hello! I'm trying to understand the process of building the kernel from source according to the instructions but I get an error. Can you suggest what am I doing wrong? View attachment 5655003View attachment 5655005
Click to expand...
Click to collapse
run sudo apt install flex
ricci206 said:
Hi,
for compiling exynos kernel the guide it's fails.
Please update also exynos.
Thank you
Click to expand...
Click to collapse
maybe i will do it today if i have time
snapdragon teaks said:
forse lo farò oggi se ho tempo
Click to expand...
Click to collapse
thank you
ricci206 said:
thank you
Click to expand...
Click to collapse
https://forum.xda-developers.com/t/guide-how-to-build-a-kernel-for-s20-fe-exynos.4466475/ here is the guide bro
Thank you for answering the question
Subsequently, when building the kernel, I encountered a problem, can you tell me how to fix the errors?
did you follow the steps correctly?
I am planning to build roms for this device. Can you help me with some things?
1) Does this device have a device tree?
2) If not, I will try to build one but this will be my first time so I will appreciate any help
KHSH01 said:
I am planning to build roms for this device. Can you help me with some things?
1) Does this device have a device tree?
2) If not, I will try to build one but this will be my first time so I will appreciate any help
Click to expand...
Click to collapse
sorry for late reply, im little busy these days, 1) idk if this device have since i don't see any one.
snapdragon teaks said:
sorry for late reply, im little busy these days, 1) idk if this device have since i don't see any one.
Click to expand...
Click to collapse
No worries man. I'm just glad you took the time to reply.
Greetings to all !!! I finally learned how to successfully compile the kernel for my device .. but later I ran into a problem. My software cannot raise the access point with the given software (SSID and password). Something intuitively tells me that when compiling the kernel, I did not include any of the settings .. Can someone tell me what the problem is ???

Categories

Resources