Error in repacking boot.img... (Kernel Compilation) - Xiaomi Mi 4i

i have successfully compiled kernel and generated dt.img now after this i downloaded latest twrp.img (version 3.0..) and unpacked it and replaced my kernel and dt.img also edited img_info file. But in repacking it is giving error.....
I have posted pic of errors....
Thank you.....

Use anykernel2 for the easiest flashable kernel....
If you don't want to compile the kernel with cm source..

faizauthar12 said:
Use anykernel2 for the easiest flashable kernel....
If you don't want to compile the kernel with cm source..
Click to expand...
Click to collapse
okay will try... but what causing the error btw?
i have set all parameters right
as this is my first kernel i dont want to directly flash it on device instead i want to just boot it by
"fastboot boot boot.img" to test kernel...
Thank you..

[email protected] said:
okay will try... but what causing the error btw?
i have set all parameters right
as this is my first kernel i dont want to directly flash it on device instead i want to just boot it by
"fastboot boot boot.img" to test kernel...
Thank you..
Click to expand...
Click to collapse
Tbh i never pack it like that
I am using cm source for compiling a kernel
Also you set the boot size is too small...
Anyway what's the different between fastboot and flash via recovery
The result is same .-.

faizauthar12 said:
Tbh i never pack it like that
I am using cm source for compiling a kernel
Also you set the boot size is too small...
Anyway what's the different between fastboot and flash via recovery
The result is same .-.
Click to expand...
Click to collapse
i solved it....
problem was missing some 32 bit lib files as i am on 64 bit pc.
kernel booting and flashed properly and just black screen i want log of the errors how can i get that?
i have not changed configuratio file.

[email protected] said:
i solved it....
problem was missing some 32 bit lib files as i am on 64 bit pc.
kernel booting and flashed properly and just black screen i want log of the errors how can i get that?
Click to expand...
Click to collapse
Which kernel source you're using
Which rom ? Miui or aosp?

faizauthar12 said:
Which kernel source you're using
Which rom ? Miui or aosp?
Click to expand...
Click to collapse
miui8 and mi official sources
as i know you have provided one zip file along with sensie kernel for to make it work with miui...
whats with that zip file?

[email protected] said:
miui8 and mi official sources
Click to expand...
Click to collapse
-_-
Ofc you can't
Official kernel source is out a dated and only support miui 6...
Believe me ,if you want to do something with kernel
Start with the proper and already test well
Use aosp rom...

faizauthar12 said:
-_-
Ofc you can't
Official kernel source is out a dated and only support miui 6...
Click to expand...
Click to collapse
okay...
so which source to use?

[email protected] said:
okay...
so which source to use?
Click to expand...
Click to collapse
Ferrari dev team
And it's only works for aosp...
Github.cim/ferrari-dev-team

[email protected] said:
okay...
so which source to use?
Click to expand...
Click to collapse
okay... Thanks got it

Related

[Q] how to change kernel

