yashsingh1/xdaforums huggingface dataset:
[HTC Vivid, Raider, Velocity] ronnie498:
If you need help answering a question please ask
[HTC Vivid, Raider, Velocity] af974:
OMG another one........i just closed a no-sense thread, this is the second....let's see if there will be a third ;)
[Galaxy Y GT-S5360 Android Development] jeonaztigz:
first blood... what's the features?
[Galaxy Y GT-S5360 Android Development] MarcoToo:
init.d

iptables(without logging)

ondemand governor

deadline scheduler

312 - 416 - 624 - 832 MHz frequency scaling (will possibly include UV and minimum brightness in the sources)

But first you should check if it actually boots ;)

via XDApp
[Galaxy Y GT-S5360 Android Development] shocklads:
Not bad, I'll try it now (with my rom) and fb u later:fingers-crossed:
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Great man, I'm excited :D

If it doesn't boot I'll probably have to re-compile all the modules in the ramdisk. So don't let me down :D
[Galaxy Y GT-S5360 Android Development] CharsiBabu:
Doesn't work for CyanogenMod(stuck on black screen,probably bootanimation) :s

Will check for/on stock rom tomorrow. :D
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Can you still get into recovery?

Can you get me a logcat?
[Galaxy Y GT-S5360 Android Development] CharsiBabu:
No.

No,it shows waiting for device.

_

Doesn't work on stock rom either

stuck on blank bootscreen.

Stock rom: DDLE1
[Galaxy Y GT-S5360 Android Development] MarcoToo:
OK, many thanks. Now I know I did something wrong.
[Galaxy Y GT-S5360 Android Development] Master_Key:
Yes, for me it's the same problem.

If you fix this issue then please let me know how you fixed it.

I am working for cm.
[Galaxy Y GT-S5360 Android Development] kurotsugi:
well..if you give more details about what you did to your kernel and how did you built it I might can help find the problem
[Galaxy Y GT-S5360 Android Development] Master_Key:
Kernel built from cm kernel source on git hub.

.config for galaxy y.

Make file edited for 2.6.35.7 kernel.

It is strictly for cm. Testers reported waiting for device error.
[Galaxy Y GT-S5360 Android Development] kurotsugi:
I'm not sure if we can make a kernel directly from cm source. you can start with samsung's source code then integrate some of the cm component into it. if the kernel version is same, basicly both of them isn't different. however, we still need the driver and and some device spesific source code which can only obtained from samsung's source. that's why we should start from samsung's source code. one more thing...we can't use cm ramdisk since samsung kernels are unique, the recovery stuff is stored inside the ramdisk. in order to make a bootable kernel you'll need sgy's ramdisk.
[Galaxy Y GT-S5360 Android Development] Master_Key:
I used samsung ram disk.

Kernel image was from cm but as close to stock as possible.

Even stock kernel image had same problem. Not booting.
[Galaxy Y GT-S5360 Android Development] kurotsugi:
lets do a simple test. try to build a kernel from stock samsung source with irfan's guide. see if it can boot.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Could you give it another shot? Link still the same in OP. Samsung sources are so ****ed. But I think the problem is not due to the sources but my set up.

I'll just share my patch file with you so you can try compiling the zImage ('cd' to common and do a 'patch -p3 < koneu.patch').

Ramdisk is stock with CM's sysinit in /sbin and init.rc modified to execute it to assure init.d support. Maybe this is actually the problem. If this version doesn't boot either I'll remove sysinit from /sbin and use /system/bin instead.

Please be aware that the patch file is my property and you may use it in other projects but please give me credit.

Included in this patch (has to be applied to unmodified Samsung sources or some parts will bug(not the important ones though)) :

- custom .config

