yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy SL i9003] XDA_Bam:
Well, the OPP-layer is the problem since it's partially working independant from the cpufreq driver. One safe way to limit the freqs at bootup is to disable the corresponding OPP. The bad thing about this is, that you have to build a new cpufreq frequency table with an additional entry if you enable the OPP later on. This makes it a rather complex solution.

Another way could be to alter the omap_pm_cpu_set_freq function to check if the cpufreq driver has been loaded and the policy is available. With this approach, there could still be a small window between the cpufreq driver being loaded and the init.latona.rc setting for scaling_max_freq being set. To make sure this is not the case, we could use

[B]#include <linux/kernel.h>
#include <linux/unistd.h>

struct sysinfo s_info;[/B]

...

#ifdef CONFIG_BRIDGE_DVFS
if (mpu_req_freq < mpu_freq_table[dsp_req_id].frequency)
selfreq = mpu_freq_table[dsp_req_id].frequency;
#endif

[B]// Check cpufreq constraints
int ret;
int uptime = 0;
struct cpufreq_policy policy;

ret = sysinfo(&s_info);
if(!ret)
uptime = s_info.uptime;

ret = cpufreq_get_policy(&policy, 0);
if(ret || uptime < 30) {
// If cpufreq_get_policy() fails, the cpufreq driver has not been initialized, yet
// If the system is up for less than 30 seconds, the desired scaling_max_freq might not be set, yet
if(selfreq > (1000*1000))
selfreq = (1000*1000);
}[/B]

if (mpu_req_freq != currspeed) {

__________________________________________________

By the way: I think

if (mpu_req_freq != currspeed) {

should read

if (selfreq != currspeed) {

but I am not quite sure about this...
[Samsung Galaxy SL i9003] Napstar:
Thanx bro..

I will try your mods and will let you know.
[Samsung Galaxy SL i9003] FishBB:
hello. This Kernel is great! When will support for MIUI rom? or XXKPU ?
[Samsung Galaxy SL i9003] DooMLoRD:
XXKPU will be supported...

as for MIUI/CM, keep poking Napstar... he is leading the development for this device :D

@Napstar

i hope u plan to update the 1st post/title of thread soon :P
[Samsung Galaxy SL i9003] FishBB:
there is a chance that the UtterChaos kernel will be for MIUI? :)

with which ROM's works? :)
[Samsung Galaxy SL i9003] luiseteyo:
They have JUST qnswered that. This is incredible...

:)
[Samsung Galaxy SL i9003] vishal24387:
thats great buddy :D Now a days cm9 developement is in full swing. I hope u guys will work on kernel 3.0. This will really help dhiru to solve many bugs related to cm9 rom.
[Samsung Galaxy SL i9003] joelmonty:
Im on v12,the kernel is great lower frequencies are actually working now,the camera works fine even in lower freq but cant play HD vids,Video Recording in 720p works but shutters while playing ,Great kernel doom and nap the battery life is good too.Works in DDKP3 also.
[Samsung Galaxy SL i9003] marshygeek:
I am currently on v6, can i flash v10 directly? Am using poseidon's rom (i think it's not necessary to say this)..

One more thing is OC kernel running 1.35 ghz will have its side effect on its hardware? i.e reducing life span of the unit etc.
[Samsung Galaxy SL i9003] mdaamir1989:
Yes you can directly flash v10. And about your overclocking concerns have a look at this brilliant writeup by inciongd .

http://xdaforums.com/showthread.php?t=1357747&highlight=overclocking&page=110

As he says test incrementally and see how much your phone can handle.

Cheers !
[Samsung Galaxy SL i9003] DooMLoRD:
here is a direct link to that post:

http://xdaforums.com/showpost.php?p=21753817&postcount=1100

