yashsingh1/xdaforums huggingface dataset:
[Galaxy Y GT-S5360 Android Development] Miche1asso:
I checked the clock-21553.c module now. So why did you use the modes above 0x0F? They will never work, they get masqueraded with 0x0F in many routines. Like here:

unsigned long bcm21553_ahb_get_rate(struct clk *clk)
[…]
mode = readl(ADDR_CLKPWR_CLK_ARMAHB_MODE)[B] & 0x0F[/B];

The high extra modes you defined, 0x10, 0x11, 0x12, will be masqueraded as 0x00, 0x01, 0x02 and I believe

that

is where we get the funny frequencies, which are stored in

clk_armahb_reg_to_ahb_freq_mapping[mode]

We have indeed

clk_armahb_reg_to_ahb_freq_mapping[0x00]=FREQ_MHZ(52)

and guess which frequency I keep getting… I am afraid you should (must?) reduce the number of available frequencies. To go above mode 0x0F requires more source code rewriting and personally I don't believe it is safe. What about if the HW uses the bits in 0xF0? We don't know.

Regarding this I really need to understand a couple of things:

which role clk_armahb_reg_to_ahb_freq_mapping[] has. Should we write the new defined frequencies there??

what actually writes the frequencies in a bcm21553 registry.

I see only the routine to store the modes in the CPU registry but there is no correlation with a frequency value whatsoever. Not even in assembler as far as I can tell. Unless, indeed, it is using the clk_armahb_reg_to_ahb_freq_mapping[] table. I think the trick is all there.

BTW, sorry for the off topic question. I have compiled the B5330 and PX kernel source codes. Both after installation via stock recovery do not mount the file system and fail. I used the same identical procedure for the Merruk's and GB kernels. Am I compiling something weird? Not even the modules jbd2.ko or ext4,ko compiled separately get loaded manually. Hopefully it isn't a issue with the OS X cross compiler, but as as I said it is just fine with the Merruk and GB kernels. Could there be a compiling option I am missing?
[Galaxy Y GT-S5360 Android Development] irfanbagus:
all that freq mapping is not 'variable', it is 'constants' which represent working freq for each mode. you can't change frequencies, only change mode. for example : mode 0xF will always make cpu work on 624mhz with assumption pll is off. if you enable pll, it's multiply by 4/3 (832=624*4/3). (AFAIR) maximun mode is 0xF, so 832mhz is maximum frequency, except if you can change pll multiplier/divider. unfortunately (AFAIR) it's read-only.

my advise, don't enable too much freq. 2-3 is enough for bcm21553. too much switch frequency only make you power consumption worse because overhead of frequency switch. carefully undervoltage give better power saving.
[Galaxy Y GT-S5360 Android Development] Miche1asso:
Oh, that's a great explanation about the static values, thanks! So it also does go back to the pll setting we discussed before. All right, it starts to make sense now.

But I am still confused about the situation when the pll is on and its frequency multiplier. I doesn't make much sense to me. We actually get:

int bcm21553_arm11_set_rate(struct clk *clk, unsigned long val)
{
u32 apps_pll_freq = bcm21553_apps_pll_get_rate();

arm11_freq[1] = (apps_pll_freq*2)/3;

arm11_freq[1] is 832Mhz, the turbo frequency. At least it should be, it is the frequency we get. What does it mean, that apps_pll_freq is 1248Mhz? How do you use instead 624*4/3? I cant find that formula. Sorry, I am lost. :confused:
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
this freqs was used the first time for 832,936 and 1.25 but they doesn't work :) but if you can take a look at the regulator file you will understand for what i did it like that :)

i mean 10,11,12 have lower voltages :) so lower freqs :) and see at the end for the rest.

for the 0x0F :) it's the heigh one that we have ;) so we store the heigh freq on it :) cause we don't have a good ARM assembly knowledge to add them there. (am talking about my self here)

Can you please check the kernel from prevews page first :)

