[Help] Flashing compiled kernel - Xiaomi Redmi Note 3 Questions & Answers

Hello guys,
I have compiled the stock kernel from source for kenzo and got the Image and Image.gz files.Source
Now what are the next steps to flash the kernel/make it bootable?
Please help. Thx

first of all this thread is in wrong forum,please use q/a section for asking questions.
coming to topic,you can either take stock kernel,unpack and replace your Image to it, repack it and flash or your can use varunchitre's or osmosis' anykernel flashable zip.

neonkat said:
first of all this thread is in wrong forum,please use q/a section for asking questions.
coming to topic,you can either take stock kernel,unpack and replace your Image to it, repack it and flash or your can use varunchitre's or osmosis' anykernel flashable zip.
Click to expand...
Click to collapse
Sorry and thx.
I think my question wasnt clear. Sorry for that. I want to generate dt.img of stock kernel, that wlan module (is that required? If yes then how to generate).
In stock kernel there is no dtbtool in scripts. Please help me

Devam03 said:
Sorry and thx.
I think my question wasnt clear. Sorry for that. I want to generate dt.img of stock kernel, that wlan module (is that required? If yes then how to generate).
In stock kernel there is no dtbtool in scripts. Please help me
Click to expand...
Click to collapse
*for generating dtb,you need dtbtool(get DtbtoolCM[Cm kernel]from hereand check its readme for command).
*modules have now been disabled and are built along with kernel,so no need for them.
building dtb is not necessary everytime unless and until you play with any dtsi file.

look at here

Related

[Q] How to make a new Kernel?

Hello friends,
sorry for noob question, i want modify a Kernel, but i need the source file or i can use the .zip flashable file? What software i need to do the modify? i.e. I want analyze the BlackHawk kernel and Battery Extender Beta 1 for make a new kernel with the best of both.
Tks!
1- use the search button, or the almighty google. Theres already similar thread before asking howto compile kernel and i've already answered there.
2- u need linux+some linux experience+kernel source+gedit/geany+patience.
It's not easy pal
Sent from my GT-S5830 using XDA

boot.img creation from the stock ftf

Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Trevor Chuah said:
Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
ShivangDave said:
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
Click to expand...
Click to collapse
For how to decrypt the kernel.sin, you can use Flashtool (not Sony official one)
Under Tools (perhaps I remember correctly), there is a option about decrypt SIN, and then you can choose the kernel.sin you want to decrypt.
Have to tried kernel kitchen?
neectron said:
Have to tried kernel kitchen?
Click to expand...
Click to collapse
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Trevor Chuah said:
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Click to expand...
Click to collapse
Oh,now I see question is so old
neectron said:
Oh,now I see question is so old
Click to expand...
Click to collapse
yeah, very old. haha
Anyway, thank you for your kindly reply.
Moving my way toward developer (super noob developer). haha

[Q] What after zimage??

Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
@[email protected] said:
Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
Click to expand...
Click to collapse
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
shimp208 said:
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
Click to expand...
Click to collapse
thanks buddy for your precious reply........

[Help] Replace bootclasspath

Hi guys,
I am porting a ROM and I really need some help with the kernel. All I am asking is to replace the bootclasspath from init.rc in the boot.img files. I have really looked at a billion of guides and I just can't seem to get it going myself, so I hope someone can help.
I have uploaded the two boot.img files here: http://www.mediafire.com/?zq8psuzcb9878m6
If I have read it correctly, it is the bootclasspath inside port.img that needs to be copied to base.img so I can use the kernel on this ROM, please tell if I have got it wrong
Hoping someone can take a minute or two to look into this.
Thanks in advance.
-Natalya
natalya said:
Hi guys,
I am porting a ROM and I really need some help with the kernel. All I am asking is to replace the bootclasspath from init.rc in the boot.img files. I have really looked at a billion of guides and I just can't seem to get it going myself, so I hope someone can help.
I have uploaded the two boot.img files here: http://www.mediafire.com/?zq8psuzcb9878m6
If I have read it correctly, it is the bootclasspath inside port.img that needs to be copied to base.img so I can use the kernel on this ROM, please tell if I have got it wrong
Hoping someone can take a minute or two to look into this.
Thanks in advance.
-Natalya
Click to expand...
Click to collapse
see guide in my signature

[Q] how to change kernel before flashing rom?

i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
FarrukhQadri said:
i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
Click to expand...
Click to collapse
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
C13v3r0n3 said:
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
Click to expand...
Click to collapse
Thanks buddy
hi
extract zimage using kitchen and rebuild with the modified zimage.
omarrana said:
extract zimage using kitchen and rebuild with the modified zimage.
Click to expand...
Click to collapse
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
FarrukhQadri said:
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
Click to expand...
Click to collapse
thanks for answering

Categories

Resources