;)
[Samsung Galaxy SL i9003] xGiox:
i am using v12 and i get wifi error from time to time,only reboot fix it,rest seams to work fine,i had no bugs with v10.
[Samsung Galaxy SL i9003] alex88510:
from what I experienced, wifi error probably cause by high cpu frequency which your phone can't handle.
[Samsung Galaxy SL i9003] Napstar:
OP updated... :o
[Samsung Galaxy SL i9003] xGiox:
cant you people read before posting? i used v10 that is running on max 1380 mhz too without problems,my phone is handling it well,it doesn't even heat up.
[Samsung Galaxy SL i9003] alex88510:
doesn't mean to argue but, I mentioned "from what I experienced", my phone will have wifi error if the freq is too high(more than 1200mhz).

Since we can use SetCPU or other apps to limit the freq, even if you are using v10, how should I know you use the max freq?;)

Let's calm down and wait for explanation from doomlord or napstar or wait for a newer version.:)
[Samsung Galaxy SL i9003] vishal24387:
question is not about phone is running well or not. Question is that weather all functions are working properly or not on perticular frequency. My phone works nearly well on UC v12 kernel. But still my video h/w playback is not working well. My phone reboot. And 1380 mhz is somewhat max limit of our phone chip. So there might be a great chance of some functions not work very well on such higher frequncy.
[Samsung Galaxy SL i9003] xGiox:
yeah but v10 on max 1380 mhz is working perfectly and v12 same clock wi fi is bugged,so it cant be related only to clock.
[Samsung Galaxy SL i9003] adaba:
Mate it's like computers CPU, some o/c very well some don't even though they are the same model and it applies to phone too, your i9003 supporting 1.3 ghz without any error doesn't mean mine can do as well...
[Samsung Galaxy SL i9003] marialigaya456:
can i flash this in kpu? thanks
[Samsung Galaxy SL i9003] ivAnash:
Yes you can. Try to go through a few earlier posts, you'll always find ur answers there..
[Samsung Galaxy SL i9003] jesrani:
Ever since I switched over from MIUI back to KPQ a couple of months back, my phone has been behaving strangely. It gives Kernel panic randomly. Also, not able to use any UC kernel above v9. Gets stuck on the initial Samsung logo. Tried V12 and same result. Flashed v8_fix and it works.

Can anyone help?
[Samsung Galaxy SL i9003] vishal24387:
@ doomlord & napster & all kernel developer

One of our member raj.amalw contacted to nook color tablet usb host developer. He got this reply.

xdaforums.com/showpost.php?p=25247242&postcount=56
[Samsung Galaxy SL i9003] DooMLoRD:
thanks we will look into it...

seems this is the relevant branch

https://github.com/dalingrin/nook_kernel/commits/usbhost
[Samsung Galaxy SL i9003] vishal24387:
thanx...i purposefully posted this in ur thread only. Because u have great knowledge, experience & all related stuffs related to usb otg. Do u have device with u?
[Samsung Galaxy SL i9003] raj.amalw:
Fingers crossed
[Samsung Galaxy SL i9003] DooMLoRD:
device is with Napstar and he is gone home for weekend...

dont worry, we will do some testing when he is back...

i dont want to make any promises, but be rest assured we will try our best...
[Samsung Galaxy SL i9003] vishal24387:
solapur...? I am also in solapur for my hollydays ;) Anyway I hope some positive results will come soon from u. But I am more worried about will our device pass the necessary voltage to operate external device or not??
[Samsung Galaxy SL i9003] XDA_Bam:
@Napstar: If my solution for freq control doesn't work, have a look at this commit. Sooner or later, I'm going to try it, too. But currently, I'm longterm testing battery consumption...
[Samsung Galaxy SL i9003] DooMLoRD:
exact entry function: omap_cpu_init

perfect!

i am sure this will work as its a throttle at kernel level right when the CPU freq table is initialized...

this should solve booting issues on almost 99% of the devices
[Samsung Galaxy SL i9003] xGiox:
omg now i am just spamming this tread,i report that i get wi-fi error from time to time on v12 version,and i didn't have it on v10(v11 did not test),same configuration used on both v10 and v12 (300-1380mhz lionheart sio).so it cant be related to frequency in my case.
[Samsung Galaxy SL i9003] vishal24387:
ok buddy we understood ur problem. I hope UC team will solve this in next version :)
[Samsung Galaxy SL i9003] xiaoaxel:
how about the battery life of v12?
[Samsung Galaxy SL i9003] vishal24387:
depends upon ur usage & choosen frequency.
[Samsung Galaxy SL i9003] jesrani:
Bump
[Samsung Galaxy SL i9003] ggclanlord:
Just try a clean flash, all over from XXKPE with pit.
[Samsung Galaxy SL i9003] vishal24387:
can u able to boot ur phone with any kernel having greater than 1200 mhz freq??
[Samsung Galaxy SL i9003] alex88510:
Last time while testing v11, I faced wifi error problem.

