yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830i Android Development] madman:
while early days of developing kernels i got too many unpacking repacking tools and while analyzing a script i came by a thing that throws base address ..

simple thing :

cd terminal to boot.img and run following commands :

BASE="0x$(od -A n -h -j 34 -N 2 boot.img|sed 's/ //g')0000"
echo $BASE

this gives base address :p

one of complex ways to get it [by observation] :

get system.img and boot.img into dsixda kitchen and create project and into boot.img tools there is show info option it will show info about boot.img

i know this will help you in packing kernel for live as i saw you asked it in there forums :p
[Galaxy Ace S5830i Android Development] mdfzhi:
thank you!

realy nice info :)

btw the s5830i uses broadcom chipset which is avs compatible!

damn it. i wish i own this phone instead of original crappy ace with stupid msm chipset :mad:
[Galaxy Ace S5830i Android Development] nishirao91:
tried cpuspy it says "no states file found ..are you sure ur phone is compatible?"" thats what cpuspy says
[Galaxy Ace S5830i Android Development] madman:
and btw they already have almost stable 1Ghz OC as SGY and SGAi share same cores and SGY got 1Ghz already :(

while looking at that small thing i only think of oc and avs backs them up for battery savings

---------- Post added at 08:42 PM ---------- Previous post was at 08:41 PM ----------

only states SGAi have are 312/832Mhz

that is a bug in the kernel and we have a patch to fix it
[Galaxy Ace S5830i Android Development] nishirao91:
ohhh hope u guys can help or anyother devs too ,yes there r only two steps 312 n 832
[Galaxy Ace S5830i Android Development] 90paolo:
hi guys i'm owner of sga 5830i

and i offer myself for testing modded kernels or custom roms..

just give me right instructions.

see-ya!
[Galaxy Ace S5830i Android Development] mdfzhi:
ok then, thanks to madman_amit my newly compiled kernel is ready.

just last trouble. doesnt remember the name of kernel in odin flashable package :p is it boot.img with lowercase of Boot.img with uppercase?
[Galaxy Ace S5830i Android Development] loll:
lower case
[Galaxy Ace S5830i Android Development] madman:
you could have seen update script :p
[Galaxy Ace S5830i Android Development] mdfzhi:
kernel for test in attachment.

while flashing with odin is safe most of the time, **** do happen. only do it at your own risk. by downloading this file u agree that i wouldnt be resposible with what might happen if that **** do happens ;)

changes from stock kernel:

- compiled with latest codesourcery toolchain (arm-2011.09-69-arm-none-eabi)

- kernel were compressed with xz compression for smaller filesize.

- added interactive, interactivex, smartass and smartassv2 cpu scaling governor.

extract the 7z file and u'll get tar.md5 file. flash it with odin. if its failed try to rename the tar.md5 into just tar and reflash.

read here for info howto do so

http://xdaforums.com/showthread.php?p=23753099

that thread also had cwm that claim to works on s5830i. i dont know because i dont own this device. if u guys can confirm the cwm works its better. u can create backup before flashing this kernel and incase it doesnt boot u can just restore the kernel from previously created cwm backup, and if this kernel works, for future version i'll be doing cwm flashable zip.

edited second time: i was right all along, based on on this post here i'm pretty sure the correct name for kernel in odin flashable format is boot.img. not sure about the BcmBoot.img tho. damn u samsung make things harder by naming two file similar to each other :mad:

btw flash it in PDA tab, because in original full package stock odin rom for s5830i, the boot.img were in the tar file that should be put in PDA tab.
[Galaxy Ace S5830i Android Development] 90paolo:
we have to flash putting your kernel in odin's PDA row, right?
[Galaxy Ace S5830i Android Development] mdfzhi:
i cant remember correctly which tabs because i dont own any samsung device right now and the last time i use odin is maybe a year ago :p

wait for someone else who knows to answer :)
[Galaxy Ace S5830i Android Development] madman:
i too haven't flashed any multipackage rom yet but odin name suggests that BOOT is proper compartment to go for..

