[Q] Repacking kernel.elf help - Xperia Z3 Q&A, Help & Troubleshooting

Hey guys,
I am trying to repack the stock kernel as I have made a change to the ramdisk (ro.secure=0) I wasn't able to split the boot.img using split_bootimg.pl as it could not find android magic in the header so used flashtool to extract the kernel.elf file which gave me 3 files.
These were "kernel.elf.Image" "kernel.elf.ramdisk.gz" and "kernel.elf.3"
I have managed to extract and make the changes to the ramdisk and recompile it but im stuck at merging these 3 files back into the flashable kernel.elf file any help would be much appreciated

Sonic5317 said:
Hey guys,
I am trying to repack the stock kernel as I have made a change to the ramdisk (ro.secure=0) I wasn't able to split the boot.img using split_bootimg.pl as it could not find android magic in the header so used flashtool to extract the kernel.elf file which gave me 3 files.
These were "kernel.elf.Image" "kernel.elf.ramdisk.gz" and "kernel.elf.3"
I have managed to extract and make the changes to the ramdisk and recompile it but im stuck at merging these 3 files back into the flashable kernel.elf file any help would be much appreciated
Click to expand...
Click to collapse
Maybe you should PM @DooMLoRD
I'm sure he will help you. He will surely reply to your message when he'll have some time.

Related

[Q]Converting . tar to .zip

Hii there
this is stupid but our phones update.zips have only META-INF , System & zImage or boot.img & when i extract the tar i get cache.rfs,datafs.rfs,factoryfs,rfs,logo.png,modem. bin,& zImage
out of which i can open only logo.png on windows
& when i take a CWM BKP
i get
.android_secure.vfat.tar
boot.img
cache.rfs.tar
data.ext4.tar
nandroid.md5.md5
sd-ext.ext4.tar
system.ext4.tar
so how do i get only META-INF & System & boot or zImage from there
PS: I m a noob
Kalp99670 said:
Hii there
this is stupid but our phones update.zips have only META-INF , System & zImage or boot.img & when i extract the tar i get cache.rfs,datafs.rfs,factoryfs,rfs,logo.png,modem. bin,& zImage
out of which i can open only logo.png on windows
& when i take a CWM BKP
i get
.android_secure.vfat.tar
boot.img
cache.rfs.tar
data.ext4.tar
nandroid.md5.md5
sd-ext.ext4.tar
system.ext4.tar
so how do i get only META-INF & System & boot or zImage from there
PS: I m a noob
Click to expand...
Click to collapse
Same question. Any support?
I'm a noob as well. Every backup i take of my phone, comes as .tar files....
please help!
@op I thought you lost your phone!!
Sent from my GT-I5800 using Tapatalk 2
Kalp99670 said:
Hii there
this is stupid but our phones update.zips have only META-INF , System & zImage or boot.img & when i extract the tar i get cache.rfs,datafs.rfs,factoryfs,rfs,logo.png,modem. bin,& zImage
out of which i can open only logo.png on windows
& when i take a CWM BKP
i get
.android_secure.vfat.tar
boot.img
cache.rfs.tar
data.ext4.tar
nandroid.md5.md5
sd-ext.ext4.tar
system.ext4.tar
so how do i get only META-INF & System & boot or zImage from there
PS: I m a noob
Click to expand...
Click to collapse
you can't get update.zip this way....if you want flashable
zip you need to use rom cooker tool with pc and pull whole system to pc then rom cooker will make an zip as you want above...
da.cappo said:
Same question. Any support?
I'm a noob as well. Every backup i take of my phone, comes as .tar files....
please help!
Click to expand...
Click to collapse
you both can restore from your nand backups with Titanium Backup....try it it's great
Sent fom my S-II running >>SlimBean build 5 OFFICIAL << powered with DorimanX kernel v. >>9.16<<
thanks a lot!!!
da.cappo said:
thanks a lot!!!
Click to expand...
Click to collapse
anytime ma8
Sent fom my S-II running >>SlimBean build 5 OFFICIAL << powered with DorimanX kernel v. >>9.16<<

Help Kernel Xperia E !

Hello, can you help me?
How to decompile a kernel.elf?
How recompile one with only zImage, RPM.bin and ramdisk.
Not have bootimg.cfg
How extract boot.img from your phone? What is partition?
Helpppp !
Wrong section bro, this should be in Q&A
this is Q&A right ?
DanielFlorin said:
Hello, can you help me?
How to decompile a kernel.elf?
How recompile one with only zImage, RPM.bin and ramdisk.
Not have bootimg.cfg
How extract boot.img from your phone? What is partition?
Helpppp !
Click to expand...
Click to collapse
ask nsdcars5
Grimlock007 said:
ask nsdcars5
Click to expand...
Click to collapse
Who? Me?
@DanielFlorin You want to decompile or recompile? To decompile, use Flashtool. Go to Tools > Extractors > Elf. You'll get a ramdisk, a bootcmd and a boot image.
If you want to add CWM or TWRP, change the ramdisk with whatever kernel you want.
If you want to add overclock, build a new kernel boot image (you'll need Linux for that). Follow this guide: http://forum.xda-developers.com/showpost.php?p=50651922&postcount=46, but change msm7627a to msm7627a-perf everywhere in the guide.
Now, to recompile, rename the ramdisk file to ramdisk.cpio.gz and the boot image you compiled to zImage. Now on a Linux machine, get this script: http://forum.xda-developers.com/xperia-j-e/orig-development/tools-build-kernel-elf-ics-t2532724
(If you don't know how to, just run this command:
Code:
git clone <link>
where <link> is the GitHub link in the thread)

Boot.img Repack

Friends Please Help Me To Repack Boot.img Please!! i Try Many But Didn't Found Zimage I Go To Port Diffrent Chipset Rom
here u go!
Kishan Mahadevwala said:
Friends Please Help Me To Repack Boot.img Please!! i Try Many But Didn't Found Zimage I Go To Port Diffrent Chipset Rom
Click to expand...
Click to collapse
follow this guide and use this tool. ( http://forum.xda-developers.com/showpost.php?p=54644719 )
I hope you will success.
don't forget to hit thanks.
Kishan Mahadevwala said:
Friends Please Help Me To Repack Boot.img Please!! i Try Many But Didn't Found Zimage I Go To Port Diffrent Chipset Rom
Click to expand...
Click to collapse
Mostly we want to update zImage in boot.img. so suggest you not to go for unpack and repack. just update your custom zImage into defualt boot.img by running this command:
#abootimg -u boot.img -k zImage.
Then try to flash this boot.img in your phone. If you are r changing initrd.img also then you can go for unpacking and repacking
but always take backup of your default boot.img, because if anything gone bad with this custom boot.img then your defuault will help to bring back your phone.
Find
I Already Find Thank You For Your Help I Already Do With Kitchen

Need Help Zipping ROM

I am making an customized version of Stock ROM so I decompiled the 4 sparse files and did the modifications I wanted to,so now I have so make it a Flashable Zip to install it For that process I have to Make the System in System.new.DAT like CM or System.IMG or I can push the System directory directly in the Zip to sign.
Any attempt to help will be appreciated.

Request help creating a file system.img

Hello all, I want to make a custom ROOM STOCK for Samsung devices so that it can burn in odin but all the tools (Tool Unpack Repack DAT + IMG) that create the file system.img require the file_contexts that I do not know how to get it (this is Android 4.1.2. File inside the boot)
I realized that I use the make_ext4fs file only because I do not know how it can be used by anyone who can help. I will thank him very much.::

Categories

Resources