So, I flashed back to v9 #1009 version to solve the wifi error.

Today, the wifi problem is back again which it didn't happen before in v9 #1009.

Don't know what causing it as the max freq is 1200mhz which my phone can handle well before in the same kernel version.:confused:

Maybe something from v11 isn't replaced probably when flash back to v9?:confused::confused:
[Samsung Galaxy SL i9003] joelmonty:
I'm on v12 it's very good kernel but the default governor and even conservative are not working properly even in standby mode while music is playing it's stuck at 1 ghz which causes massive battery drain putting governor in ondemand fixes the frequency scaling.
[Samsung Galaxy SL i9003] velve.ffff:
hi

Hi everyone, greats work, can i do one answer?

static struct omap_opp_def __initdata omap36xx_opp_def_list[] = {
/* MPU OPP1 - OPP50 */
//	OMAP_OPP_DEF("mpu", true, 200000000, 925000),
/* MPU OPP1 - OPP50 */
OMAP_OPP_DEF("mpu", true, 300000000, 1025000),
/* MPU OPP2 - OPP100 */
OMAP_OPP_DEF("mpu", true, 600000000, 1200000),
/* MPU OPP3 - OPP-Turbo */
OMAP_OPP_DEF("mpu", true, 800000000, 1330000),
/* MPU OPP4 - OPP-SB */
OMAP_OPP_DEF("mpu", true, 1000000000, 1387500),
/* MPU OPP5 */
// testing 1.20 ghz
//	OMAP_OPP_DEF("mpu", false, 1200000000, 1400000),
// testing 1.25 ghz
//	OMAP_OPP_DEF("mpu", false, 1250000000, 1400000),
// testing 1.30 ghz
OMAP_OPP_DEF("mpu", false, 1300000000, 1450000),

Have you modifier any voltage, or are the same that are in github? ^^

anyway great work, but now i need stability using XDA Bam kernel, this kernel ( i think is Ramdisk ) return bootloop in same condition, bam kernel boot, i dont know why :)
[Samsung Galaxy SL i9003] ggclanlord:
I posted a BetterBatteryStats dump file in its thread.

The dev quoted this part

================

Kernel Wakelocks

================

"samsung-battery" (): 20 m 47 s (1247 s) Cnt:(c/wc/ec)420/234/420 3.9%

And replied this

Well, since I'm on UC kernel v9 #2009, and dev was talking about kernel issues, thought I'd post it here. Maybe UC team can give some insight.
[Samsung Galaxy SL i9003] XDA_Bam:
I am not quite sure, but I think your answer is here.
[Samsung Galaxy SL i9003] ggclanlord:
Okay. So why does it operate when the phone is not on charging?

Means, The BetterBatteryStats dev said correctly that, kernel behaves as if the phone is still on charging.

That shouldn't happen under normal circumstances, right?
[Samsung Galaxy SL i9003] XDA_Bam:
The phone is updating the battery stats and checking if the battery is low to give the 15% and 5% warning, if necessary. If it detects less than 1% battery remaining, it will shut down. This is normal behaviour and has to be done. The only possible way to lower the wakeup count is to extend the battery checking intervall from 30 to - say - 90 seconds. But I wouldn't recommend it.
[Samsung Galaxy SL i9003] ggclanlord:
Okay. Got it. :D