- 312 - 416 - 624 - 832 MHz frequency scaling (original idea by savie but didn't provide a patch afaik :D)

- CPU stats file fix (by irfanbagus)

- modified backlight driver to allow lower screen brightness (original idea by mikstev, bugfixed and included into the sources by me)

Please tell me (and also send me the zImage :P) if you got it to boot!
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Section mismatches are just so damn hard to fix…
[Galaxy Y GT-S5360 Android Development] Master_Key:
I think I may have got a solution.

My z image is only for cm 7 as it is compiled from source.

I need a stock ram disk which I am pulling from my device. Lets see how it turns.

If you need a working stock z image, I already have one. About 3+ mb stock image.

You need it ? I'll upload it if you want.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Is it a self-compiled stock zImage or a zImage from a stock boot.img?

If it's a self-compiled stock zImage you can probably apply my koneu.patch to the stock sources and compile it. The changes are really very few and I think if compiling works for you the zImage will boot.

If it's a zImage from a stock boot.img I won't need it, I got plenty of those :P
[Galaxy Y GT-S5360 Android Development] Master_Key:
It's a compiled one. I ain't working for stock. This was just to make sure that z images boot.

I am working for cm 7.2

I need to get the compiled from source boot up in abominable galaxy y.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Could you do me a favor and compile stock samsung with koneu.patch applied? My compilations won't boot. :(

And try the patch I PMed you for the CM sources.
[Galaxy Y GT-S5360 Android Development] Master_Key:
Your patch is simply stock .config file.

Do I look like I won't compile from a working config?

I already have it. Cm is not booting coz of a grave problem.

I'll try to help you on patch. :)
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Which patch you talking about now?

I changed the sources of some drivers in koneu.patch. So please compile it for me. Config is only a little part of it. But compiling won't work on my machine. :(
[Galaxy Y GT-S5360 Android Development] Master_Key:
Cm patch you gave, that one. I have a modified by me .config

Your patch. The process goes on and does not end. I can't compile as the process needs to end before compiling.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Ahh wait I forgot something!

The right command is 'patch -p3 < /path/to/koneu.patch' !

Sorry man I forgot that '<' in my other post. :(

You can safely cancel the running process with ctrl+C

It shouldn't be a long process, just a few miliseconds.

Gonna work on those section mismatches when I get home.

via XDApp
[Galaxy Y GT-S5360 Android Development] kurotsugi:
there's something wrong with your patch.

export KBUILD_BUILDHOST := $(SUBARCH)
ARCH	?=arm
-CROSS_COMPILE	?=/opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-
+CROSS_COMPILE	?=arm-linux-androideabi-
CROSS_COMPILE	?= $(CONFIG_CROSS_COMPILE:"%"=%)

everyone have their own setting. if you change this part I can't build my kernel.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Feel free to open your Makefile and change it back to the path of your toolchain :D

Or just type N if it asks you to assume -R and to apply anyway. It won't affect the rest of the patch.

via XDApp
[Galaxy Y GT-S5360 Android Development] kurotsugi:
yup...but it will be wise to edit your patch too since some user might not aware what your patch did to their source code. btw, what version or compiler did you use to build your kernel? I'm a lil bit curious since irfan said that only the version he mentioned in his guide can compile the kernel correctly.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Good to know :D

I'll check his guide later then.

And I'll overhaul the OP later on with a changed patch file.

via XDApp
[Galaxy Y GT-S5360 Android Development] kurotsugi:
ah yes...one more thing. IMO it will better if you not change anything in .config file. people have their own favoured setting on that file and its a little bit unconvenient if you changed the value on that file since he/her might have to check and set their kernel configuration from start. the most important part of your patch isn't on .config file but on other files right?
[Galaxy Y GT-S5360 Android Development] Master_Key:
ARCH	?= arm

CROSS_COMPILE	?= "Paste your toolchain directory here"

CROSS_COMPILE	?= $(CONFIG_CROSS_COMPILE:"%"=%)

Try this.
[Galaxy Y GT-S5360 Android Development] kurotsugi:
no need to do that...I already have almost all patch from this patch long before he make it. I can't use this patch on my source anymore.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
This patch was just what I used to store my settings and get them to the virtual machine. I didn't want to confuse anyone. Sorry if I did.

NEW boot.img uploaded! Check it out in OP (still the same link, gotta love dropbox for that :D) and report if it works. Built it with irfan's recommended toolchain, thanks for the tip.
[Galaxy Y GT-S5360 Android Development] savie:
Mmm marco i just screening read the patch and yes kurotsugi say right in that part..

Try with irfanbagus guide.. :)
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Can you report if the boot.img works? Sorry, but I am desperate and can't use Odin because I don't have Windows (in case I have to flash back, that is ;))
[Galaxy Y GT-S5360 Android Development] kurotsugi:
yup...it boot up but take longer times than usual. the gov isn't work. you'll need to fix the latency bug issue on samsung source first to make the gov works. ah yes, the 416 freq doesn't work.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
It's booting rather quickly for me…

Updated the OP with everything you have to know. :)
[Galaxy Y GT-S5360 Android Development] kurotsugi:
fixing the latency is something easy. you won't need to use bacem tweak anymore if you've fixed it. another fun stuf, you can also integrate bacem tweak into your kernel easily if you want.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
True that.

But about the latency fix - how the . does it work? I read the sources of BCM-tweak and I just don't get what irfan did >.<

lol stupid me …

