Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mai77
Old
(Last edited by mai77; 6th April 2012 at 01:24 PM.)
#31  
mai77's Avatar
Senior Member
Thanks Meter 443
Posts: 1,112
Join Date: Nov 2011
Lightbulb gdb

to debug the kernel in the emulator:

Configure the kernel by hand to include debugging symbols:

cd kernel
make menuconfig

Select Kernel hacking or whatever it is called and select the item which says to compile the kernel with debugging info.

make
cd ..

When starting the emulator use sth. like: (but change the openbsd refs to linux)

out/host/openbsd-x86_64/bin/emulator -show-kernel -system out/target/product/generic -kernel kernel/arch/arm/boot/zImage -logcat *:v -qemu -monitor telnet::4444,server -s

then it will sit waiting for you to prepare your gdb session:

prebuilt/openbsd-x86_64/toolchain/arm-eabi-4.2.1/bin/arm-eabi-gdb kernel/vmlinux
(gdb) br sys_execve (or some other place you want to gain control)
(gdb) target remote localhost:1234

and then, in another window, release qemu by attaching to its monitor:

telnet localhost 4444
(qemu) cont
maintained SGY instructions and kernel report
Ynterstellar Yphone assemblY on Youngdroid YdeologY
 
irfanbagus
Old
#32  
Senior Member - OP
Thanks Meter 449
Posts: 307
Join Date: Mar 2012
thanks mai, unfortunately emulator (qemu) not going help in this case. unless broadcom release bcm21533 emulator

i have good and bad news. good news : the patch is work, means my assumption about freq control in bcm21533 maybe right. bad news : we stuck in 832MHz, at lest until got new data/info. 832MHz already use biggest mode and pll divider register is read-only (at least from software)

other 'bad' news is, look like under clock will not give big boost in battery performance. look at my attached image, that's cpu freq state from my phone after more than 2 days (data off, wifi on when screen on, 624MHz performance while screen on, 312MHz performance while screen off). for normal usage (text,phone,light game/browsing) the phone spend more than 50% in deep sleep. add improvement to cpufreq will not help much and maybe event make it worse (search about "race-to-idle").
Attached Thumbnails
Click image for larger version

Name:	SC20120330-192511.png
Views:	189
Size:	24.5 KB
ID:	993677  
 
ARVolutionz
Old
#33  
ARVolutionz's Avatar
Senior Member
Thanks Meter 35
Posts: 139
Join Date: Mar 2012
what if 0xG? hmm this phone's chipset is not really flexible i think..
 
irfanbagus
Old
#34  
Senior Member - OP
Thanks Meter 449
Posts: 307
Join Date: Mar 2012
Quote:
Originally Posted by ARVolutionz View Post
what if 0xG?
there is no such number.
f is biggest notation in hexadecimal. next to 0xf is 0x10, but i don't think that mode exist. the kernel even explicitly cut mode to 0xf. but that's just my opinion, i don't try yet, so if you want to try please do it and let me and others know the result.

the fact that pll divider register/memory is expose maybe show that value can be change. but maybe only can change with set some flag bit or only possible using hardware programmer. without more info/doc almost impossible to know.

Quote:
Originally Posted by ARVolutionz View Post
hmm this phone's chipset is not really flexible i think..
from price/features stand point, bcm21533 is good deal. it have usb-otg, and (possibility) build-in audio equalizer. the problems is samsung (and broadcom) don't use all the features and don't even release any documentation about it.
 
ARVolutionz
Old
#35  
ARVolutionz's Avatar
Senior Member
Thanks Meter 35
Posts: 139
Join Date: Mar 2012
lol i thought that was a "legit" variable..
the phone sets to 832 (maybe) only when 624 mhz is running at 80% usage.. so thats just a maybe to me..
 
Maroc-OS
Old
#36  
Maroc-OS's Avatar
Recognized Developer
Thanks Meter 3436
Posts: 853
Join Date: Mar 2012
Location: Casablanca

 
DONATE TO ME
check this out : http://forum.xda-developers.com/show...2#post24637502
Where is My Thanks..?? The Thanks Button is just Right Here.

Help on MT Kernels Devolopment
__________________
PAYPAL

----------
DIXIPAY

STOCK - GT-S5360 -MerrukTechnology Kernel LATEST Version
MT Kernel Developer Edition 4 (v.2.5) By Merruk's Team + Ext4 Converter
MT Kernel Devolopper Edition Deluxe Version (v.2.5) By Merruk's Team
Always see our repository @ Github for latest coding news
Kernel Page on Github

Joing US on IRC Chat @ freenode.net server channel #galaxy_y

Use the latest Merruk Tehnology kernel from the topic (For Noobs)
Linux Kernel Version 2.6.35.14
Fixing Stock Kernel Problems...

----------

Please Sing This Petition to Got Drivers from Broadcom
.
TODO List :
.
Soon....

----------
 
renr29
Old
#37  
Senior Member
Thanks Meter 7
Posts: 251
Join Date: Apr 2012
Location: Vigan City
What is this bro???? another kernel besides maroc?
 
irfanbagus
Old
#38  
Senior Member - OP
Thanks Meter 449
Posts: 307
Join Date: Mar 2012
Quote:
Originally Posted by Maroc-OS View Post
i did, and no kernel source for 1ghz. and some micro have non changeable register/memory. it's like fuse, once written they store the value forever, or if possible can change use special programmer (usually using jtag). if this is what we got, good bye overclock

Quote:
Originally Posted by renr29 View Post
What is this bro???? another kernel besides maroc?
not 'complete' kernel, just patch. please read first post.
 
renr29
Old
#39  
Senior Member
Thanks Meter 7
Posts: 251
Join Date: Apr 2012
Location: Vigan City
What does it do then/.??
 
championswimmer
Old
#40  
championswimmer's Avatar
Senior Member
Thanks Meter 6518
Posts: 4,568
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)
hi friend

i notice we have already got overclock on 5360 ...
but i'm currently trying to work on S6120 (i.e. Galaxy Y Duos)

it uses same processor bcm-21553

so overclocking and enabling 624mhz etc should work here too

i just want to know what changes are need to clock-21553.c file to get other frequencies working??

i have developed only snapdragon kernels till now and the bcm clock file is giving me headaches

any help will be appreciated


the kernel sources for S6102 i have pushed to github (as of now, without any changes at all made to original sources..totally untouched)

https://github.com/championswimmer/kCernel-S6120
If you like my work, you can donate via PayPal or buy some of my apps on Play Store

CONTRIBUTIONS :
KangXperiaProject | TWRP for Xperia | Xperia X10 | Kernel Kitchen

KXP ROM mirrors : Ul.to |or| Goo.IM

My sources on github
List of donators

Phones
Xperia :: tipo : X10 : J : S : V : Z : TabZ

 
Post Reply+
Tags
cpu spy, sgy custom kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...