Why would you recommend such?
[Samsung Galaxy SL i9003] jesrani:
Yes I could flash v9 but 1.3 was not stable for me so using 1.2, that works. Even now I think I am able to flash v9 but not beyond that.
[Samsung Galaxy SL i9003] ivAnash:
Another question along with the one above.. What is this 'suspend ' process that is always at the top in better battery stats processes...
[Samsung Galaxy SL i9003] earldroid:
Im on v12. I looked at cpu spy. 200mhz 120mhz cpu states are not used. My minmax is 120-1300 smartassv2. When i looked at setcpu, it stays at 300mhz and does not go down to 200 or 120. I even tried to set 120 as minmax but it still stays at 300.
[Samsung Galaxy SL i9003] gabebcn:
do you use wifi? try to disconnect wifi and reboot your phone without wifi,only 3G...
[Samsung Galaxy SL i9003] earldroid:
I am not using wifi. Photo capturing, video recording, wifi, gps, bluetooth are all working perfectly. Only issue are the unused cpu states(120,200) but deep sleep has no problems

Edit: All speed bins are now being used. Several reboots was the solution. But now Im having random reboots while video recording 1280x720 at min120 max1300 and stuttering in playing 1280x720 videos. But stable on min300 max 1200
[Samsung Galaxy SL i9003] vishal24387:
@ Doomlord & napster

First of all sorry for off topic. Guys can u both give me ur high quality avatar images so that we can creat ur UC kernel's signature image???
[Samsung Galaxy SL i9003] Taraen:
@vishal24387: If you didn't know: Google can search pictures with pictures. Simply paste the image url into the image search and google will give you a suggestion that will activate that function. Very useful ;)

Napster's Avatar: http://eu.fotolia.com/id/14492118

Doomlord's Avatar: http://fernandosls.flogbrasil.terra.com.br/foto12952776.html

</Off-Topic>
[Samsung Galaxy SL i9003] vishal24387:
@ doomlord & napster

we need ur help in ICS kernel development. Please take a look here

xdaforums.com/showpost.php?p=25888395&postcount=1319
[Samsung Galaxy SL i9003] ggclanlord:
Yea, it'd be wonderful, if you guys can get even a base kernel up and running, without any additional features.

Obviously, work at your own ease and leisure.
[Samsung Galaxy SL i9003] vishal24387:
YAHOOOOO...

Yahooo guys...Today I contacted to doomlord & napster. They told me that they are seriously working on usb otg feature using nook color kernel code. Even they stopped next version of kernel for working on usb otg feature.

Really Thank You UC team...: :)
[Samsung Galaxy SL i9003] DooMLoRD:
generally i give users of my kernel (DooMKernel) the following sig:

i will have to talk to one of my friends who creates designs for making a good logo/sig for our team :)

@ALL

kernel level CPU freq thresholding is now done! kernel should now boot on MOST devices... Napstar will soon release the kernel...
[Samsung Galaxy SL i9003] Napstar:
UC-Kernel v13 Released!

UC-Kernel v13 Released!

[ screenshot ]

[ features / changelog ]

Implemented kernel level control for boot-time cpufreq. Now kernel will boot with default maximum cpufreq of 1000MHz and lower cpufreq limit of 300MHz. :)

Corrected voltages and DSP frequency which should fix problems with video playing, recording etc.

Corrected sync bug fix again which had got messed up during kernel sources upgrade ;)

[ Problems ]

wifi error still exists. When you use wifi your device won't use 120 and 200MHz frequencies. You need to reboot for that. We are trying to fix that.

Check this post

we have not added the CPU voltage control interface to this kernel as well. it will be released soon...

And we are still working on USB_host.

[ download links ]

KINDLY DO NOT MIRROR OUR FILES

UC-Kernel v13

[click for QR code

]

MD5HASH: be5ec159f7a3301b678ba8bc4334fb3c

please test out and let us know your feedback!

ENJOY!
[Samsung Galaxy SL i9003] DooMLoRD:
some updates on USB-OTG...

we have got some progress on this... lets see we will try a powered USB hub tomorrow to see how things work out...
[Samsung Galaxy SL i9003] vurrut:
Good news!!!!!!

Otg is my obsession! Many hours in the problem. If your need me, pm.

I solve some problems/patches with load kernel in mode Host.

Greetings

Enviado desde mi HTC Sensation usando Tapatalk 2
[Samsung Galaxy SL i9003] Napstar:
[ Note ] For UC kernel v13 users