Is it legit to just change the definition of CPUFREQ_ETERNAL? :D
[Galaxy Y GT-S5360 Android Development] kurotsugi:
yup...

/* Set default policy and cpuinfo */
policy->cur = bcm_cpufreq_get_speed(0);
/* FIXME: Tune this value */
policy->cpuinfo.transition_latency = 1000000;
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Found it on my own *proud* - new patch uploading soon, kernel being compiled and uploaded after that.
[Galaxy Y GT-S5360 Android Development] kurotsugi:
glad to hear that...you might want to check this one https://github.com/edoko/Air_Kernel_for_GN/tree/master/drivers/cpufreq

it has several more gov you can play around. not all of them works in our device but you can still use some of them
[Galaxy Y GT-S5360 Android Development] savie:
Credit to irfanbagus..

He fix it on bcm-tweak before change to bacem-tweak..
[Galaxy Y GT-S5360 Android Development] hell_lock:
I made a kernel last night with no new features. After installing it, it stuck on bootlogo and here is the logcat.

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
--------- beginning of /dev/log/main

E/logwrapper( 1305): executing /system/xbin/busybox failed: No such file or directory

--------- beginning of /dev/log/system

I/usb_portd( 1316): USB cable is connected, config 1

I/at ( 1323): open driver brcm_atc fd - 7
[Galaxy Y GT-S5360 Android Development] Master_Key:
Which ram disk are you using?

busybox integration is in merruk's kernel.

Try to use stock ramdisk first to know if your kernel boots up.
[Galaxy Y GT-S5360 Android Development] hell_lock:
Everything is stock. Wait a sec! The base kernel I used was modified by kitchen, is that making the kernel not boot?

EDIT: Kernel booted up!
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Modified how? init.d? Root?

Because init.d needs busybox installed in /system/xbin

and that's pretty much your problem.
[Galaxy Y GT-S5360 Android Development] Master_Key:
I'd recommend you to pack the image on ubuntu or windows (using cygwin) without any modifications to it.
[Galaxy Y GT-S5360 Android Development] savie:
Mmm 208-312-624-832

Sorry mate are u change

0x0C = 208

0x0D = 312

If yes, sorry mate, even its working but its no UC. I've try before and use cpu benchmark same score 0x0C = 312 between 0x0C = 208 .

But if u try 0x0B = 208 cpu benchmark not consistent sometimes same as low freq and sometimes as high freq.

Same case if u only change 0x0F = 1000 or any number. Its not proven overclock even show 1000 in max freq on setcpu or nofrill etc.

I've try all method and still no luck.

But if u use diff method and proven as UnderClock..

Wow great mate..

Sorry i'm far from pc so cant test ur UC work.. :)
[Galaxy Y GT-S5360 Android Development] MarcoToo:
0x0B is 208 atm and 0x0C is 312 (as usual)

Yah, I know - 0x0B works every now and then. And when I tried 0x0A it was about 100 MHz I think (benchmark went pretty low)
[Galaxy Y GT-S5360 Android Development] savie:
How the cpu score try with performance gov

208-208

208-312

208-624

208-832

Try 2 or 3 times is score stable

Compare score with ur other kernel 4freq 312-416-624-832
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Managed to underclock with an average antutu mem and cpu score of 105!

More to come later.

via XDApp

EDIT: I used 0x01, which might just be the frequency used in sleep mode (at least it feels like it). The OP has been updated (and is really disgusting now).
[Galaxy Y GT-S5360 Android Development] savie:
Great mate seem ur UC working..

Will try it with my own method.. :)

But with uc freq what can we use?? Sometimes to doing light activity with 312 is lagging too :p

Anyways great work mate..
[Galaxy Y GT-S5360 Android Development] kurotsugi:
personally I tend to use bogo MIPS score to see if the new clock works or not. using 416 in 0x0d give unstable score between 416 and 624. using freq lower than 312 is too laggy to open a single app. for battery saving option I prefer to play with my gov setting. with my modified conservative gov my battery only lost 1% for 7 hours in standy mode.
[Galaxy Y GT-S5360 Android Development] savie:
Ur right bro 416 not 468 or 406 but i'm not try coz in trip and far from pc :p

Will try after i get on pc later..

1% in 7hour standby is same with deepsleep bro?
[Galaxy Y GT-S5360 Android Development] kurotsugi:
yup..it use deepslep. But 'conservative' has big contribution when its not on standby mode. It mostly will use 312 in simple activity like internet browsing or texting and will use the max freq only when we used it to open something like games. most dev modified it on their kernel to make it more responsive but it becomes losing its function to save more battery.
[Galaxy Y GT-S5360 Android Development] savie:
1% in 7hours with at least 312 with powersave gov to use light activity thats awesom lol

