Soooo....I finally managed to compile a kernel with initramfs and all, resulting in a nice zImage and few little modules here and there.
Question: How do I flash the zImage AND the modules?
I tried flashing via odin a few times but that actually never got me anywhere past the recovery (and I couldn't even mount some partitions--though that was kinda my fault).
Also something I tried:
-take zimage
-rename to boot.img
-push it into a rom zip
-flash via recovery
-????
-FAIL
-all mighty download mode
And how come that nearly every rom and kernel come as boot.img?
Is there anything special about it in comparison to zImage?
ruleh said:
Soooo....I finally managed to compile a kernel with initramfs and all, resulting in a nice zImage and few little modules here and there.
Question: How do I flash the zImage AND the modules?
I tried flashing via odin a few times but that actually never got me anywhere past the recovery (and I couldn't even mount some partitions--though that was kinda my fault).
Also something I tried:
-take zimage
-rename to boot.img
-push it into a rom zip
-flash via recovery
-????
-FAIL
-all mighty download mode
And how come that nearly every rom and kernel come as boot.img?
Is there anything special about it in comparison to zImage?
Click to expand...
Click to collapse
have you tried flashing it with heimdall or using adb tools?
It happens--goodbye for now
I tried it with adb but to be honest, after 20min or so, I had no idea what I was doing.
I didn't think of heimdall. I should try that.
BUT....today, I dropped my phone. Screen broke and now its completely useless as a phone.
Related
Kernels, patches, ROMs, flashable via CWM app, why not?
Hey there to all devs. I always try to flash new stuff via the CWM app, which seems to be pretty handy, because I dont have to navigate all the folders with volume keys.
But all the app says, "no zImage" found.
So I compared to the stuff I get for my Galaxy3, there is the zImage appearence.
So, why all of you releasing the non zImage method? CWM should be able to flash both, right?
Next thing, maybe I want to flash a new kernel, direkt afterwards new ROM, how to do that in CWM-app? I can only flash one thing, then it flashes it, reboots. How to let the app flash a list of patches?
Wrong section!
.................
first of all wrong section..
about answer to question zImage is only kernel image..
boot.img contains much more than zImage... you can tweak things such as what to do such as some script run at startup , root , busybox and much more..
Sry guys,
I mentioned it for kernels in first sight, so thought this would be right place...
I use a modified CWM Manager from CF-Root-S5830. I can flash an update.zip or a kernel (boot.img renamed to zImage) directly! Only a bad updater-script (wrong mount commands, wrong assert) can make it fail.
Hello all.
Sorry if my question is trivial, but I haven't found any answer by searching the forum.
The problem is the following: I have a custom kernel zImage (which has some usb drivers enabled) and I am trying to find a way to flash it to Samsung Galaxy Tab 10.1 P7500.
I rooted the device, installed clockworkmod bootloader and able to install kernels prepared by other xda-developers like this one:
http://forum.xda-developers.com/showthread.php?t=1138167
But I can't get my head around the process of creation of zip package for ClockWorkMod. I haven't found any doc or manual how to do it.
I tried to replace zImage in .zip package from the above link and updated a hash value in Manifest file. But it didn't work.
the ClockWorkMod Recovery just writes:
-- Installing: /sdcard/kernel-updat.zip
Finding update package...
Opening update package...
Installing update...
Installation aborted.
---
Hope somebody faced similar problem.
Any tip will be hugely appreciated.
Andrew
Just replace the zimage without changing anything else. Or compress it in tar format and flash via odin!
Sent from my amazing 10.1 galaxy tab
still not working
Panos_dm said:
Just replace the zimage without changing anything else. Or compress it in tar format and flash via odin!
Click to expand...
Click to collapse
Unfortunately replacing zImage doesn't work. Even if I unzip and zip the original package without changing anything the ClockWorkMod says "Installation aborted" when I try to install zip I created. I have tried to use 3 different zip-programs with the same result.
About the odin approach. Do you have a link at hand that explains how to do it ?
Huge thanks.
Andrew
one solution to the problem
This is how I solved problem with "Installation aborted":
1) Take a working rom zip file with zImage from here
droidbasement.com/galaxy/kernels/2636/26/p4-ux/3.2/boot-cm_2636.4_p4_ux_hc32-oc-xtra-vfpv3-d16_fp-010912.zip
2) create folder called 'kernel' in the same directory where zip file is.
3) copy your own zImage to the 'kernel' folder
4) type
zip -r orig-boot-cm_2636.4_p4_ux_hc32-oc-xtra-vfpv3-d16_fp-010912.zip kernel/
This replaces zImage in the .zip archive with your own zImage
So basically you don't need to recreate zip file, you need to replace zImage in the existing zip.
flashing with ODIN
Panos_dm said:
Just replace the zimage without changing anything else. Or compress it in tar format and flash via odin!
Sent from my amazing 10.1 galaxy tab
Click to expand...
Click to collapse
Hey Panos_dm, do I need to tar zImage only or anything else ?
I tarred zImage and tried to flash it with odin, but failed.
<ID:0/006> Get PIT for mapping..
<ID:0/006> Firmware update start..
<ID:0/006> zImage
<ID:0/006> NAND Write Start!!
Do I need to have pit files for P7500 ?
I don't know what exactly goes non with odin, but I don't think that you need a pit file... I am no expert though. What I said about swapping kernels in a working zip, does the job for me. I want to try to flash stock recovery and kernel through this method, so I will be able to officially update to ics, without using Odin and increasing custom binary counter
Sent from my amazing 10.1 galaxy tab
Panos_dm said:
I don't know what exactly goes non with odin, but I don't think that you need a pit file... I am no expert though. What I said about swapping kernels in a working zip, does the job for me.
Click to expand...
Click to collapse
Thanks.
Can I ask you to post a link to zip and kernel sources that you used? It would be really helpful to me.
My kernel image that I built and inserted in working zip doesn't load. And I don't have a clue how to diagnose a problem since there is no access to boot log.
OK.. I used overcome rom and stock zimage and it worked. I haven't built a kernel myself though...
Sent from my amazing 10.1 galaxy tab
x-nordic said:
This is how I solved problem with "Installation aborted":
1) Take a working rom zip file with zImage from here
droidbasement.com/galaxy/kernels/2636/26/p4-ux/3.2/boot-cm_2636.4_p4_ux_hc32-oc-xtra-vfpv3-d16_fp-010912.zip
2) create folder called 'kernel' in the same directory where zip file is.
3) copy your own zImage to the 'kernel' folder
4) type
zip -r orig-boot-cm_2636.4_p4_ux_hc32-oc-xtra-vfpv3-d16_fp-010912.zip kernel/
This replaces zImage in the .zip archive with your own zImage
So basically you don't need to recreate zip file, you need to replace zImage in the existing zip.
Click to expand...
Click to collapse
I used this kernel image and flashed it to see what happens. It loads but the screen is scrambled. I followed your step to replace my zImage, but I was unable to flash the replacement. I used recovery mode to do it.
Any other solutions or tips to flash a custom zImage on P7510?
hsnm said:
I used this kernel image and flashed it to see what happens. It loads but the screen is scrambled. I followed your step to replace my zImage, but I was unable to flash the replacement. I used recovery mode to do it.
Any other solutions or tips to flash a custom zImage on P7510?
Click to expand...
Click to collapse
Someone manage to find a solutions ?
I have a retail galaxy tab 10.1 16gb and was wondering how do I flash the newest clockwork recovery touch .img? From what I understand we don't have access to fastboot and doing the method on terminal emulator doesn't work either. Is their another option to do it without having to go to rom manager and purchasing the touch recovery
You could tar it and flash the new tar with Odin. Also, you can find cwm in pershoot's blog and flash it with Odin, sans the "tar it" part.
http://droidbasement.com/db-blog/?p=2487
Well koush finally released a new version so trying to get the touch version of it installed.
I'm using a CM9 ROM, it has ROM Manager included and I can flash cwm touch without problem and free of charge (cwm touch works well).
Anyway, I made a .tar.md5 from the recovery.img of cwm touch and tried to flash it via Odin, but Odin crashes when is doing the analysis of the file. If you want I can upload it, maybe it works for you (the error is non descriptive, so I don't know what's wrong).
I think you might have to rename the touch img to recovery.img but thats what was my next plan of action. I have Rom Manager premium and yet I don't find any way to select the img itself besides selecting I want to pay for it.
coldconfession13 said:
I think you might have to rename the touch img to recovery.img but thats what was my next plan of action.
Click to expand...
Click to collapse
Do you mean for the .tar.md5 for Odin? Because i did.
Edit: Damn! I don't know what I did wrong, maybe the download was bad =/ but I tried again and now works fine for me. You can flash this with Odin: recovery-clockwork-touch-5.8.3.1-p4wifi
Thank you for that link to the odin recovery!
As the title state, I have search in the internet and found lots of tutorial about flashing a .tar framework to the phone.
However, the ROM that I downloaded from xda was just a .zip which contains an .img kernel.
How to flash the .img kernel to my phone then install the zip from SD card?
What do you actually want to do? If you want to root your phone, download a kernel file (there are threads about it), and flash it with Odin.
If you want to flash a rom, you have to install a .zip file through CWM, no other kind of files.
If you want to flash a kernel (and you have a rooted device), you also have to flash a .zip file through CWM.
Thanks for your reply. I know the steps of installing a new ROM. However, I used to boot the phone into flash mode and use Flashtool to flash the kernel which extension is .img. But for S2 it doesn't contain flash mode and seems I can't use flashtool to flash the kernel. If I can use Odin to flash a kernel with .img extension rather then a .tar extension? Also when I boot my S2 into download mode and connect to my computer, Odin still cannot detect the phone. If there is any "download mode" driver that I need to install or just use the normal Samsung driver ? Thanks a lot.
PS: Since the debug mode is working when I connect my phone to the computer I am sure I have installed a driver.
Donnie Sins said:
What do you actually want to do? If you want to root your phone, download a kernel file (there are threads about it), and flash it with Odin.
If you want to flash a rom, you have to install a .zip file through CWM, no other kind of files.
If you want to flash a kernel (and you have a rooted device), you also have to flash a .zip file through CWM.
Click to expand...
Click to collapse
So I assume your phone isn't rooted yet, right?
For using Odin: there are plenty of guides in the General Section, or even on google. But to actually use it, you have to install Samsung Kies first, to get the correct drivers.
After it, you can uninstall it, because otherwise Odin won't work (but that's all written in the guides).
When your phone is rooted, you can simply flash a new kernel (.zip) through CWM.
Hello!
Sorry if this thread looks repetitive, but I'm new on this kind of thing and just want to make sure all goes right with my Xperia U! Tomorrow will complete one week of reading, researching and learning about ROMs, flashing, kernel, recovery, etc.
Can someone please just confirm if my steps are correct?
First of all, I have just unlocked the bootloader. Tryied to root too, but got some problems (ST25a, B154 stock kernel x.x) and later found root wasn't necessary as custom kernels already comes pre-rooted.
I want to use this Stock ROM:
http://forum.xda-developers.com/xperia-u/u-development/rom-stock-jellybean-4-1-2-v6-t2284394
Wich tells me I need to flash this kernel:
http://forum.xda-developers.com/xperia-u/u-development/kernel-experimental-v12-t2326515
Here are the steps I think I have to do:
- Move both .zips (kernel and ROM) to SD card
- On PC, extract the boot.img from KERNEL .zip file
- Flash boot.img with flashtool
- Reboot in CWM recovery mode (provided by the boot.img, i guess)
- Full wipe (cache, data, dalvik-cache)
- Flash KERNEL .zip via CWM
- Flash ROM .zip via CWM
- Reboot
Is this right? I really got confused when I saw every .zip has a boot.img on it x.x
Yes,Evert step is correct...But when you boot the phone in recovery,you don't need to flash the kernel zip...You already flashed it,don't need to do it again!
ilysomma said:
Yes,Evert step is correct...But when you boot the phone in recovery,you don't need to flash the kernel zip...You already flashed it,don't need to do it again!
Click to expand...
Click to collapse
Really? I don't understand exactly what each files in that .zip do, but, boot.img ins't just a way to boot? The kernel will be installed with just that? What about the other files in that .zip? Is it for the case of already having recovery mode?
PS: sorry about my bad english
Edit: Do I have to move the .zip file to SD-card without the boot.img? Or I just leave it there?
Ok, this is it. I'll try this proccess today.