Anybody know how to extract the kernel from boot.img? - Fascinate Q&A, Help & Troubleshooting

I've been searching all over for a way to extract the kernel from the boot.img and I'm coming up empty-handed. Every method I've tried always results in errors. I've came to the conclusion through research that the Samsung boot.img is different than most other devices' boot.img. I know that there are ways to flash a kernel without decompiling the boot.img, but I am trying to figure this out as a learning experience, so please don't give me instructions on how to flash a different kernel.
Does anyone have experience decompiling the Samsung Fascinate boot.img? Can you post instructions? Any help would be greatly appreciated.

i was under the impression that the boot.img was the kernel. but if you wanted to see inside it i would think you could mount it like any other image, i would try opening it in ultraiso, that should show any files in it and allow it to be extracted. but this is all speculation.

If no body beats me to it, I can upload some Linux scripts that will work for you! In the morning though I got to get some rest... and yes Samsung boot.img are different than others
Sent from my SGH-I897 using xda premium

boot.img-tools

b-eock said:
boot.img-tools
Click to expand...
Click to collapse
This is what I was looking for. Thanks again for the link! I appreciate it.

Hmm, hate to resurect an old thread, but...
Anyone still have those scripts?

Related

[Q] 2.1 Leak Extract

For the 2.1 my Mac will not extract the 2.1.zip it just becomes PB(i forgot).zip.cpgz or something how can I see the contents to "customize" the leak and if i try to re-apply it will it let me
iloveandroid said:
For the 2.1 my Mac will not extract the 2.1.zip it just becomes PB(i forgot).zip.cpgz or something how can I see the contents to "customize" the leak and if i try to re-apply it will it let me
Click to expand...
Click to collapse
Not sure about extracting it, but if you try to manipulate any files and re-flash, I believe it will break the rom signature and the phone will refuse to flash it. I'm sure some other folks here can give a more comprehensive technical answer, but that's what I remember from reading through the threads here.
false_apology said:
Not sure about extracting it, but if you try to manipulate any files and re-flash, I believe it will break the rom signature and the phone will refuse to flash it. I'm sure some other folks here can give a more comprehensive technical answer, but that's what I remember from reading through the threads here.
Click to expand...
Click to collapse
I believe you need to have root to use a custom rom.
afoulke said:
I believe you need to have root to use a custom rom.
Click to expand...
Click to collapse
yes u need root to flash a custom rom signed with test keys. but idk if hes wanting to unyaffs or extract the image files for building a custom rom or not. what sux is i know nothing about Mac software, so i can be no help here. except to offer him to dual bot ubuntu or another linux distro. linux in my opinion is better for this sort of dev work anyhow

boot.img

can someone send me the boot.img for this phone ?
djkdawg said:
can someone send me the boot.img for this phone ?
Click to expand...
Click to collapse
There isn't one yet. This is directly from Koush: "The boot image is not being backed up or restored currently. As far as I can tell, there is no way to flash the boot image, other than through Odin. So without a way for me to flash it, there is no way for me to restore it. So there's no point backing it up, heh."
thanks for the info, thats sucks i wanted to port this lovely phone
djkdawg said:
thanks for the info, thats sucks i wanted to port this lovely phone
Click to expand...
Click to collapse
Me too thats why I asked Koush lol
the3dman13 said:
Me too thats why I asked Koush lol
Click to expand...
Click to collapse
Samsung setups for Android are quite different from HTC's where you have your boot.img containing the ramdisk and kernel here we have the recovery/kernel in one and a bootloader that no one has been able to access yet. HTC's are much more logical in their setup.
Simple answer is to flash it with odin? until a other way is found?
Sounds simple to me. Ill talk to him.
This was Koush's final response to me regarding this:
"basically you need to build a full kernel and pack an initramfs by using the proprietary binaries that come with the phone. It is possible to reverse engineer and do this. You can port another rom still. You'll just need to work around stuff that you can't do unless you are using a stock boot image."
damn...
10chars.