and do a :

cat /sys/devices/system/cpu/cpu0/cpufreq/*

you will see what am talking about :)

other thing, the latest uploaded kernel have no tweaks :) so no custom recovery no anything just new modules and kernel :) so no init.d support and no root access and also no init.rc moddes :) and the freqs works like a charme.

and for the pll tricks take a look at my files all freqs goted with that way :)

here when we stored the freqs in modes we got 1,25Ghz as heigh freq then the 0x0F is the heighest.

please just test this kernel in stock rom to see what am talking about.

and i told you i have a problem in I/O i need to figure out from where he comes. (lag sometimes when sdcard mount).
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
Modules For Merruk Developer Edition

Ok Guy's Donwload the Kernel From prevews page and add this modules in /system/lib/modules

you need to remove dhd.ko and rename bcm4xxx.ko to dhd.ko

also for headset rename the new file to original name.

you need to root device first :)

this version is for advanced users :)
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
anyone has tested it?

:)

all works exept I/O problem.
[Galaxy Y GT-S5360 Android Development] irfanbagus:
pll is enable manually. search for "clk_enable(b->appspll_en_clk)" in "arch/arm/plat-bcmap/bcm_cpufreq.c". in stock kernel, if freq is 312 bcm_cpufreq_set_speed disable appspll_en_clk and if freq is 832 it's enable. about 4/3 it's only my own formula. not tested for all freq, but at least it's true for 624 and 468. i forgot a lot of detail because i already did it few month ago.

@maroc

you can't change mode-frequency combination. it's not define by software, it's by hardware. if you ever got digital electronic course you will know what i mean. you can't trust number come from kernel. do simple cpu benchmark will work to get real cpu freq as long as you don't mess with rtc.

and sorry can't do any hacking stuff right now. one of my family still in hospital right now.
[Galaxy Y GT-S5360 Android Development] Miche1asso:
Yes, I know that part about appspll_en_clk, I discussed it already with Merruk. It is the one switching on when in turbo mode, at 832MHz. Which matches with your previous explanation. What is really confusing me is the frequency mapping and setting. I see nowhere in the code when the kernel write in the registry the frequency we want. It writes only the mode. Unless I am ignoring the static/const structs. I didn't program in C for 20 years now, so I am a bit rusty.

Regarding the 832MHz limit (because I am sorry Merruk, we can't overclock. The 1248MHz numbers you see are fake. The code is cheating the bcm freq history stats), couldn't it be possible that it is implemented in assembler? I doubt it is implemented in HW, even if that is possible (I studied electronics in high school as well, so I know a bit about it :)).

PS: Sorry to hear about your family member. Hoping she or he will be better soon! :)

EDIT: Actually, could it be here? Writing the frequency in bcm_cpufreq->cpu_clk-><whatever> should write the frequency in the bcm21553?

/* Per-CPU private data */
struct bcm_cpufreq {
struct clk *cpu_clk;
struct clk *appspll_en_clk;
struct cpufreq_frequency_table *bcm_freqs_table;
struct regulator *cpu_regulator;
struct cpufreq_policy *policy;
struct bcm_cpufreq_drv_plat *plat;
};
static struct bcm_cpufreq *bcm_cpufreq;
[Galaxy Y GT-S5360 Android Development] savie:
how bout this?

is this proven?

i think not.. :)

btw thats my trial kernel..

bout merruk kernel im still sure sir maroc trying the best to break freq limit.. :)
[Galaxy Y GT-S5360 Android Development] irfanbagus:
i am 99% sure it's by hardware. mode works like switch. it's select cpu clock from multiple clock frequency generated by oscillator and frequency multiplier. from one of broadcom brochure i find base frequency of oscillator is 26MHz.