61% with 2g 5hours net activity.. not bad to 1day trip :p

Its all bout taste that why diff dev diff style and sometimes user have diff style with dev too..

But i'm happy cz now everyone atleast in this forum can create something diff when i or u join this forum..

But we must not forget to harish who can create tools and 1st custom kernel maker, then merruk, terma, vivek with all features kernel, faqbly and mai77 with tools to install kernel via cwm, doky, and of course irfanbagus. I think they are real dev to our device.

I personality just try to combine, little mod, and explore with what they have done.. :)

Edit -

@marco can u give ss with uv freq cpu and mem score.. 105 is total score or just value of cpu integer score.. Thanks mate..
[Galaxy Y GT-S5360 Android Development] MarcoToo:
105 is RAM+integer+float-point, integer on its own is 46.

Compiling yet another version, will give you screen shot with that.

I also tried lulzactive but it didn't work. So I decided to just change conservative ;)

In the currently compiling version I modified conservative to actually be less likely to ramp up. Will update the patch in a sec…

Patch updated.

boot.img updated. MD5sum updated.

And suddenly the benchmark changed to a 100's integer score for 208 lol. What did I do wrong?

Now it's back to 47 … Randomly working as intended.

Added SS of benchmark.
[Galaxy Y GT-S5360 Android Development] savie:
Im not read ur 208patch now..

But as i say before.. i've try changing like that and got inconsisten benchmark.. sometime low and high.. thats why i'm ask u b4 its the uv real working or not.. i still dont know what the problem too.. :)
[Galaxy Y GT-S5360 Android Development] kurotsugi:
can we swapped it? I mean 0x0d is already used for something else and tend to give unstable score. how if we swap 312 mhz on 0x0b then use 0x0c for something else?
[Galaxy Y GT-S5360 Android Development] savie:
Just try bro.. even ive try before and not sure with result its correct or not.. i will start with other method in playing freq..

And still dont know is 208freq in marco kernel is correct value if we get inconsisten benchmk..
[Galaxy Y GT-S5360 Android Development] The-Captain:
Guys don't post useless stuff. Have information that's useful or saying thanks to dev!
[Galaxy Y GT-S5360 Android Development] MarcoToo:
I managed to effectively underclock. Consistent benchmark. Governors recognizing it. Yeesh! 104 MHz :D

Patch uploading…

Screenshot of benchmark attached. Looks very much like the BM for the old freq, but now it seamlessly switches between it and the other ones.

boot.img and koneu.patch uploaded. Have fun!
[Galaxy Y GT-S5360 Android Development] b16h22:
congrats bro!
[Galaxy Y GT-S5360 Android Development] I.M.G:
sir marco

what do u min "we might have to use the sgybicwm two times"??

meaning we have to flash it twice before we reboot?

Sent from my GT-S5360
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Yep, I noticed a bug in SGYbiCWM. Sometimes it doesn't correctly flash the kernel. This might be caused by bmlunlock only working the second time or sth…

Anyway, the easiest workaround is simply flashing it twice.

Explained it in the OP now. Thanks.

New boot.img and patch uploaded, bug in applying 104MHz freq + voltage finally fixed. Merged former "voltweak.ko" into the sources.
[Galaxy Y GT-S5360 Android Development] savie:
About ur volttweak, its ur original work or same code with bacem tweak?