Hi guys .im a newbie here and I wonder to change my current kernel thanks for replies
do you any new or another kernel for your device?
Nilendu said:
do you any new or another kernel for your device?
Click to expand...
Click to collapse
I have dorimax wizzedkat 3.3rom
mark.dian said:
I have dorimax wizzedkat 3.3rom
Click to expand...
Click to collapse
Just download a compatible kernel and flash it through your current kernel
Just like your flashed your current rom
Sent from my beastly SM-T320
Bink Feed said:
Just download a compatible kernel and flash it through your current kernel
Just like your flashed your current rom
Sent from my beastly SM-T320
Click to expand...
Click to collapse
Hmmmm...ived tried after installing my rom I flash also apollo but when booting it gets stuck on samsung logo then keeps on the loop of that ....but when I dont change my kernel wizzedkat rom works perfectly no boot loop or something ....they say apollo kernel is okay with my current rom but how come I cant do it ...always error
mark.dian said:
Hmmmm...ived tried after installing my rom I flash also apollo but when booting it gets stuck on samsung logo then keeps on the loop of that ....but when I dont change my kernel wizzedkat rom works perfectly no boot loop or something ....they say apollo kernel is okay with my current rom but how come I cant do it ...always error
Click to expand...
Click to collapse
Are you sure that you downloaded the right kernel (for your phone)? You either downloades the wrong kernel (for another phone) or the wrong version of the kernel...or the kernel isn't actually compatible with the ROM you're using.
Sent from my Xperia V using XDA Free mobile app
finac94 said:
Are you sure that you downloaded the right kernel (for your phone)? You either downloades the wrong kernel (for another phone) or the wrong version of the kernel...or the kernel isn't actually compatible with the ROM you're using.
Sent from my Xperia V using XDA Free mobile app
Click to expand...
Click to collapse
Here's what ive downloaded..
mark.dian said:
Hmmmm...ived tried after installing my rom I flash also apollo but when booting it gets stuck on samsung logo then keeps on the loop of that ....but when I dont change my kernel wizzedkat rom works perfectly no boot loop or something ....they say apollo kernel is okay with my current rom but how come I cant do it ...always error
Click to expand...
Click to collapse
Do you have a dual boot version of your rom?
When i look at your current kernel and rom, do you have a S2 ?
Sent from my beastly SM-T320
Bink Feed said:
Do you have a dual boot version of your rom?
When i look at your current kernel and rom, do you have a S2 ?
Sent from my beastly SM-T320
Click to expand...
Click to collapse
Here is my details... and sorry I dont know what is dual boot ...but I see that in CWM recovery im a bit newbie
Flashing Kernel Problem Fixed
mark.dian said:
I have dorimax wizzedkat 3.3rom
Click to expand...
Click to collapse
1→ If you have any kernel (boot.img) for your device, just put your "boot.img" in the zip file that i uploaded for you,
check the image if you can't understand my word.
2→ Now go to the (CWM/TWRP) recovery and Flash it.
IF I Really Helped You Please Press The Thanks Button....
Find Me On Facebook for Any Kind of Help For android Devices GO HERE: https://www.facebook.com/fXDAdev
Nilendu said:
1→ If you have any kernel (boot.img) for your device, just put your "boot.img" in the zip file that i uploaded for you,
check the image if you can't understand my word.
2→ Now go to the (CWM/TWRP) recovery and Flash it.
IF I Really Helped You Please Press The Thanks Button....
Find Me On Facebook for Any Kind of Help For android Devices GO HERE: https://www.facebook.com/fXDAdev
Click to expand...
Click to collapse
Is that compatible with wizzedkat rom? And what kind of kernel is that?
mark.dian said:
Is that compatible with wizzedkat rom? And what kind of kernel is that?
Click to expand...
Click to collapse
You have misunderstanding about my uploaded files.
I didn't uploaded any kernel for u. I just uploaded a META-INF folder for which is used for flashing.
All u hv to do, just select The META-INF Folder (that i uploaded for you) and the kernel, and zip those folder and and file... I uploaded that image for instructions...
Nilendu said:
You have misunderstanding about my uploaded files.
I didn't uploaded any kernel for u. I just uploaded a META-INF folder for which is used for flashing.
All u hv to do, just select The META-INF Folder (that i uploaded for you) and the kernel, and zip those folder and and file... I uploaded that image for instructions...
Click to expand...
Click to collapse
What you are saying is I will download your meta? [Done] whats next?
Then where will I find the boot image ?
Tell Me about your Device's Brand with model number
mark.dian said:
What you are saying is I will download your meta? [Done] whats next?
Then where will I find the boot image ?
Click to expand...
Click to collapse
I didn't upload any boot img, use your own boot img.
or tell me about your Device's Brand with model number. Then i Can help you to find a suitable boot img for ur Device...
---------- Post added at 11:46 AM ---------- Previous post was at 11:26 AM ----------
I watched Your Previous ATTACHED THUMBNAILS, & Understood that You Have Samsung Galaxy SII.
So If you need Kernel for your device you can go to the link That given bottom ↓
http://forum.xda-developers.com/galaxy-s2/themes-apps/kernel-galaxy-s2-kernel-collection-t1255790
Nilendu said:
I didn't upload any boot img, use your own boot img.
or tell me about your Device's Brand with model number. Then i Can help you to find a suitable boot img for ur Device...
---------- Post added at 11:46 AM ---------- Previous post was at 11:26 AM ----------
I watched Your Previous ATTACHED THUMBNAILS, & Understood that You Have Samsung Galaxy SII.
So If you need Kernel for your device you can go to the link That given bottom ↓
http://forum.xda-developers.com/galaxy-s2/themes-apps/kernel-galaxy-s2-kernel-collection-t1255790
Click to expand...
Click to collapse
Me havingabootloop always ....anyways can youhelp me im getting a gallery memory full even I have too many space I think its an error