thanks
[Galaxy Y GT-S5360 Android Development] savie:
Change that value and got result like mine.. is it real or still fake result bro??
[Galaxy Y GT-S5360 Android Development] irfanbagus:
what value?
[Galaxy Y GT-S5360 Android Development] savie:
I change value in clock-21553.c from 26 to xx and 0x0e give result 936.. check in prev post..
[Galaxy Y GT-S5360 Android Development] Miche1asso:
Savie, that's great! So yes, you apparently did it. Could you please provide the relevant .c modules? A small tar file will do. :D
[Galaxy Y GT-S5360 Android Development] savie:
Lol.. im affraid its still screw value.. as u see benchmark only give result 640 in 1248mhz.. someone report give more big result with 832mhz..

Im just using kernel-patch from irfanbagus to add freq then try to change number and trial error..

Following sir maroc source its to difficult to noob like me so im realistic with my knowledge and for sir maroc sorry for posting oot from ur work maybe we need thread discuss bout kernel :)
[Galaxy Y GT-S5360 Android Development] Miche1asso:
yeah, I checked the bcm21553_clks file in the stock ROM, your values are indeed weird the least. Everything shows as overclocked! AHB (what is it, anyway??), DSP, SDRAM… Just name it.

Regarding a new thread, I don't know. Merruk (I think it is the name, Maroc should be the Country: Merruk, correct me if I am wrong :D)seems to accept that we discuss about overclock in here.

The point is that IF there is an HW limitation (simply because the CPU protects itself from frying due to higher frequencies, which would be normal) AND the limit is 832MHz the case is over.

PS: stil, where is the 26 (0x1A) value?? I couldn't find it!
[Galaxy Y GT-S5360 Android Development] Miche1asso:
If anyone is interested apparently I've found out what happened. I just had the same problem with the

"enable the Block Layer/Support for large (2TB+) block devices and files" in the meuconfig

CONFIG_LBDAF=y

in the .config file. Phiexz had the same issue (I believe) after compiling the kernel for the S5570I. Now, anyone has any idea what this is due to? It's a standard Linux kernel option, it shouldn't mess up the boot so badly.
[Galaxy Y GT-S5360 Android Development] sireangelus:
It's a basic dependence of ext2 and many others file systems, since they are formatted by default with this option on.
[Galaxy Y GT-S5360 Android Development] irfanbagus:
i don't know if i don't test or see your code, but i think you already know the answer :D

it's (could be) mess up non opensource prebuild kernel module, like rfs module. anyway you don't need 2TB support for device which only can read sdcard and sdhc. without it i only find problem when mount ext4 which formated using mkfs.ext4 in my pc. mkfs.ext4 in my pc enable 2TB+ support by default. only need to disable in formated fs and it's working find.
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
Hey :) yes irfan i know that :) but am basing my codes on broadcom's :) she says that :) This cpu can got 1Gb and more, you can search for it :) so the max is not 832. But :)

If we remove the 2 freqs 1.25Ghz and 936Mhz you can check all other freqs all works great :) with no problems and you can test and feel the diference. we don't have the full performance because we need to improve the assembly file.

But it still a good conversation.

MY CONCLUSION BASED ON BROADCOM CPU PAGE AND RELATED.

There is no HW Limitts @ 832Mhz :) the HW Limitt is heigher then 1Ghz.

and we still searching for better solutions and discutions :) really i like this one because is the first that really have informations for all members :)

yep i'm doing my best to figure out more tricks, issues & solutions.
[Galaxy Y GT-S5360 Android Development] kurotsugi:
is it means that the mode store the multiplier? it will explain a lot of stuff including the specific freq for certain modes. it will also open a posibilities to overclock the cpu fi we could fix the source and get the mode with correct freq value. if it's not possible? could we change the multiplier stored in every mode? savie's test seems screwed but it showed that the freq is recognized by setcpu. that's seems promising :D
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
i will say no :) and sorry irfan :) really it's not HW.

yes guys we can OC there is no HW limittations @ 832 :) i'am very sure :)

for quoation about AHB : AMBA High-performance Bus (AHB) that is a single clock-edge protocol :)