If you feel force close or your device hangs when your device is set to have policy with maximum cpufreq 1380MHz then that means your device requires higher voltage to run same task.

[What to do? ]

Wait guys..

We are developing on vdd_sysfs. As soon as it gets ready, you can control your VDD levels as per need.
[Samsung Galaxy SL i9003] vishal24387:
wow...Really thank u guys. U really made my day :D I am so happy guys.

Just one question that from ur testings is our device not capable alone to give give power or current to external device???

---------- Post added at 08:25 AM ---------- Previous post was at 08:04 AM ----------

u also working on usb otg??? Wow..its a great surprise for me. I am sure that now we will really get otg feature in near future.
[Samsung Galaxy SL i9003] ggclanlord:
Hey UC team. Awesome work.

Didn't upgrade to v12 because of the issues. Also I'm in midst of professional exams, so, couldn't afford to mess up with my phone.

Trying v13 now. Feedback in sometime.

Edit -

Sexy UI in Recovery.

Felt a lot smoother than v9 #2009.

Awesome work overall!

DDKP3

Min max - 120-1000

Smartassv2

Deadline

But ran into a couple of problems.

Don't have memory card so couldn't test any videos. So thought to capture one. But phone started acting weird, freezed a lot. So had to restart.

Thought to give Youtube a try. Same thing. Video got loaded for a couple of seconds [was getting downloaded for a couple of seconds, not that it played for a couple of seconds]. And then the phone freeze. Rather, TwLauncher freezed. Didn't FC. But couldn't do anything with it.

The frequency was stuck at 1100 MHz during the time.

Back to v9 #2009 for a couple of days. Exams going on, so can't do much testing for now.
[Samsung Galaxy SL i9003] vishal24387:
After a busy day I just got some time to flash kernel. I am really surprised that why many people are not testing new release of UC kernel...! Its a humble request to all people to please test this new release of kernel & give ur valuable feedback so that UC team can correct bugs reported by you guys. It will help us to get more perfect kernel from UC team :)

Anyway its time for feedback ;)

-phone successfully booted :D at only max 1ghz like UC team said

-I set profile in set cpu as when screen goes off governer becomes conservative & min, max freq 120 mhz. I am surprised when I looked into cpuspy that actually goes to 120 mhz lowest freq :D which help alot to save battery alot.

-when I try to open camera phone reboots :(

-when I try to play mp4, avi videos my phone reboots.

My configuration -

sio, smartassv2 min-300mhz max-1ghz

I will test more :)
[Samsung Galaxy SL i9003] pancit:
same here...

Camera works randomly...

If I open camera after a fresh restart, it works but takes a long time initializing...

If I open it when I am currently on a WiFi connection, initializing takes more time...

If I open it after several hours of using my phone, phone hangs up... or sometimes reboot...

But, after a long time of initializing and camera is working... video recording works unlike v12... and front camera is also working

Tested on smartassv2, bfq with min at 300Mhz, max at 1.2Ghz - 1.3Ghz

Forgot to mention: I'm running on DXKP9 :D
[Samsung Galaxy SL i9003] sirilpta:
using v13 on ddkp3

1. video doesnt records and screen freezes

2. youtube doesnt play videos and it freezes need to be restarted

3. hd videos doesnt play...

my config bfq lionheart 300-1000
[Samsung Galaxy SL i9003] jan3586:
Weird, I experience a kind of SOD when leaving the phone idle. I can feel that there is something going on but the screen won't display anything. The slow camera opening is still there.

@Vishal Did you try the kernel with your ICS Theme with the modded camera? Is it opening fast?

My config: Vurrut ROM 5.0, XXKPQ, SmartAssV2 and SIO. Max 1.2 GHz, Min 300 MHz. Going back to v9 1009 for now.. Thanks DoomLord and Napstar.
[Samsung Galaxy SL i9003] Napstar:
its weird that our development device does not show such problems though using same phone profile.