[ROM] AOKP 6.0.1(MM)(Testing)

Hello guys ..I have compiled aokp MM for ferrari
Just wanted to confirm your reviews before starting a Whole thread
heres the rom link
https://www.androidfilehost.com/?fid=24421527759889608
i will be very happy for your reviews and yes this thread will be converted into a Rom thread once the rom is stable and working
The flashing instruction remains same
Dont forget to do a clean install otherwise there would be problems
Happy flashing guys and dont forget to send some reviews
wow good work.......!
+1 Thanks....
I flashed MIUI 5.6.11 via fastboot -- flash_all.sh, rooting, install TWRP, format /system, /data, /cache, /dalvik, installed AOKP, but cannot finishing boot. Bootanimation standing more then half hour. Same without gapps or with gapps (Open Gapps).
stiw47 said:
I flashed MIUI 5.6.11 via fastboot -- flash_all.sh, rooting, install TWRP, format /system, /data, /cache, /dalvik, installed AOKP, but cannot finishing boot. Bootanimation standing more then half hour. Same without gapps or with gapps (Open Gapps).
Click to expand...
Click to collapse
Can you send me logcat ...if possible ..attach one ..I.would look into it
Screenshots
Can anyone post screenshots?Please
Tanuj97 said:
Can you send me logcat ...if possible ..attach one ..I.would look into it
Click to expand...
Click to collapse
Sorry cause log, AOKP is my favorite rom, and I realy wanted to attach log, but...
Phone was in bootloop, only way (only way known to me) to get log was via ADB, but last night, when this was happend, my computer was also in bootloop with unsuccessful trying to run new version of PhoenixOS . I was waiting and waiting for Phoenix and asleep. In the morning, when I wake up, I done TWRP restore, sorry.
stiw47 said:
Sorry cause log, AOKP is my favorite rom, and I realy wanted to attach log, but...
Phone was in bootloop, only way (only way known to me) to get log was via ADB, but last night, when this was happend, my computer was also in bootloop with unsuccessful trying to run new version of PhoenixOS . I was waiting and waiting for Phoenix and asleep. In the morning, when I wake up, I done TWRP restore, sorry.
Click to expand...
Click to collapse
No problem ....pls attach one once ur PC is back.... if possible
Can u build the rom without sepolicy(device/xiaomi/ferrari/sepolicy)
faizauthar12 said:
Can u build the rom without sepolicy(device/xiaomi/ferrari/sepolicy)
Click to expand...
Click to collapse
build rom without sepolicy? what about qcom/sepolicy, don't build it also?
haikalizz said:
build rom without sepolicy? what about qcom/sepolicy, don't build it also?
Click to expand...
Click to collapse
Ofc we need qcom/sepolicy
Just try it ,it's my opinion
Cuz i faced bootloop too at temasek MM ,maybe we need to update the sepolicy (at our device tree)
Does that work as that's the issue I've been having building Tesla
sykomaniac said:
Does that work as that's the issue I've been having building Tesla
Click to expand...
Click to collapse
I've build a new one but haven't flashed it.. A dirty flash over slimbit should do it right? don't want to wipe data...
Yeah dirty flash should work I would think
should we build a new device tree based on new miui 7?
haikalizz said:
I've build a new one but haven't flashed it.. A dirty flash over slimbit should do it right? don't want to wipe data...
Click to expand...
Click to collapse
sykomaniac said:
Yeah dirty flash should work I would think
Click to expand...
Click to collapse
alright,let's see !!
ajaxcbcb said:
should we build a new device tree based on new miui 7?
Click to expand...
Click to collapse
maybe :/ ,or wait for Official MM from Xiaomi ,so we can use the new source kernel too
faizauthar12 said:
alright,let's see !!
maybe :/ ,or wait for Official MM from Xiaomi ,so we can use the new source kernel too
Click to expand...
Click to collapse
MM will be a decade away
faizauthar12 said:
Ofc we need qcom/sepolicy
Just try it ,it's my opinion
Cuz i faced bootloop too at temasek MM ,maybe we need to update the sepolicy (at our device tree)
Click to expand...
Click to collapse
i have included qcom/sepolicy while building .....
pls send some logcats ...so that we can find out the real problem
sykomaniac said:
Does that work as that's the issue I've been having building Tesla
Click to expand...
Click to collapse
yes ...that would be the one causing problem ....what did your logact suggest ....
I used fire855 device and kernel sources ...
Tanuj97 said:
yes ...that would be the one causing problem ....what did your logact suggest ....
I used fire855 device and kernel sources ...
Click to expand...
Click to collapse
I had to use a custom device tree just to make it work.. just a few variables removed/added with my kernel sources..
haikalizz said:
I had to use a custom device tree just to make it work.. just a few variables removed/added with my kernel sources..
Click to expand...
Click to collapse
is you kernel mm compatible ??
if yes ...then i would try to build aokp with your kernel rather than fires