see here for more infos :) http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.prd29-genc-009492c/go01.html

and don't say that guy's the thread is for kernel and all related things so feel free i told you that i like the conversation :)

for the name yes :) my real name is Yahya Lmallas and Maroc is (Morocco in French)

Lol :)

yes Irfan but we can need it man if we got the OTG :) am working on it :)
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
1000% it's possible :)

and for the members that tested my latest upload, this is a stock kernel with only modules (RFS*,SFR*,SEC_PARAM) J4FS not working, so no added tweacks, if you got heiger results then samsung stock kernel/rom we got some interesting things.

EDIT:

just checked my phone and :)

98% battery from yasterday :)
[Galaxy Y GT-S5360 Android Development] hell_lock:
OMG!
[Galaxy Y GT-S5360 Android Development] Filip98:
any progress ? :D bug fixes... improvements.. anything ? ;)

This message is COPYRIGHTED to me and stolen from:My post :eek:
[Galaxy Y GT-S5360 Android Development] emompong:
This thread keeps my blood going lol. Kernel Makers are all here and my nose is bleeding for all the stuff. :D

My Salute to all of you guys!! hats down.. We're still lucky that we have you guys here in Galaxy Y section :D

Good luck for the kernels :victory::good::good:
[Galaxy Y GT-S5360 Android Development] EliTSamsunG:
WoW
[Galaxy Y GT-S5360 Android Development] AdrienC:
Screen On time?
[Galaxy Y GT-S5360 Android Development] AndroidProject:
Update this kernel please:(
[Galaxy Y GT-S5360 Android Development] #Henkate:
just wait:)
[Galaxy Y GT-S5360 Android Development] ronnieryan:
just be patient...if you want a beta update the updated sources are available on git so u can just get it and compile and test:victory:
[Galaxy Y GT-S5360 Android Development] Miche1asso:
That's my problem indeed. I know I can tune2fs it (-O "^LARGEFILE"? or something similar). But would it be permament? Still it is annoying, it's a double check that requires yet another binary in the RAM disk. Well, if one wants to make trick to mount the /data in the SDext, that's it.

Anyway I tried recompiling without the large file options and both the B5330 and PX kernel for S5570I still didn't boot. I have no issues with the Merruk source code. What could it be?? I am using the cross compiler in OS X, if that matters.

---------- Post added at 11:13 PM ---------- Previous post was at 11:07 PM ----------

Do you have a link about it? I'd like to read it. Was it a technical or commercial document?

BTW don't get me wrong, but it is spelt "higher", not "heigher". It wouldn't be an issue in here but you wrote it in the code as well. Actually it also was in a source code I've found from another guy. That gets pretty confusing!! I thought the heigher frequency was a special frequency. :laugh:
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
^^ :)

rfs & fsr modules are opensource and included in the kernel.

sorry for "heigher" LOL but i know you understand what i mean :)

for the links i can search for them again :)

and you can do : cat /proc/cpuinfo :)

use the cpu infos to see what i mean, same architecture ( ARM1136 - 6TEJ ) as many known arm prosessors :) search for specs.
[Galaxy Y GT-S5360 Android Development] Baskhara:
Excuse me Sir, I wanna ask when I use your kernel on root explorer show my free sdcard space 1GB, 2GB etc but in the widget I use its show me 1.6GB (the real free space) and also can u make a the stock recovery as default recovery? :) thanks Sir ur kernel is good :cool:

Sent from my GT-S5360
[Galaxy Y GT-S5360 Android Development] timezone34:
Will this work with Chobits v2?

And, is the "Mem Card Removed" bug fixed? Especially alongside Chobits? Thanks
[Galaxy Y GT-S5360 Android Development] lupin661:
Yes

using Forum Runner for 100dpi

press thanks have no price
[Galaxy Y GT-S5360 Android Development] simpleyoona:
deep sleep?