Ps. I never get 100 score :(

and dont use ur patch too mate but thanks for ur work idea..
[Galaxy Y GT-S5360 Android Development] MarcoToo:
My voltweak doesn't exist any more. I now simply changed the sources instead of using a module to undervolt. It worked like BCM-tweak(not like BaCeM) but was my own code.

And check for my changes in common/arch/arm/mach-bcm215xx/clock-21553.c and common/arch/arm/mach-bcm215xx/device.c

With those changes use performance governor to lock the frequency on 104 MHz, 'cat /sys/class/regulator/regulator.5/microvolts', default for 104MHz is 1100000. Do a benchmark. - It does work.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
UPDATE: added sio I/O scheduler as default.
[Galaxy Y GT-S5360 Android Development] The-Captain:
OP, as required by xda rules, you must include what you used as a base. If you used stock kernel as base please say so.
[Galaxy Y GT-S5360 Android Development] eyjay1991:
my phone just shuts down after applying this. i installed a fresh stock dxlf1.
[Galaxy Y GT-S5360 Android Development] I.M.G:
Hey guys?

Have you ever seen ur init.d folder?

Coz mine i cant find?

very confusing.. :confused:

And i found that 104 is not working well..

But all freq. are ramdomly use even i set up it into 104 - 832..

Sent from myphone!
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Done.

Did you use any modules? Did you use BCM-tweak or BaCeM-tweak? Because it's running fine on my device.

Your init.d folder should be at /system/etc/init.d

If you don't have one you can create it and move your scripts there.

104 lags a bit, but that's just the feeling of underclocking ;)
[Galaxy Y GT-S5360 Android Development] I.M.G:
Your init.d folder should be at /system/etc/init.d

If you don't have one you can create it and move your scripts there.

104 lags a bit, but that's just the feeling of underclocking ;)[/QUOTE]

Ah i see..

Additional knowledge for me

Tnx..

Sent from my GT-S5360
[Galaxy Y GT-S5360 Android Development] MarcoToo:
UPDATE:

Changed the way frequencies are applied. (Maroc's idea)

Added SWAP support (because I wanted to mount the cache partition as SWAP :P)

Lowest frequency is now 156MHz - voltage still the same so it won't affect battery consumption.

Ramdisk updated to the latest Samsung version. This should fix some boot loop issues. It also fixed compatibility with newer ROMs for me.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
UPDATE:

For people who think their UI lags too much: A flashable zip with a less aggressive configuration for the conservative governor has been added to the downloads tab.
[Galaxy Y GT-S5360 Android Development] -CALIBAN666-:
Awesome i test it directly.thx

GO AVENGERS+GREEEEETZ!!!
[Galaxy Y GT-S5360 Android Development] hell_lock:
2 things:

1.What problems does it have?

2.I need your permission to add it in my kernel.
[Galaxy Y GT-S5360 Android Development] MarcoToo:
1. No problems. But be careful when using conservative governor ;)

2. Permission granted. Just give me proper credit.

And it would be better if all kernel developers worked together on one project (preferably Maroc's) instead of many small kernels with almost no documentation popping up.
[Galaxy Y GT-S5360 Android Development] hell_lock:
I m nt a big dev.. So no point adding me up.. Why should i be cautious while using conservative?
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Because, as stated in the OP, it ramps down very aggressively.
[Galaxy Y GT-S5360 Android Development] andisetyawan11:
i flash this kernel to evorom, and creed, after that i flash tih with a2sd.zip.. but why always stuck on logo galaxyY..?? i use white with a2sd.zip no stuck..just your kernel stuck on boot logo...why sir..?
[Galaxy Y GT-S5360 Android Development] MarcoToo:
It's working for me. Remove the battery if it doesn't boot and put it back in after ~3 minutes. Fixes not-booting for me.
[Galaxy Y GT-S5360 Android Development] The_animaToR:
This kernel is more then awesome... Improved battery life lot....

Can you provide me 43test script like smartassv2 ....

With default it lags and with performance it its much faster more then I need .... :thumbup:

Respect devs. I Love my galaxy y because of them.....^.<
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Try this one. Or edit it and tweak the values to your liking. I explained what exactly they do for you.
[Galaxy Y GT-S5360 Android Development] The_animaToR:
Thanks 4 the tutorial

Respect devs. I Love my galaxy y because of them.....^.
[Galaxy Y GT-S5360 Android Development] The_animaToR:
My report.....

Init.d scripts working well...

No problems till now....

Boots a little fast....

70% battery in 3 hours with 312-624mhz whatsapp/xda/opera mini/playerpro not much lag

Can't expect better then this

@op...u should add balanced configuration for conservative

. performance gov. Is already present for performance

If possible please add a freq between 312 & 624 for 2d games..:D

It under volts automatically...?

What's the default undet volt value....

Thanks

Respect devs. I Love my galaxy y because of them.....^.
[Galaxy Y GT-S5360 Android Development] lupin661:
is this compatible to ussrv5 rom how can i use it there?
[Galaxy Y GT-S5360 Android Development] The_animaToR:
Ya its compatible just down. Boot.img from 1st post place it on the root of your sdcard

Thn go to cwm and flash kernelflasher or sgybicwm

"Addicted to XDA more then facebook.....lol"
[Galaxy Y GT-S5360 Android Development] lupin661:
I just flush it just what u say, but i got stuck at boot do i need to mount system?

send by postman
[Galaxy Y GT-S5360 Android Development] The_animaToR:
Yaa...:P

Delete all the scripts frm /etc/init.d if u're havng trouble installing

"Addicted to XDA more then facebook.....lol"
[Galaxy Y GT-S5360 Android Development] lupin661:
Is thise kernel a2sd support?

send by postman