Kernel Overclock for CM11

Close
All friend like my work,press thank button,very easy
Big thank to: @zombar and @vm03 for his work @kaotd99 help me complete firt kernel
XDA:DevDB Information
Kernel Overclock for CM11, Kernel for the Nokia X2
Contributors
thinhx2, vm03, zombar, kaotd99
Kernel Special Features:
Version Information
Status: Testing
Created 2016-03-20
Last Updated 2016-05-30
Up
can it be installed on all build cm11?
just trying it, need time to feel the different with stock kernel
frnsl3 said:
can it be installed on all build cm11?
just trying it, need time to feel the different with stock kernel
Click to expand...
Click to collapse
Bro can try all build cm11,tomorrow i will try build kernel support d2w
Double tap wake up available
j€nish said:
Double tap wake up available
Click to expand...
Click to collapse
Maybe work or no i work to kernel have d2w in 2 hour. I hope it is work
it is .img file so I am getting confuse to flash it via twrp 3.0.0,,,whenever I try to flash this kernel image there is two option like boot image or recovery image,,,so what option do I need to choose to flash this kernel(.img file)?
sweezit92 said:
it is .img file so I am getting confuse to flash it via twrp 3.0.0,,,whenever I try to flash this kernel image there is two option like boot image or recovery image,,,so what option do I need to choose to flash this kernel(.img file)?
Click to expand...
Click to collapse
Boot img bro
thinhx2 said:
Boot img bro
Click to expand...
Click to collapse
thanx
j€nish said:
Double tap wake up available
Click to expand...
Click to collapse
Wait push request?
after flashing this kernel WiFi not turning on,SD card not showing,,,,,any one facing this problem or I am the only one??
sweezit92 said:
after flashing this kernel WiFi not turning on,SD card not showing,,,,,any one facing this problem or I am the only one??
Click to expand...
Click to collapse
yes i am too, my wifi wont turn on but sd card no problem, revert to stock now
frnsl3 said:
yes i am too, my wifi wont turn on but sd card no problem, revert to stock now
Click to expand...
Click to collapse
I'm sorry all tester because wifi dont work,in 2 day i try add d2w to kernel but not work
thinhx2 said:
I'm sorry all tester because wifi dont work,in 2 day i try add d2w to kernel but not work
Click to expand...
Click to collapse
no problem bro,,,keep on the good work,we are with you
thinhx2 said:
I'm sorry all tester because wifi dont work,in 2 day i try add d2w to kernel but not work
Click to expand...
Click to collapse
its okay, keep it up
sweezit92 said:
no problem bro,,,keep on the good work,we are with you
Click to expand...
Click to collapse
I will try s2w
frnsl3 said:
its okay, keep it up
Click to expand...
Click to collapse
Thank u
s2w
hi all, i add s2w to kernel cm11,need tester test this kernel.thank all
i will upload
i will upload kernel fix wifi(maybe)
Wifi work but s2w not work,try fix soon