hi im using merruk kernel and i noticed that deep sleep is not being used. Is this the reason why my battery drains for only a day? does this kernel support it?
[Galaxy Y GT-S5360 Android Development] hell_lock:
Hey maroc.. Why is it that 1ghz doesnt work like any other frequency?? And why cant freq like 444 dont work??
[Galaxy Y GT-S5360 Android Development] thirdzcee:
Read back into the previous thread posts. maroc has a good discussion with miche1asso about freq above 832mhz:D
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
hey guys sorry for this quick reply :)

see here updated list.

http://xdaforums.com/showthread.php?t=1590596

or directly from here : http://www.mobileandfun.fr/alcatel-...roid-2-3-7-3g-smart-phone-gps-wifi-white.html
[Galaxy Y GT-S5360 Android Development] emompong:
cool.. nice share ;)
[Galaxy Y GT-S5360 Android Development] lupin661:
are we going to have update sir... Hope we have gaine 1ghz, clap.clap.clap, gud luck to all

using Forum Runner for 100dpi

press thanks have no price
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
currently coding..... hope that too :)
[Galaxy Y GT-S5360 Android Development] lupin661:
Wish u all the best sir maroc...

using Forum Runner for 100dpi

press thanks have no price
[Galaxy Y GT-S5360 Android Development] Mohamed.Anwar:
NEWS ?
[Galaxy Y GT-S5360 Android Development] MarcoToo:
Hey man, just wanna announce that I got my internet back today and would be really glad if you could git some soon so I can see where you're at.
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
soon :) btw what about OTG Cable :)

hey :)

congrats :) welcome back brother :) i missed our conversations :)
[Galaxy Y GT-S5360 Android Development] Mohamed.Anwar:
Now I'm studying I sleep just 4 hours a day or less and i'm on mobile internet :crying:

I'm sorry but I think I can't continue anymore toooooooooooooooooo busy :p
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
hey guys :)

i just tried a CM Compile just for test phone compatibilities and ext4 support.

i found something strange!!!!

stock rom's from samsung give always craches at boot but CM no!!! can the error comes from samsung builds???

and kernel works prety cool on it :) without any error

ok to invistigate ..... trying MIUI and other CM's

MIUI OK WORKS GREAT TOO SO GUYS!!!!!!!! :)

samsung has fu*c*k******ed aosp too lol

btw ext4 works perfect :)
[Galaxy Y GT-S5360 Android Development] "theviper":
Wow thats a good news keep on doing good work sir;)
[Galaxy Y GT-S5360 Android Development] hell_lock:
Did u make any commit for ext4 support??
[Galaxy Y GT-S5360 Android Development] Heartlessangel2001:
does ext4 support system data and cache?

To be forgotten is worse than death.
[Galaxy Y GT-S5360 Android Development] lupin661:
great hope we have that sir marok thank for the effort on upgrading our y, were waiting for your go signal to have that. Lol

using Forum Runner for 100dpi

press thanks have no price
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
What's Next :)

Thank you brother

no :) no commits i do it this night but i told you from a long time ext4 support works good only test was nedded but now confirmed :)

yes all of them :)

yes good and I/O now on (CM/MIUI) works perfect and improved scores :)

signal problem will be fixed today :) next kernel in some ours :)

MT Kernel v.2.5 By Merruk's Team.

New Drivers New FileSystem & Speed :)

lot of things supported :) compatibility with CM9/10 and more :)

i maked raspberry cm9 boots up on SGY :) but not work just want testing it :)

to be added :

more governors and I/O Schedulers

ierarchical scheduling support (CGROUP Mount)

and more :)
[Galaxy Y GT-S5360 Android Development] drichieboi:
better than expected to be nyc very fast update sir maroc
[Galaxy Y GT-S5360 Android Development] shoutokuyaki:
Sir...u very super like superman hehehe:)

I hope u make a super kernel for my little SGY

Thanks sir...;)
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
sheet i lost a lot of moddes on the sources guys :p i did something wrong but dont worry we stil have all teh features and other fixes :)