[Q] nandroid backup into a flashable rom?

First, I'm not a developer, I've never made a rom now do I know how. Not that I can't learn. I'm just broke and have a horrible computer its so bad I haven't used it since I got my evo 4G. Anyway I'm not new to flashing, modding or anything to do with my evo. What I like to do is flash a rom as a base then find other tweaks and mods and flash them. remove things the developer put in and maybe replace them with other thing I find from other roms. Eventually I have a custom "rom" mostly unrecognizable from my original base. My question is, is it possible to nand my "rom" and turn it into a flashable rom to share with the community?
caddermeran said:
First, I'm not a developer, I've never made a rom now do I know how. Not that I can't learn. I'm just broke and have a horrible computer its so bad I haven't used it since I got my evo 4G. Anyway I'm not new to flashing, modding or anything to do with my evo. What I like to do is flash a rom as a base then find other tweaks and mods and flash them. remove things the developer put in and maybe replace them with other thing I find from other roms. Eventually I have a custom "rom" mostly unrecognizable from my original base. My question is, is it possible to nand my "rom" and turn it into a flashable rom to share with the community?
Click to expand...
Click to collapse
I believe you can use the latest version of clockwork mod to create a flashable update.zip of your current ROM that you could then share with people.
Edit: Option can be found under backup and restore options and is called "create image zip"
Sent from my SCH-I535 using xda premium
What about Ra? I guess I can check myself. If I rename the zip, would you still be able to flash it? Would it be considered a rom? Would I post it in developers section? With proper credit of course.
caddermeran said:
What about Ra? I guess I can check myself. If I rename the zip, would you still be able to flash it? Would it be considered a rom? Would I post it in developers section? With proper credit of course.
Click to expand...
Click to collapse
Amon Ra (I assume thats what you mean by Ra) is pretty old, I think its a CWM (Specifically clockwork mod 6 and above) only feature. Yes I'm pretty sure if your just renaming the zip and not modifying any thing else once you create the update.zip you should be able to flash it just fine. And yes it would be considered a ROM more of a cooked ROM since you didn't compile it from source, but still a ROM non the less. And yes since it's a ROM post you would post it in the development section (Not Original Development Section though), and as always like you mentioned proper credit is important :good:.
Thanks for the information. I'm using smelkus amon ra, I heard cwm didn't wipe properly. Has that issue been fixed? I'm gonna work on cooking my rom polish it up a bit and post it soon Thanks again for the information, gonna put you in my credits
caddermeran said:
Thanks for the information. I'm using smelkus amon ra, I heard cwm didn't wipe properly. Has that issue been fixed? I'm gonna work on cooking my rom polish it up a bit and post it soon Thanks again for the information, gonna put you in my credits
Click to expand...
Click to collapse
I'm pretty sure this issue has been fixed, besides when you want to whipe something it's best to do whipe cache or data or whatever else your whipping at least 2 times just to be on the safe side. And thank you for putting me in the credits make sure to send me the link when you post the link would love to check it out :thumbup:
Sent from my SCH-I535 using xda premium
I'm gonna have to post elsewhere a few more time before I'll even be allowed to post in the development section. Sucks, that's the only section I use. This is the first time I've had any real questions.
caddermeran said:
I'm gonna have to post elsewhere a few more time before I'll even be allowed to post in the development section. Sucks, that's the only section I use. This is the first time I've had any real questions.
Click to expand...
Click to collapse
The easiest and most legitimate way to get enough posts if to look through the the various Q & A threads and try and answer some peoples questions, or you can look through topics that interest you and comment on them in some way that adds to the discussion.
Thanks for the tip. That's what I was going to to do. Thanks again for the info.
So I finally got my rom how I want it, I flash the latest cwm, and the option to create a flashable zip is not available for the evo 4g. Any other ideas?
caddermeran said:
So I finally got my rom how I want it, I flash the latest cwm, and the option to create a flashable zip is not available for the evo 4g. Any other ideas?
Click to expand...
Click to collapse
Try doing a data dump (dd) of all the partitions on your device using commands along the lines of: (Can be done from ADB shell or terminal emulator)
$ su
# cat /proc/mtd
Also try "mounts" if that doesn't work
Then based on that output you dump the partitions using the dd command (Following is an example do not copy verbatim).
# dd if=/dev/block/mmcblk0p9 of=/mtd/sdcard/system.img
Then take a meta-inf folder from a working ROM for your device, extract the contents of the system.img file so you have a system folder, and the boot.img once you have these three files zip them all up, and sign the Rom then flash in recovery.
Another suggestion, would be to just take the stock Rom or even Cyanogenmod for your phone and modify that using notepad++, Gimp, and 7-zip (PM me if you want some help with this).
Finally, you could look into compiling AOSP or Cyanogenmod from source for your device.
Sent from my SCH-I535 using xda premium