[RECOVERY][TWRP 3.0.x][4c - libra][4s - aqua] Recovery built from source

Source codes:
TWRP: https://github.com/omnirom/android_bootable_recovery/tree/android-6.0
Device tree: https://github.com/kumajaya/android_device_xiaomi_libra/tree/cm-13.0-twrp
https://github.com/kumajaya/android_device_xiaomi_aqua/tree/cm-13.0-twrp
Kernel: https://github.com/kumajaya/android_kernel_xiaomi_msm8992/tree/marshmallow
Compiled binary later, source codes much important
This recovery feature almost identical to official TWRP recovery for bullhead (including system image and EFS backup) + f2fs support (tested on /cache partition, compatible ROM/kernel needed). Aroma support need more test, AromaFM 2.00b7 working great so far.
Screenshot attached. AromaFM 2.00b7 seems work correctly, wrong color space for AromaFM 1.9.1 .
Download link: https://goo.gl/SIhNiV For source code please check post #1 :laugh:
Is touchscreen is still there?
ajitkatte said:
Is touchscreen is still there?
Click to expand...
Click to collapse
Tell me You can try it without a flash using "fastboot boot recovery.img" command. Touchscreen issue depend on your ROM kernel version, should be no problem for MIUI 7.2.1.0 or 7.2.3.0 or unofficial ROM with kernel built from Xiaomi source. Maybe I will build fully compatible kernel for stock ROM but currently I still focus on my own device tree source.
great work!
touchscreen confirmed ok on my device.
emfox said:
great work!
touchscreen confirmed ok on my device.
Click to expand...
Click to collapse
Slow but sure Please check my libra device tree source, how if we put bullhead inside our device :laugh:
ketut.kumajaya said:
Slow but sure Please check my libra device tree source, how if we put bullhead inside our device :laugh:
Click to expand...
Click to collapse
so bullhead is the most suitable template for libra, right?
emfox said:
so bullhead is the most suitable template for libra, right?
Click to expand...
Click to collapse
I don't know until the first build ready to flash
emfox said:
so bullhead is the most suitable template for libra, right?
Click to expand...
Click to collapse
ROM build just started. Still a lot of fix needed, I hope it will boot on the first try as I have done for Redmi 2
ketut.kumajaya said:
ROM build just started. Still a lot of fix needed, I hope it will boot on the first try as I have done for Redmi 2
Click to expand...
Click to collapse
So, this recovery so perfect. 54 download almost without any feedback. No feedback = no complain = no issue or no one really use it :laugh: Who care, I build it for myself :laugh:
I just try but i'm not an advance user. then i don't know any issue too much but everything work smooth.
ketut.kumajaya said:
So, this recovery so perfect. 54 download almost without any feedback. No feedback = no complain = no issue or no one really use it :laugh: Who care, I build it for myself :laugh:
Click to expand...
Click to collapse
I think everyone is waiting for your final custom kernel release!
In my opinion, is the best TWRP . Everything works fast and smooth. Greate work. How can I use aroma manager on this TWRP??
I just unlocked new phone, put yours on and installed CM13 without any problems. Touch screen is also responsive right away. Great job, thanks!
kecik18 said:
In my opinion, is the best TWRP . Everything works fast and smooth. Greate work. How can I use aroma manager on this TWRP??
Click to expand...
Click to collapse
Download aromafm-2.00b7.zip from https://github.com/amarullz/AROMA-Filemanager/releases and run it like you flash a zip in TWRP.
solis_f said:
I think everyone is waiting for your final custom kernel release!
Click to expand...
Click to collapse
Not sure, still focus on ROM build.
ketut.kumajaya said:
Download aromafm-2.00-b6.zip from https://github.com/amarullz/AROMA-Filemanager/releases and run it like you flash a zip in TWRP.
Click to expand...
Click to collapse
thx
kecik18 said:
thx
Click to expand...
Click to collapse
Sorry, I mean aromafm-2.00b7.zip .
Huh, 64bit ROM need more time to build, need more space. One error so far, quick fix applied, just found a proper fix in bullhead kernel source