and @ an0nym0us : for multipackage i don't think md5 is required as sammy readme itself says to make tar and flash it.. md5 is only for integrity of single package..

but anyways it might work
[Galaxy Ace S5830i Android Development] mdfzhi:
umm i use boot.img as the kernel name :/

it would be awesome if any of s5830i user can confirm it. obviously they had downloaded the stock rom. just extract it and see what the kernel name actually is.

come on guys, help us to help yourself :cool:

btw thats the reason i'm making it as tar.md5, for integrity check. if somehow the kernel got currupted when downloading, odin wont continue to flash because md5 missmatched. minimize the risk of bricking and its better to be safe than sorry ;)
[Galaxy Ace S5830i Android Development] loll:
in odin i flash with your file but bricked (replace pda in odin)

i think i need to insert ur file with other rom ?!?
[Galaxy Ace S5830i Android Development] madman:
i clearly mentioned boot is the part that seems mostly correct or wait for some experienced flasher
[Galaxy Ace S5830i Android Development] dragonnn:
PDA is MODEM it think, in normal Ace boot.img is in APBOOT.
[Galaxy Ace S5830i Android Development] mdfzhi:
whos kernel? mine or madman_amit's?

atleast give more info, odin logs, whether it success or failed flashing. what happen with the phone, if its stuck on booting where did it stuck, on bootlogo or bootanimation or just black screen. every little bit of detail helps.

we cant debug if dont have proper info :/
[Galaxy Ace S5830i Android Development] 90paolo:
i've searched around web and it seems that PDA is the correct row

where insert custom kernel.
[Galaxy Ace S5830i Android Development] madman:
then its fine to flash anything xD named as kernel
[Galaxy Ace S5830i Android Development] 90paolo:
maybe someone can try to flash kernel

using kernel file + cwm rec.

maybe can work..

---------- Post added at 08:50 PM ---------- Previous post was at 08:43 PM ----------

i've navigated into the stock rom i've founded 2 files:

in BOOT, BcmBoot.img

in PDA, boot.img

i think the second one (boot.img) is the correct name, without CAPS

anyway, thought i'm trying lend a hand, i'm the king of noobs so please commiserate me :(
[Galaxy Ace S5830i Android Development] ickyyy:
The name of kernel is boot.img and is placed in bootloader tab.That what I do and have read it in 4PDA from users who have done it many times..
[Galaxy Ace S5830i Android Development] madman:
bootloader is completely different thing than boot.img

well still i tried to make cwm flashable zip of an0ny's kernel

so try it out and give feedback

http://www.mediafire.com/?vdhmw26oo210vy8

as init.d comes with cwm flashable cwm should be working fine
[Galaxy Ace S5830i Android Development] mdfzhi:
so the one download of my kernel before i remove it is u all along :p

---------- Post added at 03:08 AM ---------- Previous post was at 03:05 AM ----------

dont worry, every little bit of info helped.

as i said earlier, help us to help yourself.

by helping us giving info, logs etc u actually helping yourself to have better chance of getting custom kernel, and maybe custom rom too ;)
[Galaxy Ace S5830i Android Development] madman:
lol it should be 1+ as when i downloaded it was 1..

get those SGA+ guys some root using pre-rooted kernel as that would require only mods in ramdisk
[Galaxy Ace S5830i Android Development] mdfzhi:
reuploaded the odin flashable file in my original post here

btw if phone failed to boot after flashing the kernel, try to get adb logcat.

if u still doesnt have adb installed, first download and install android sdk

https://developer.android.com/sdk/index.html

open the manager and install adb driver from it.

reboot your pc once the installation finish.

then install qtadb

https://qtadb.wordpress.com/

and open it.

power off the phone, connect it to pc via usb cable and see if qtadb can detect it. if it doesnt hit the refresh button. if it does detect it click on log button to get into qtadb log tab then just power on the phone. qtadb will display realtime logs when the phone start to boot.

paste the log here.
[Galaxy Ace S5830i Android Development] loll:
its yours ... but i insert only your tar in odin and it stuck at bootlogo