We will try and add few other mods so as to correct these bugs.
[Samsung Galaxy SL i9003] vishal24387:
on ur device what cpu settings u keep?? We will try those same settings & try for ur kernel & we will check wheather we face same bugs or not.
[Samsung Galaxy SL i9003] jan3586:
I clean flashed my device XXKPE -> XXKPQ today. Before I flash Vurrut ROM again, I tried UC Kernel on my almost stock install.

- Camera is opening as normal, the slow opening issue might be ROM or modded camera incompatibility with UC Kernel.

- No SD Card not detected.

- Phone is generally slower than normal.

XXKPQ Stock, 300 MHz - 1000 MHZ, stock governors and schedulers. UC Kernel V13
[Samsung Galaxy SL i9003] saywhatt:
sweeet! trying this out with my XXKPQ :D
[Samsung Galaxy SL i9003] vishal24387:
@ napster

Does this mod creat any problem?? I am using this mod.

xdaforums.com/showthread.php?t=1583259
[Samsung Galaxy SL i9003] ayush95gupta:
Amazing...

Tnx bro......sry i cdnt donate...

But this kernal works like a charm....on kpq:cool:
[Samsung Galaxy SL i9003] Tarun.krthkr:
No issues with the cmw v5:)...the restore was successful which i had backed up using older cmw v4 :D
[Samsung Galaxy SL i9003] ganeshbiyer:
@To All Devs:

Implementation of Deep-Idle in the kernel to reduce the Battery consumption.

Link is here.

Look into this and see if we can implement this into our kernel to reduce the battery consumption.
[Samsung Galaxy SL i9003] DooMLoRD:
yes i already know abt this... we will investigate this later...

@ALL

kindly keep this thread clean and use it only for posting genuine issues/bugs...

as i previously stated kindly post recovery related issues in amit's universal cf-root thread...

@anyone interested in compiling kernels

hey guys i have uploaded the toolchains which work for me here:

https://github.com/DooMLoRD/android_prebuilt_toolchains

for SGS-SCL kernel the arm-eabi-4.4.3 (from CM repo) works fine... so i recommend using that...
[Samsung Galaxy SL i9003] nitishagar:
"I installed the v02 kernel on kpq but my wifi is not working as in it's not connecting to internet :("

[SOLVED] There was some problem in the airplane mode with wifi enabled
[Samsung Galaxy SL i9003] DooMLoRD:
small update

i have figured out how to enabled custom bootlogo...

thanks to Skin1980's work...

right now i have integrated code into kernel (ramdisk) which will push our bootlogo and let u guys change the logo if u want...
[Samsung Galaxy SL i9003] crk1995:
I want to know whether i would restore my stock kernel if i flash stock firmware after flashing this kernel( supposidly it doesnt works for me or i want to get back to stock kernel)..

PLS HELP
[Samsung Galaxy SL i9003] DooMLoRD:
flashing FULL stock firmware will restore stock kernel...
[Samsung Galaxy SL i9003] vishal24387:
@ doomlord

ur small updates always inspire us to wait patiently for next update :)
[Samsung Galaxy SL i9003] ganeshbiyer:
Formatted 1gb micro sd card with jfs.

From recovery mode thru adb mounted it.

Moved/Deleted data.

rootfs on / type rootfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=111)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,relatime)
/dev/block/stl6 on /mnt/.lfs type j4fs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/block/stl9 on /system type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/block/stl3 on /efs type rfs (rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8)
debugfs on /debug type debugfs (rw,relatime)
/dev/block/stl11 on /cache type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
[B][COLOR=Blue]/dev/block/mmcblk1p1 on /mnt/sd type jfs (rw,relatime)[/COLOR][/B]

/mnt # cd /mnt/sd
/mnt/sd # ls
viber
/mnt/sd #

So, jfs works!

Help Needed:

1. Now how to make mount automatically at boot.

2. How to format all the ext4 partitions to jfs.
[Samsung Galaxy SL i9003] DooMLoRD:
great!

ans 1] modify fstab (but remember the partition wont be recognized by android) SDCARD partition needs to be FAT32 to be recognized by android (vold issues)

ans 2] run a small script via update.zip (like u guys do for EXT4) and then format those partitions to that FS then restore backup :)

those who know wht they are doing can try it :)