Create a flashable zip of a HTC One S RUU.

Hey Guys. I'm not a developer. In no way. But I want to get one. So I've extracted the Rom.zip of the RUU. What need to be done to make this flashable ? Thanks a lot. I won't share it with others because there's already a stock Rom for our phone. But this should be a little step in a long way to get a dev.
sGollSv said:
Hey Guys. I'm not a developer. In no way. But I want to get one. So I've extracted the Rom.zip of the RUU. What need to be done to make this flashable ? Thanks a lot. I won't share it with others because there's already a stock Rom for our phone. But this should be a little step in a long way to get a dev.
Click to expand...
Click to collapse
You have to run the RUU from the exe to restore it. However if you wanted it for a backup you could install it through the EXE then do a nandroid of it afterwards. If you want to make a flashable zip you could use Rom Kitchen. You can use the rom.zip in that. Good luck I've been messing around with it trying to make a basic rom, cant get it to boot, lol. Steep learning curve.
bandit97 said:
You have to run the RUU from the exe to restore it. However if you wanted it for a backup you could install it through the EXE then do a nandroid of it afterwards. If you want to make a flashable zip you could use Rom Kitchen. You can use the rom.zip in that. Good luck I've been messing around with it trying to make a basic rom, cant get it to boot, lol. Steep learning curve.
Click to expand...
Click to collapse
Thanks. I already know about nandroid but I want to learn developing. I know that it's difficult but I will try it!
sGollSv said:
Thanks. I already know about nandroid but I want to learn developing. I know that it's difficult but I will try it!
Click to expand...
Click to collapse
Maybe we could learn together and try and build a decent rom. You know help each other out, I have experience running game servers and editing /creating scripts for those. I also have a little xml and java. Not much though. I have a good understanding of the basics, but I just got my first droid a few months ago, Id like to make roms if I can. Peace.
bandit97 said:
Maybe we could learn together and try and build a decent rom. You know help each other out, I have experience running game servers and editing /creating scripts for those. I also have a little xml and java. Not much though. I have a good understanding of the basics, but I just got my first droid a few months ago, Id like to make roms if I can. Peace.
Click to expand...
Click to collapse
Sounds great! You can pm me!
Sent from my HTC One S using xda app-developers app

Boot image for J8110 needed

Well, my boot image is jacked.. trying to use the images in the twrp threads. I can't boot into the Lineage at this point, and I think I can get it working if I just get the original boot.img. I am looking into extracting it from an image somehow, but if someone has it handy it'd be much appreciated!
Read the first Post and You will get all You need. Basic Tools if You want to run AOSP besides ADB/Fastboot. You can get all You need on XDA...
https://forum.xda-developers.com/xp...isk-v20-3-patched-boot-image-android-t4033547
Miustone said:
Read the first Post and You will get all You need. Basic Tools if You want to run AOSP besides ADB/Fastboot. You can get all You need on XDA...
https://forum.xda-developers.com/xp...isk-v20-3-patched-boot-image-android-t4033547
Click to expand...
Click to collapse
Yep, thanks for your help in the other thread!

Categories

Resources