Kernel compilation for Galaxy Ace - Galaxy Ace S5830 General

Guys,
Before I raise some expectations, let me clarify that I am not an expert developer.
I was trying to compile the kernel for SGA and was using the source from http://opensource.samsung.com/ ( Samsung open source portal )
I had used the instructions given in the README and was using g++ from http://www.codesourcery.com/sgpp/lite/arm/portal/release1592
When I try to compile the kernel ( stock settings ), it dumps out zImage of around 3Mb.
When I try to flash it using SGS kernel flasher (https://market.android.com/details?id=neldar.sgs.kernel.flasher&feature=search_result) , it says file too big.
Any ideas where I might be going wrong.
Any help would be appreciated

Does the sgs flasher even work with the ace?
Sent from my GT-S5830 using XDA App

The phones mentioned under supported were Samsung phones like Galaxy S. Captivate, Fascinate.
That is why, I thought I will give it a try. I have posted a query on SGS flasher thread and will get a reply soon.
Anyways,
Is there a way to know what is the limit on size of zImage supported by the device?
What are the other alternatives available for flashing this kernel ? Odin ?
Any way to check the sanity of this compiled kernel ( emulator )
Thanks in advance

you can't flash zImage for galaxy ace with SGS kernel flasher.
the step that you must to do is:
-dump boot.img from phone or grab from official firmware .tar.md5.
-unpack the boot.img
-replace the zImage (kernel) and keep the ramdisk
-repack boot.img
-make tar.md5
-flash with odin
Sent from my Ideos

Thanks a lot for the info !!
Let me try it out..

sahilkhurana said:
Let me try it out..
Click to expand...
Click to collapse
And? Did you success flashing kernel?

tj_style said:
you can't flash zImage for galaxy ace with SGS kernel flasher.
the step that you must to do is:
-dump boot.img from phone or grab from official firmware .tar.md5.
-unpack the boot.img
-replace the zImage (kernel) and keep the ramdisk
-repack boot.img
-make tar.md5
-flash with odin
Sent from my Ideos
Click to expand...
Click to collapse
how did to do this? unpack and packing? any tutorial?

Related

How to preroot fimeware?

Could anyone please tell me how to preroot firmware for an xperia u? There isnt much support for it here and I thought it would be best if I do it myself when new updates comes out.
If you want to flash prerooted firmware you need to have unlocked bootloader.
If you have locked bootloader wait until root solution appears.
For more info about bootloader go here -http://forum.xda-developers.com/showthread.php?t=1527159-
Hi all,
download link for 184 kernel with autoroot and recovery: dl.dropbox.com/u/1562739/kernel.elf
credits to KeiranFTW,nickholtus, K900, championswimmer
thanks for that but could you also explain how you create a rooted kernal? I already have bootloader unlocked.
you must unpack the kernel, edit the ramdisk and repack it. For do that can you use the championswimmer kitchen
sorry if im being annoying, but what part exactly do I edit?
You can extract the ramdisk from a kernel with root and recovery and repack that ramdisk with new kernel
thanks will try that today when I get back from work.
Is this a rooted kernel? I have the superuser app right there but all requests got denied no matter I set it to allow or prompt requests, it always get denied!!
Sent from my ST25i using xda app-developers app
Why this topic in dev section?
Sent from my ST25i using xda app-developers app
This should explain how to preroot a firmware:
http://forum.xda-developers.com/showpost.php?p=29073603&postcount=12
I dont understand this parts :S
Unzip the ftf and unpack the boot image together with to kernel
- Edit /default.prop and set ro.secure=0
- Repack the root initramfs file system
I have extracted kernel.sin from the ftf and now what?
soldiers33 said:
I dont understand this parts :S
Unzip the ftf and unpack the boot image together with to kernel
- Edit /default.prop and set ro.secure=0
- Repack the root initramfs file system
I have extracted kernel.sin from the ftf and now what?
Click to expand...
Click to collapse
Use this http://forum.xda-developers.com/showthread.php?t=1262656
chmoded mount system
soldiers33 said:
Could anyone please tell me how to preroot firmware for an xperia u? There isnt much support for it here and I thought it would be best if I do it myself when new updates comes out.
Click to expand...
Click to collapse
I have modfied the system/bin and xbin but I can reflash it :/
HTML:
http://forum.xda-developers.com/showthread.php?t=1796869
HTML:
http://forum.xda-developers.com/showthread.php?t=1774480
No Development here!:silly:
THREAD CLOSED.

[Q] Flash Stock Kernel

Hi guys,
I'm new here, sorry if this isn't the right place...
I'm a GS3 owner and just flashed the ROM I9300XXDLJ5_I9300ODDDLI7_INU.
I would like to flash the SpeedMod kernel but before doing that I need to know how do I install the stock kernel if needed.
Can you point to the right direction?
Thank you
If you make a backup, resorting the backup will also restore the kernel
I did, but I don't want to restore the whole thing... all I want is to restore the kernel if needed.
Tell me, extract boot.img from India ROM and make a new .tar with this single file will work?
Thank you
McBacker said:
I did, but I don't want to restore the whole thing... all I want is to restore the kernel if needed.
Tell me, extract boot.img from India ROM and make a new .tar with this single file will work?
Thank you
Click to expand...
Click to collapse
Try to search forum or Google to find your stock kernels flashable zip or tar . Download it.. it will works. But pay attention to ICS / JB difference.. flash right kernel.
Sent from my GT-I9300 using xda premium
you could also extract it from the ROM's file and flash it I guess.
Thank you guys.
Extracted boot.img from Sammy Indian Rom and made a new .Tar using S3 Toolkit.
Regards

Install cmw recovery using ODIN

Hi,
I have a ATT Samsung Galaxy S2 with 4.0.4((recently updated). I used Exynos Abuse to root my phone. I would like to install cmw recovery and try a custom rom.
I tried to follow the instruction on cyanogen mod but didn't help me much. i installed heimdall but the clockwork mod package doesn't have a zimage. so when i try the command heimdall install --kernal zimage, it says zimage cannot be found!
Is there any other way I can install CMW ? using ODIN ?
username1988 said:
Hi,
I have a ATT Samsung Galaxy S2 with 4.0.4((recently updated). I used Exynos Abuse to root my phone. I would like to install cmw recovery and try a custom rom.
I tried to follow the instruction on cyanogen mod but didn't help me much. i installed heimdall but the clockwork mod package doesn't have a zimage. so when i try the command heimdall install --kernal zimage, it says zimage cannot be found!
Is there any other way I can install CMW ? using ODIN ?
Click to expand...
Click to collapse
Have you tried Mobile Odin. You install it on your phone. I believe it has the capability to flash zipped files as well as tar files.
I'm not familiar with Cyanogen Mod, but you could/should use a kernel compatible with stock 4.0.4 in case you try to boot the phone after installing it. So I would suggest using Siyah. Download the CWM flashable zip package, open it with an archiving program, and extract the zimage. Then use that with either Heimdall or Mobile Odin.
creepyncrawly said:
I'm not familiar with Cyanogen Mod, but you could/should use a kernel compatible with stock 4.0.4 in case you try to boot the phone after installing it. So I would suggest using Siyah. Download the CWM flashable zip package, open it with an archiving program, and extract the zimage. Then use that with either Heimdall or Mobile Odin.
Click to expand...
Click to collapse
Do I need to install a kernel ? Can't i just install CMW ?
username1988 said:
Do I need to install a kernel ? Can't i just install CMW ?
Click to expand...
Click to collapse
CWM is in the kernel
Sent from my GS4 running CM11 Kandy Kane
username1988 said:
Do I need to install a kernel ? Can't i just install CMW ?
Click to expand...
Click to collapse
As Ninja says, on the I777 ClockworkMod Recovery is "baked" into the kernel. If you try to install CWM separately, it will almost certainly brick your phone. It seems that in some cases, it is a true brick.
creepyncrawly said:
As Ninja says, on the I777 ClockworkMod Recovery is "baked" into the kernel. If you try to install CWM separately, it will almost certainly brick your phone. It seems that in some cases, it is a true brick.
Click to expand...
Click to collapse
I currently have the stock 4.0.4 on my phn. I rooted my phone. Which kernel should I use ? Siyah kernel or Entropy ? Can you also provide me a link if possible for the kernel . Thx.
username1988 said:
I currently have the stock 4.0.4 on my phn. I rooted my phone. Which kernel should I use ? Siyah kernel or Entropy ? Can you also provide me a link if possible for the kernel . Thx.
Click to expand...
Click to collapse
Use the most current Siyah. There is no Entropy kernel for ICS. Find the Siyah thread in the original development section of this forum.
If you continue to have issues, remember that before asking, you should try searching and reading for a few hours. Or as long as it takes. There is a sticky clearly stating not to use ROM manager, as it doesn't work properly with our phone. As well as many other helpful tips and instructions. Good luck
username1988 said:
I currently have the stock 4.0.4 on my phn. I rooted my phone. Which kernel should I use ? Siyah kernel or Entropy ? Can you also provide me a link if possible for the kernel . Thx.
Click to expand...
Click to collapse
I have the same situation with ATT stock 4.0.4.
Just to help you out. This is what you need to do and use (already suggested by almost everyone here that responded). I am just pointing you tto the right location.
NOTE: Read all the instruction and make sure that you understand before you start.
1. Download and install Mobile Odin Lite from this thread. Or you can buy Mobile Odin Pro from the Play Store. (your choice)
2. Download [KERNEL] Siyah - JELLYBEAN - ICS [v4.3.3] "One kernel to rule them all!" put it in the root of your SD and flash it using Mobile Odin. If you use Mobile Odin Lite you will have to extract the file.
As also stated by Phalanx7621, "you should try searching and reading for a few hours." You should do that before you start. I took almost a week reading and looking at other posts before I even got the courage to flash this kernel.

[Q] Need Cynogenmod 10.1 stock kernel for S3

Please give me stock kernel for CM10.1. which came with cm10.1
I faced bad battery life on siyah kernel
nascar895 said:
Please give me stock kernel for CM10.1. which came with cm10.1
I faced bad battery life on siyah kernel
Click to expand...
Click to collapse
reflash CM10.1
If you're not using CM10.1, extract the boot.img (kernel) from cm10.1 and put it in a flashable zip / tar for CWM / Mobile odin
Or download one of the CM10 kernel variants such asn yank or Temasek
rootSU said:
reflash CM10.1
If you're not using CM10.1, extract the boot.img (kernel) from cm10.1 and put it in a flashable zip / tar for CWM / Mobile odin
Or download one of the CM10 kernel variants such asn yank or Temasek
Click to expand...
Click to collapse
Actully I cant reflash cm10.1 i have installed many apps and did many customization. Are there any download link to the kernel? I tried converting boot.img to tar but odin stucks in flashing the kernel.
yes, you can reflash it. just don't wipe data
nascar895 said:
Actully I cant reflash cm10.1 i have installed many apps and did many customization. Are there any download link to the kernel? I tried converting boot.img to tar but odin stucks in flashing the kernel.
Click to expand...
Click to collapse
Just drag the boot.img into an existing flashable .tar or .zip for a kernel and replace the existing file. Usually, you should take nandroids before flashing things.

help for SGP YP-GI1 CW/XEG

hello, i post another message, i need some help please.
my SGP 4.2 YP-GI1 CW/XEG is locked on samsung logo with warning panel. I flash the CWM one time and i try to flash rom's and CM7 but all are failed.
After multiple flash i loose CWM and now i can,t reflash it !! WHY??
i think my problem's cames from a bad PIT file, this is the only file i can flash with odin and succès.(YP-G1Intl.pit) and i don't know if it is the good one for my player.
If someone have and idea for help me...... please.
taburetloic said:
hello, i post another message, i need some help please.
my SGP 4.2 YP-GI1 CW/XEG is locked on samsung logo with warning panel. I flash the CWM one time and i try to flash rom's and CM7 but all are failed.
After multiple flash i loose CWM and now i can,t reflash it !! WHY??
i think my problem's cames from a bad PIT file, this is the only file i can flash with odin and succès.(YP-G1Intl.pit) and i don't know if it is the good one for my player.
If someone have and idea for help me...... please.
Click to expand...
Click to collapse
You should boot back into download mode, flash the PIT file, then the CWM kernel and if you're unable to flash any ROM with CWM, you should flash the stock ROM with ODIN.
taburetloic said:
hello, i post another message, i need some help please.
my SGP 4.2 YP-GI1 CW/XEG is locked on samsung logo with warning panel. I flash the CWM one time and i try to flash rom's and CM7 but all are failed.
After multiple flash i loose CWM and now i can,t reflash it !! WHY??
i think my problem's cames from a bad PIT file, this is the only file i can flash with odin and succès.(YP-G1Intl.pit) and i don't know if it is the good one for my player.
If someone have and idea for help me...... please.
Click to expand...
Click to collapse
drakonizer said:
You should boot back into download mode, flash the PIT file, then the CWM kernel and if you're unable to flash any ROM with CWM, you should flash the stock ROM with ODIN. And yes, the PIT file you have is appropriate for your player
Click to expand...
Click to collapse
As drakonizer said, yes you should be able to get into download mode. The problem comes indeed from the fact that you're using a wrong pitfile (YP-G1 is SGP 4.0 whereas YP-GI1 is SGP 4.2) Maybe retrying with the good pit file should do the trick.
zaclimon said:
As drakonizer said, yes you should be able to get into download mode. The problem comes indeed from the fact that you're using a wrong pitfile (YP-G1 is SGP 4.0 whereas YP-GI1 is SGP 4.2) Maybe retrying with the good pit file should do the trick.
Click to expand...
Click to collapse
THANKS @zaclimon ! I am so sorry I misread YPG1 as YPGI1, please don't try to use that!
Here is a pit file you can use
http://forum.xda-developers.com/attachment.php?attachmentid=1324378&d=1347565906
...there is no PIT file that is uploaded for the INTL GP4.2, but I'm pretty sure that there is no difference between the US and INTL versions with respect to the PIT file...you can try anyway
Yp-gi1cw/xeg
drakonizer said:
THANKS @zaclimon ! I am so sorry I misread YPG1 as YPGI1, please don't try to use that!
Here is a pit file you can use
http://forum.xda-developers.com/attachment.php?attachmentid=1324378&d=1347565906
...there is no PIT file that is uploaded for the INTL GP4.2, but I'm pretty sure that there is no difference between the US and INTL versions with respect to the PIT file...you can try anyway
Click to expand...
Click to collapse
hello and thank you to help me. I have flash with a new pit file and now it's good, i have CWM on the player ......:good:
But i try to flash a stock rom with odin and also the CM7.2 and all are failed.
i don't know why and what else i can do ? If someone have and idea...... Thank you.
i also try to install the .zip file via CWM and it is aborted........
Try something lower to flash if your found that to cm7.2
Sent from my YP-G70 using XDA Free mobile app
You should flash your stock ROM with ODIN from this thread: http://forum.xda-developers.com/showthread.php?t=1884071
Since your device is not YP-GI1/XEF, you might break your wifi, but you can fix it with the files from the CWM kernel thread.

Categories

Resources