EDIT:

Compiled Successfully with latest Sourcery 4.6.3 :) Life is Good :)

fixed crach for stock rom's :)
[Galaxy Y GT-S5360 Android Development] Master_Key:
I told you.

I used 4.6 gcc. And the rest in pm.
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
yes i added build cflags for latest version in the main makefile

EDIT:

Anyone have cm9 here?

wanna give you the kernel to test it, i dont have much space to download anything lol
[Galaxy Y GT-S5360 Android Development] lupin661:
Master key are going to test it, hope it work so we can have cm 9 also. Thans marok and masterkey hope u success.

using Forum Runner for 100dpi

press thanks have no price
[Galaxy Y GT-S5360 Android Development] AndroidProject:
What is the bug?in pre 2.0?

Sent From ZetaWare CustomRom
[Galaxy Y GT-S5360 Android Development] Mohamed.Anwar:
I do
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
MT Kernel Developer Edition 2 ( v.2.5 )

Great Most of Bugs Fixed and the kernel makes rom's fasters :)

anyone can test it for me?

multiple roms if you can :)

this is it and am searching for better solutions to make OC works Completely :)

Edit :

Don't Tell me network doesn't work :P it's only for test the speed and freqs :) i'am using cm7
[Galaxy Y GT-S5360 Android Development] Heartlessangel2001:
where is the updated link for downloading?

To be forgotten is worse than death.
[Galaxy Y GT-S5360 Android Development] schalkerjung1984:
master_key has tried cm 9 sir?

btw. i have some roms on my sd card ^^ :D
[Galaxy Y GT-S5360 Android Development] alkesh95:
Mai77's method will work???

Coz I don't have pc I can try it on ussrv5
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
added :)

no :) i hope someone had it on his sdcard :)
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
extract it first ;) for mai77's method
[Galaxy Y GT-S5360 Android Development] schalkerjung1984:
ok i will try with cm9 wait :D

Gesendet von meinem GT-S5360 mit Tapatalk 2
[Galaxy Y GT-S5360 Android Development] humaid.locastic:
Is this kernel stable..? What are the bugs? How to flash pre 2.0
[Galaxy Y GT-S5360 Android Development] evanlocked:
Lol u always give us surprize u the man brotha:)

Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
[Galaxy Y GT-S5360 Android Development] #Henkate:
now i download stock rom(region:romania,carrier:vodafone) and i flash this great kernel:D,i tell you if work for me.
[Galaxy Y GT-S5360 Android Development] evanlocked:
If i use v07rc10 wnd insert a2sd script inside system/etc/init.d it will works or not??

I see post#2 roney give a2sd apk who need a2sd script?

If it works ill try it but ill try it this morning haha.

Great job mr.maroc

Sent from

Device:samsung galaxy y gt s5360

Rom:hybrid v21 creed mod

Recovery:faqby cwm
[Galaxy Y GT-S5360 Android Development] PREMOLIKES:
Hey bro.Are you still hell bent on a2sd.Have you ever tested the kernel .What were you doing when a2sd didn't work for us.What is so special for you.
[Galaxy Y GT-S5360 Android Development] Maroc-OS:
Init.d works but not for all roms.

If you have flashed this kernel and booted successfuly. Then a2sd will work for you. But if it hungs at bootlogo it mean that you have an uncompability with init.d from your rom

when i go home i will work on the next release
[Galaxy Y GT-S5360 Android Development] kentoi me:
:rolleyes::rolleyes: so annoying to see that internal memory is almost to burst buddy coz of lots of apps running.. :D:D:D that y a2sd make "us" feel calm to see that all apps running but stored in sdcard.. no worry about bursting internal memory..:D

---------- Post added at 08:07 PM ---------- Previous post was at 08:04 PM ----------

can u fix that next update sir.. a2sd works smoothly and all other feature without any conflicts or missing???:):) bundle of thanks for u sir..