[DEV] DT2W for X520x

I began to work on dt2w for x52x . It's based on elementalx dt2w/sw2w gestures. I have also updated the driver (a bit).
https://github.com/mthomos/android_kernel_leeco_msm8976/tree/dt2w
You can compile it ,use it and tell me how it works on your device.
Make a BACKUP first before flashing!
Download : https://drive.google.com/open?id=0B4AOvCehd4v3VU93amRxOTd3SEE
Two options: Kernel with ElementalX wake gestures, repackaged with eui kernel and (eui-dt2w.img) and Kernel with Dt2w of Marlin repackaged with los kernel(marlin-dt2w).
Flash it on top nougat custom roms
To report an issue, share logcat or pstore logs
tysm!! WE needed it so Hard...
Your hard work appreciated!!
---------- Post added at 03:36 AM ---------- Previous post was at 03:29 AM ----------
waiting for someone to compile it!:laugh:
I have fixed the small errors i did. Now make builds successfully. I have also implemented a CAF patch. I will release the kernel after Monday. Have a nice weekend !
Eagerly waiting for the kernal!
marios199546 said:
I have fixed the small errors i did. Now make builds successfully. I have also implemented a CAF patch. I will release the kernel after Monday. Have a nice weekend !
Click to expand...
Click to collapse
Does it work ?
vijethrocks said:
Eagerly waiting for the kernal!
Click to expand...
Click to collapse
It's nt a kernal
In a few minutes i will upload the kernel in the OP. Before you flash, make TWRP backup. I am not sure that touchscreen will work flawlessly with this kernel. So flash at your own risk
Compatible with MIUI?
Leeco Le x522 said:
Compatible with MIUI?
Click to expand...
Click to collapse
No, read OP
tysm for this release!!
gonna test and report :laugh:
Not working on latest Lineage OS 14.1.
Can you try to swipe up from bottom when the screen is off ?
marios199546 said:
Can you try to swipe up from bottom when the screen is off ?
Click to expand...
Click to collapse
i flashed the image on boot partition from twrp and rom is not booting.
Rafeh said:
i flashed the image on boot partition from twrp and rom is not booting.
Click to expand...
Click to collapse
Rom ?
Official latest Lineage - Bootloop
marios199546 said:
Rom ?
Click to expand...
Click to collapse
lineage-14.1-20170804-nightly-s2
New kernel : https://drive.google.com/open?id=0B4AOvCehd4v3S0wzRU1udF91YlU
Rafeh said:
lineage-14.1-20170804-nightly-s2
Click to expand...
Click to collapse
Fine . I uploaded a new kernel, test it. I think it's something wrong with gpu because i encountered a strange build issue with gpu driver without modifying it. I will check again tommorow
marios199546 said:
Fine . I uploaded a new kernel, test it. I think it's something wrong with gpu because i encountered a strange build issue with gpu driver without modifying it. I will check again tommorow
Click to expand...
Click to collapse
Still bootloop.. Carbon rom weeklies
kjsr said:
Still bootloop.. Carbon rom weeklies
Click to expand...
Click to collapse
Can you give the ramoops logs ? Mine boots fine.. Maybe something is wrong with kernel repackaging

Categories

Resources