<ID:0/003> Added!!

<ID:0/003> Removed!!

<ID:0/005> Added!!

<ID:0/005> Odin v.3 engine (ID:5)..

<ID:0/005> File analysis..

<ID:0/005> SetupConnection..

<ID:0/005> Initialzation..

<ID:0/005> Get PIT for mapping..

<ID:0/005> Firmware update start..

<ID:0/005> boot.img

<ID:0/005> NAND Write Start!!

<ID:0/005> RQT_CLOSE !!

<ID:0/005> RES OK !!

<ID:0/005> Completed..

<OSM> All threads completed. (succeed 1 / failed 0)

<ID:0/005> Removed!!

<ID:0/005> Added!!
[Galaxy Ace S5830i Android Development] mdfzhi:
in which tab you put it in? its PDA tab isnt it?

from the odin logs it looks like it flashed successfully. try to get log from qtadb. see my previous post
[Galaxy Ace S5830i Android Development] loll:
on pda tab inserted flash complete but stuck at bootlogo

BUT the flashable zip with cwm from mad is good if its the same file ;D
[Galaxy Ace S5830i Android Development] mdfzhi:
so the r1t1 doesnt boot then.. what a bummer :mad:

ok heres another one, r1t2. this time with ramdisk taken from stock kernel.

if this still doesnt boot then theres something wrong with my compiled kernel not the ramdisk :(

crossing fingers and hope this one boot :/

i've also attached stock unmodified kernel incase u guys wanna roll back without reflashing the whole rom. taken from odin stock rom S5830iXXKK5. same as my test kernel, flash in odin's PDA tab.
[Galaxy Ace S5830i Android Development] mdfzhi:
wait, u mean the one that madman_amit give here is working? u flashed it via cwm?

can u see in phone settings what is the displayed name for kernel?
[Galaxy Ace S5830i Android Development] loll:
placed your boot.img in zip file from mad and i flashed with cwm no problem its ok
[Galaxy Ace S5830i Android Development] mdfzhi:
please confirm, what is kernel displayed name?

Settings>About phone>Kernel version
[Galaxy Ace S5830i Android Development] TheCoNecT:
The kernel says its flashing via CWM but when I look its says its still the same.

(2.6.35.7

dpi@DELL150 #1)

What does this mean?
[Galaxy Ace S5830i Android Development] loll:
and for me

(2.6.35.7 dpi@DELL145 #1)
[Galaxy Ace S5830i Android Development] mdfzhi:
thats weird. flashed successful but doest even change kernel :confused:

it means this phone is really a ***** testing nerve, wont allow modding easily :mad:

btw can u try these two?

flash via cwm and see if either one boot. if its booting but with the same kernel name as previous, try to use setcpu or nofrills cpu control and see if additional cpu governor available. maybe kernel actually flashed but phone had something else going around and displayed all kernel name as stock name.

if neither one boot it would be great if u could include qtadb logs when phone booting also.
[Galaxy Ace S5830i Android Development] TheCoNecT:
I can try them tomorrow.
[Galaxy Ace S5830i Android Development] loll:
setcpu only see scaling performance and bcm21553
[Galaxy Ace S5830i Android Development] mdfzhi:
it doesnt flashed properly then :/

try my latest upload, i've modified the flashed script slightly than the one from madman_amit.
[Galaxy Ace S5830i Android Development] loll:
i've test r1t2 zip no prob for flashing but change nothing same as above
[Galaxy Ace S5830i Android Development] CallMeVentus:
The boot image seems to be locked down

Ace-ing all tests.
[Galaxy Ace S5830i Android Development] mdfzhi:
but they said that the russian repacked kernel with modified ramdisk to enable init.d worked :/
[Galaxy Ace S5830i Android Development] ickyyy:
People said init.d worked but when I tried there wasn't init.d file in system foldier so can't confirm that it works....
[Galaxy Ace S5830i Android Development] TheCoNecT:
None of them changes the kernel(settings>about phone>kernel version).

The same in setCPU.

(2.6.35.7

dpi@DELL#1

Log1:

--Installing: /sdcard/gts5830i_kernel_r1t1_cwm.zip

Finding update package...

Opening update package...

Installing update...

Flashing kernel...

Done... Reboot now!

Install from sdcard complete.

Log2:

--Installing: /sdcard/gts5830i_kernel_r1t2_cwm.zip

Finding update package...

Opening update package...

Installing update...

Flashing kernel...

Done... Reboot now!

Install from sdcard complete.
[Galaxy Ace S5830i Android Development] CallMeVentus:
I know it sounds stupid , but did you manually flash the boot image ?

Ace-ing all tests.
[Galaxy Ace S5830i Android Development] TheCoNecT:
No i did not.
[Galaxy Ace S5830i Android Development] CallMeVentus:
Flash_image boot.img boot

Ace-ing all tests.
[Galaxy Ace S5830i Android Development] ickyyy:
Guys from xda compiled a kernel which boots but the camera is not working.I can talk to him to upload it and get the sources.
[Galaxy Ace S5830i Android Development] madman:
I am already in contact with Maroc-OS from ages who is main developer in SGY..
[Galaxy Ace S5830i Android Development] 90paolo:
so, we came at standstill? :(
[Galaxy Ace S5830i Android Development] mdfzhi:
basicly, yes.

the summary so far was:

1- my kernel the r1t1 if flashed via odin doesnt boot and stuck on booting, bot no one bother to give qtadb logcat. without any further qtadb log we who doesnt own the device cannot debug.

2- the second r1t2 odin flashable were repacked with stock ramdisk because i think the previous had problem with ramdisk, but i think no one had tried it because got no report regarding it,

3- both my kernel the r1t1 and r1t2, also the kernel by madman_amit if flashed via cwm will flashed successfully, the phone will boot but still displayed running kernel as the stock kernel. we cant figure out yet why this happen.
[Galaxy Ace S5830i Android Development] 90paolo:
is seems that neither r1t2 works.

install is ok but phone recognize only stock kernel..
[Galaxy Ace S5830i Android Development] mdfzhi:
that if flashed via cwm. dont know yet if flashed via odin. someone already posted that r1t1 via odin stuck on booting, but not for r1t2 because no one test it and give feedback yet.

btw the problem that phone still using stock kernel even after flashing my kernel and madman_amit's via cwm is either the flash script problem or the phone problem, not the kernel.

i think theres something else going with the s5830i, maybe it wont allow booting with kernel other than stock kernel which is signed by samsung thus it reverted back. its just my theory tho, cant say for sure.
[Galaxy Ace S5830i Android Development] TheCoNecT:
Maby its the phone that dont change the kernel "version" and still flashes the kernel?

(dont know if its possible, still a new member)
[Galaxy Ace S5830i Android Development] mdfzhi:
nope, definitely its still using stock kernel. thats why i said to test via setcpu to see if got additional cpu governor available. because it only listed stock ondemand with stock bcm governor, that proves its still running stock kernel. furthermore it doesnt make sense if its running custom kernel while still displaying kernel info as stock one :/
[Galaxy Ace S5830i Android Development] CallMeVentus:
Anyone tried using terminal emulator method ?

Ace-ing all tests.
[Galaxy Ace S5830i Android Development] mcc2005:
That´s a very nice tool... thx

---------- Post added at 03:31 PM ---------- Previous post was at 02:42 PM ----------

What is terminal emulator method ?
[Galaxy Ace S5830i Android Development] CallMeVentus:
flash_image /path/to/your/boot.img boot

Ace-ing all tests.
[Galaxy Ace S5830i Android Development] TheCoNecT:
Can someone upload the kernels boot.img? I can test it "Terminal emutator"-style.

Edit: the flash_image command is not found.
[Galaxy Ace S5830i Android Development] mcc2005:
I will try this evening...
[Galaxy Ace S5830i Android Development] mdfzhi:
download madman_amit's or my kernel and just extract the archive, u'll get boot.img from it.
[Galaxy Ace S5830i Android Development] mcc2005:
Thx... I'll try it
[Galaxy Ace S5830i Android Development] TheCoNecT:
I have the boot.img file but idk the commands. flash_image, flash_img dont work. Do u know the commands?
[Galaxy Ace S5830i Android Development] 90paolo:
anyway, i think that if install via cwm rec. doesn't work,

there are some problems into kernel compilation mode.

thought, i'm just a tester and i'm not able to provide myself.

so, i'm hoping in your genius brains!
[Galaxy Ace S5830i Android Development] mcc2005:
I think you need the android sdk for flash_image... But i' m not sure...
[Galaxy Ace S5830i Android Development] madman:
flash_image is not a command or something.. its a compiled binary..

so get flash_image from any of the ace kernel [ofc don't flash boot.img from that only]

and try it out but i don't think it will end up in working as some of guys flashed SGY rom with its kernel and it flashed :rolleyes:

now the thing that can be done bu you guys is whoever downloaded SGY rom should upload update-script inside the rom if its cwm flashable.. as it will help us
[Galaxy Ace S5830i Android Development] mcc2005:
I've tried to flash via the shell command

./flash_image /sdcard/boot.img boot
./flash_image: permission denied
#

got this error...
[Galaxy Ace S5830i Android Development] mcc2005:
Flashed the kernels

Hi,

I flashed the kernels via Odin....

1. gts5830i_kernel_r1t2 don´t boot my stock rom - i only saw the boot logo screen and that´s it

2. gts5830i_kernel_stock boot´s my stock rom - init.d works, no-frills CPU works only with 2 clock frequencies
[Galaxy Ace S5830i Android Development] mdfzhi:
are u sure init.d is working with the gts5830i_kernel_stock? thats the default stock kernel i grabbed from stcok rom, i didnt even touch it in anyway beside repack it as tar.md5 so it can be flashed via odin.
[Galaxy Ace S5830i Android Development] 90paolo:
on 4pda (russian forum) i've found this custom firmware for 5830ì.

can anyone try it and tell us if it's works or not and if are any bugs?

thanks

http://narod.ru/disk/44366921001.4cc4eb6a0e6b37dd0c28be8c2b3a982b/Liberty-line.zip.html

and here seems a cyanogen 7.2 port for 5830i, please try

http://www.mediafire.com/?fm5c165nz5bzove

obiviusly, flash with caution!
[Galaxy Ace S5830i Android Development] ickyyy:
Тhis is not a custom ROM.It's just a theamed stock ROM with some system apps deleted to have more RAM.And the default launcher is made GO Laucher.

This CM 7.2 is with many bugs and need developers to fix them.It's not working.Many problems with wi-fi bluetooth signal etc.
[Galaxy Ace S5830i Android Development] 90paolo:
oh thank you ickyyy.

the theamed stock rom it's working fine? i'm not well in russian traslation

and my browser auto-traduction is horrible...
[Galaxy Ace S5830i Android Development] 90paolo:
http://narod.ru/disk/44495782001.7311819184ffb2971f06dbd8619ac280/2012-03-27.zip.html

here is another firmware from 4pda.

use carefully
[Galaxy Ace S5830i Android Development] mcc2005:
my link2sd script starts from init.d - thats why i wrote its working...
[Galaxy Ace S5830i Android Development] 90paolo:
if possible to have a stock rom

just lited by some apps?

for exemple without:

DLNA

ALL google apps

SOCIAL HUB

THINK FREE

SAMS APPS

MTV

YOUTUBE?

it will be fine for now...
[Galaxy Ace S5830i Android Development] ickyyy:
One of the links you gave is just what you want.System apps are deleted and it's very stable and everything works fine.I'm just not sure which one of the two is that one you need...

PS:I'm reading 4pda and if something interesting cames here I'll let you know here in xda.I know russian so it's not problem for me.But I can't test kernels and develop because don't have time.I'm studing going to school and really can't help with such things.But if it's something simple just ask I'll be glad to help if I can :)
[Galaxy Ace S5830i Android Development] 90paolo:
thank you.

anyway, i've a big problem.

i've downloaded that rom with system apps deleted.

it's a backup, but my clockwork don't recognize it...

what i've to do?
[Galaxy Ace S5830i Android Development] rajrocks:
guys... :)

i m a s5830i user... guyz well r making a custom kernel n than roms for this device :)

u all can help us by joining this fb grp

CLICK HERE
[Galaxy Ace S5830i Android Development] ickyyy:
Extract foldier.The foldier's name must be something like that(4-24-2012-19-26)some numbers(date;time)and put it in clockworkmod->backup.Reboot into recovery and go into recovery menu for restore and restore the backup :)
[Galaxy Ace S5830i Android Development] 90paolo:
thank you.

anyway, was just a bad download.

i have re-downloaded it and it seems works.

maybe tomorrow i'll try it and tell you if and how works.
[Galaxy Ace S5830i Android Development] TheCoNecT:
How is the CM7.2 doin?
[Galaxy Ace S5830i Android Development] 90paolo:
i've tried this:

http://narod.ru/disk/44366921001.4cc...-line.zip.html

(backup-stock)

and it has:

go launcher as default launcher,

some new animations.

problems are:

brightness,

colours,

font that is not clear,

Gapps are still here :(

anyway, it will be perfect if we can create

a kernel to port CM 7.2

and also a stock rom without gapps and some other appls.

see-ya ;)
[Galaxy Ace S5830i Android Development] nishirao91:
I will check the logs tomorrow 1st in the morning
[Galaxy Ace S5830i Android Development] nishirao91:
@anonymous ,it gets stuck at boot
[Galaxy Ace S5830i Android Development] mdfzhi:
yes i know its stuck on boot, that why i said i need logs. install qtadb. read my post previous pages back on howto setup qtadb and getting logs from it.
[Galaxy Ace S5830i Android Development] nishirao91:
@anonymous phone will b detected when switchd when its under stock kernel but doesnt get detected in qadb after flashin ur kernel when kept switchd off mode

---------- Post added at 12:15 AM ---------- Previous post was at 12:13 AM ----------

i did exactly what u hav told me to usin qadb n that sdk manager stuff ...

my phone got detected n got logcat when usin stock kernel but never gets detected usin ur kernel
[Galaxy Ace S5830i Android Development] mdfzhi:
turn off the phone, lauch qtadb and open logs, connect phone via usb to pc and boot it. see if qtadb can show some logs. even one line of log is helpful.

---------- Post added at 02:49 AM ---------- Previous post was at 02:47 AM ----------

i'm starting to think this phone got some kind of security measure in bootloader to prevent unofficial kernel to boot :/
[Galaxy Ace S5830i Android Development] nishirao91:
now facing a newer problem ie ,when connecting the phone to the usb ,the phone boots n get stuck ,,,facing the same problem even after re trial

---------- Post added at 12:25 AM ---------- Previous post was at 12:23 AM ----------

but samsung galaxy young havin the same chipset has no such problems n stocks from sampro.pl n samfirmware.com when flashed says fail in odin
[Galaxy Ace S5830i Android Development] mdfzhi:
so the guys at 4pda.ru still doesnt come with working kernel?

russian seems better on these kinda things.
[Galaxy Ace S5830i Android Development] nishirao91:
ya u r right but while seein galaxy young n the also i thimk gt s5570i has new kernel right
[Galaxy Ace S5830i Android Development] mdfzhi:
because i dont have the device to debug and test myself, now i can just wait if anyone else can get a custom build kernel working. dont know the source of the problem that make kernel unbootable.

sadly i need to halt doing anything for now :/

edited: a suggestion, try to ask the guys who created the sgy kernel to compile one for u guys. both s5830i and sgy kernel share the same source, just different defconfig and ramdisk.
[Galaxy Ace S5830i Android Development] nishirao91:
thats what the problem is ,even another developer tried doin it but even hes facing the same problem ...in opensource.samsung.com there r 4 or 5 source files right ,which 1 r u usin ???