yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] dtrail1:
These modules were compiled ONLY for the Motorola 3.0.8 Kernel. In the past I compiled a few of these modules for the last kexec 3.0.31+ Kernel, but I don't know if they are working on the new kernel.

Edit: Sorry, the ICS kexec kernel is also 3.0.8

BUT: This is a custom kernel. It should be more easy to build OC/VSEL-Features directly into the kernel.

Hashcode: Many many thanks for this thread! And I wanted to say that you and dhacker are really doing GREAT work here! Thank you for bringing Kexec back to life and for making our Razr an OFFICIAL CM/AOKP Device!

I hope it's okay if I build a new modified kernel from your source..
[Motorola Droid RAZR] Ravikirancg:
Re: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR

Any chance/hope for atrix 2(edison) support?
[Motorola Droid RAZR] dtrail1:
These modules are running on JB Kernel without issues, except one little thing: The hotplugxtreme governor together with the newer cpu_control.ko module includes a method to prevent the kernels qos request which sets the cpu frequency back to 300mhz min after some time. It works great on the ICS kernel but on JB kernel the custom set frequency (when lower than 300) stays for 2-3 days, then it will be set back to 300. A reboot fixes it temporarely. I've written a cron-based temporary solution, it doesn't effect battery or wakelocks on most roms, but on some roms it causes wakelocks.

But the governors and the sio scheduler are working great, except the hotplugx governor which causes very weird issues on JB kernel. But I have to say that these newer two modules aren't included in the kernel modules pack from the thread.
[Motorola Droid RAZR] prstorero:
Re: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR

Are you referring to the Christmas jb kernel or the soak one? I read that people on the soak would boot loop when they would flash the governors.

Full-Throttle Team

Android Aggression Team
[Motorola Droid RAZR] dtrail1:
The leak, not JB soak version.
[Motorola Droid RAZR] prstorero:
Re: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR

Bummer I was hoping for good news haha

Full-Throttle Team

Android Aggression Team
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR

But I'm now building a new kernel with these modules included, but not for the jb kernel but for kexec.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] prstorero:
Re: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR

We need some stock kernel love haha :)

Full-Throttle Team

Android Aggression Team
[Motorola Droid RAZR] dtrail1:
Cannot continue here....

I've succesfully compiled the kernel (ics 3.0.8) without any changes. I used U LTS Linaro 4.6.3 and arm-eabi-4.4.3 cross compiler. As I understood I can use the existing ramdisk.img which is included in /system/etc/kexec inside the kexec test builds. So I renamed the zImage to kernel and just pushed it into this folder, set the right permissions and tried to boot. But it doesn't boot... I checked cat /proc/version on the device with dhackers build (GCC 4.4.3).

Do I have to compile the kernel with exactly the same compiler to be able to boot it with the test built? Or do I have to build my own ramdisk? Could someone please point me into the right direction here? thx.

Edit: However.. Now building gcc 4.4.3 for my machine and try again then...hope it works...

EDit: lol.....xD....:D My mistake was to copy the uncompressed kernel via my windows computer to the device instead of zipping, copying and unpacking directly on device! Searched many hours for a solution which doesn't exist! **** happens! Anyways, it booted, so I can continue with rewrite it. :)
[Motorola Droid RAZR] Hashcode:
Also, new branch "jb-mr1" is best for use on JB-MR1. This will eventually get merged into CM-10.1 as our official kernel. It works w/ new hwcomposer code which will also be pushed.
[Motorola Droid RAZR] mrl515:
Forgive me for the random question, but is anybody else having problems with the camera freezing about five seconds after opening and giving a Gallery not responding dialog? Other than that it's flawless, great job dhacker and hash
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

Maybe you should post this question in the related rom thread.

@Hashcode: Great news! Besides of hw comp, what is working?

Btw, I have compiled the modules and got working Overclocking and voltage. I try to merge in the android tuna project from blaze tab to add these features directly into the kernel.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] minkn:
I'm happy in JB-MR1 new KEXEC kerned, interface smooth, USB mass storage it work, I test 3 hour it not stop working :good: On the right track.

:fingers-crossed::fingers-crossed::fingers-crossed: Sorry I'm noop english language
[Motorola Droid RAZR] Nandeh:
Same here, just waiting for somebody who can integrate governors into the new Kernel :D
[Motorola Droid RAZR] minkn:
You're right.
[Motorola Droid RAZR] YoungSkeezy:
Hotspot working

Sooooooooo Does WiFi hotspot/usb tethering confirmed working?? :D
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

I can, and I did. Tomorrow I'll compile them for mr1.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] Nandeh:
I have noticed some graphic glitches when locking screen in last Kexec CM10.1 build... just FYI :)
[Motorola Droid RAZR] megawebmaster:
Is anyone seeing that KEXEC kernel lacks Deep Sleep state? BetterBatteryStats reports it works only on 300 MHz instead of going into Deep Sleep. Battery lasts for a day max...
[Motorola Droid RAZR] leisures:
Works for me....

Enviado desde mi XT910 usando Tapatalk 2
[Motorola Droid RAZR] Nandeh:
This has fixed disabling HW overlaying from Developers Tools :good:
[Motorola Droid RAZR] dtrail1:
Overclock modules for MR1JB Kernel have been compiled by me, and they are working! Keep in mind that you have to set "ondemand" governor BEFORE you change custom voltage/frequency for the first time! After that you can set any governor you want!

DOWNLOAD
[Motorola Droid RAZR] T39m:
What's the difference between Kexec Rom and JB-MR1 Kexec?
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

The kernel is a different one. Mr1 is based on the Moto JB Kernel merged with Googles jb kernel (someone might correct me) and kexec is based on Moto ICS stock kernel.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] n3ptun3:
I've moved on to a unlocked BL RAZR HD with hope of faster fully working CM support, and now I see the RAZR is now not only an official CM device, it is receiving quite frequent updates. Too bad for me, great news for the community. Nice job!
[Motorola Droid RAZR] HSD-Pilot:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

:D The unlocked i also still got no CM. But hey, no trouble with rooting this Phones > flash CWM > flash Root.zip > profit

Gesendet von meinem XT890 mit Tapatalk 2
[Motorola Droid RAZR] T39m:
Which is the best one?JB-MR1 or Kexec?
[Motorola Droid RAZR] Nandeh:
I'm having problems with APN, can't save them and doesn't work auto-detection... Any ideas?

Thanks!
[Motorola Droid RAZR] dtrail1:
Enter and save the APN, don't worry if you cannot see it, just reboot and wait a minute.

Hashcode & dhacker: Many many many thanks for your work!! I have to say it again because without you the following would never become possible!!

I've rewritten some code inside the kernel, fixed the CPU Custom Voltage on boot issue, fixed (temporarily) the Kernel problem and now packing the Rom & Kernel Package for the testers.

Now testing before sending to testers... ;)

Edit: It works!!!! :D Yeah!!! Now extending the OPP table!

ANother thing: Let's check how high we can overclock directly by kernel :D

Ok, let's note some things up:

- Max supported voltage (read from source code) is 1410mV. We MUST'NT NEVER try anything OVER this value!

- There is an easy calculating method to calculate the optimum vsel for each frequency

- The OMAP4430 is though locked at 1.0ghz, so our CPU is already OC at 1,2ghz

- The Samsung Galaxy S2+ (I9100G) has also OMAP4430 CPU and it's max stable OC is 1,6ghz

- The old SGS2 (I9100) has an older Cortex CPU (OMAP4430 is better) and it's max stable OC is also at 1,6ghz (by Siyah Kernel)

- This is taken from Gen9, which has also OMAP4430 CPU: - Omap 4430 1.2GHz stock => overclock max. 1.44GHz ;

- Our most stable max OC until now was overclocked by Whirleyes module: 1,35ghz

Any clue on this anyone? First thing I am going to try is VERY CAREFULLY how high we can push it with MAX mV of 1410!
[Motorola Droid RAZR] Nandeh:
Governors modules will work on the last build with test kernel? I mean 3.0.23 compiled by dhacker...

Thanks everyone for your great work!!
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

3.0.23 is another kernel. I've compiled the modules for use with 3.0.8.mr1 (jelly bean) kernel.

Gesendet von meinem XT925 mit Tapatalk 2
[Motorola Droid RAZR] xtam:
Thanks, are you going to compile them, you or anyone, for new 3.0.31 ?

thanks :)
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

Let me finish my kernel and Rom project first.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] dtrail1:
Anyone knows if hwcomposer is working now on Stock-ics-kexec cm10.1 builds?
[Motorola Droid RAZR] Sisqo:
On nightly 17.03 I think it was
[Motorola Droid RAZR] Xrunner87:
I have overclocked to 1.44GHz woth 1390mv...And its stable ,except it use too much battery.
[Motorola Droid RAZR] Vatazhka:
I don't want to downgrade your achievements, but you are trying to tweak frequency-voltage pairs (Operating Points, OPs) to your particular SoC instance. Chips are not made equal, some lots are better than the others. The ones manufactured from silicone in the center of a wafer have usually less imperfections than the ones closer to the edge.

IMHO you should stick to manufacturer defaults into your ROMs, especially that RAZRs are clocked way beyond manufacturer's specifications. RAZRs default to maximum clock frequency of 1.2 GHz instead of 1 GHz defined by TI - is this due to the chips inside RAZRs being "select" ones or manufactured using a different process than regular ones? You can of course try to OC or UV more than defined in the stock firmware, but increasing number of users will be reporting various issues (lags due to thermal protection kicking in, FCs or even inability to boot in hot environments such as car dashboard on a hot sunny day). Each and every OC/UV stunt beyond recommended specs should be carefully tested on each particular device it is applied to unless you are eager to take responsibility for user's data.

This is not purely theoretical - I don't have a degree or work experience in this area, but I owned two OMAP3430-based Milestones, which had vastly different characteristics with regard to stable OPs.
[Motorola Droid RAZR] altus:
+1 :good:
[Motorola Droid RAZR] dtrail1:
Thanks :)

Yes, I know that our TI 4430 os already OCed by factory...reffering to my prior posts:

And only OCing by modules isn't the same like OCing by kernel... I've heard about a dev razr which was running stable on 2,0ghz (!) - but it was getting so hot that you couldn't carry it in your bag lol

however: This CPU can be OCed up to 1,6ghz without getting very hot and without lags...but not by modules. Modules max OC is around 1,35ghz

E.G. the I9100G has the same CPU, OCed up to 1,6ghz by Siyah Kernel.

BUT: I need some more time until I can get Live OC support into the kernel (have to modify many files and write much code...), until then we are writing an UI which provides live vsel/OC control based on modules - but this time with possibility to save settings and load on boot - and also with a fixed range of values to prevent users from damage their phones.

The good message here is: This GUI is written soon (hopefully) and better: I could finally build an STABLE OC-able kernel now for use with CM10.1 roms.

I'll include it into my rom, let the testers run it for a while, then make it public. And as soon as I can see, that it runs w/o issues on users devices, I'll make the kernel public as a standalone version, just to flash over any CM10.1/AOKP Rom.

The same kernel will be also built for Stock based roms.

P.S. GPU OCed up to 387 from 307 mhz - stable. Patched some parts of other kernels and stuff to provide better battery saving abbilities. In my personal tests I got very good battery life...But I have just found a solution for make a cokmplete rom built with kernel which runs from inital boot on clean slots....Progress is going on :)
[Motorola Droid RAZR] altus:
Hi

the important point was also the following one :

you are trying to tweak frequency-voltage pairs to your particular SoC instance. Chips are not made equal, some lots are better than the others

i.e. what works on your razr won't ncessarily work on another one.

The suggestion is that each user finds its own overcloking rate, don't spend too much time finding your optimum setting as no one else might benefit from your work.

overclocking via modules it not the same than overclocking via kernel ? sorry ? :silly:
[Motorola Droid RAZR] jordanchow725:
Can I flash it in China stock 4.12, what is the difference ? Can I oc to 1400 with stable

---------- Post added at 11:43 PM ---------- Previous post was at 11:41 PM ----------

How to flash it
[Motorola Droid RAZR] artur0588:
Can we use official kernel load instead of Kexec?
[Motorola Droid RAZR] dtrail1:
YOu can use official kernels direclty on your device...But read the OP, Hashcode has clearly explained about everything. There are branches on Git, e.g. exactly copy of the ICS Stock kernel which runs on kexec.

---------- Post added at 06:27 PM ---------- Previous post was at 06:13 PM ----------

Yes, that's right. Each device is a bit different, because of that each user has to find his "personal" max OC value.

The difference between OCing by modules and by kernel: Overclocking by modules is a primary solution for devices without custom kernels, because of locke bootloaders, etc. In this case you won't get full access to all depencie, libs and stuff which can be used for overclocking and vsel controls. But you can get partly access via modules and have some influence to the system. Regarding to the cpu-control modules I've never seend someone with a razr who was able to OC really much more than 1400mhz. That's because a module cannot access all needed "areas" and "security systems" of a running kernel (Sure, it may be possible - if there's someone who is really skilled with these things).

The advantage of modifying anything you want in the kernel gives you much more powerfull possibilites to hack/OC/UV the device because it is much easier to to build it directly into the kernel than hacking it "form outside" while it's running and secured.

I'm really not an expert with this stuff, that's why I posted here to hear your thoughts or maybe someone's there who is more talented ..

However, that's at least onyl my oppinion and it may be totally wrong indeed.. :)

I guess found a good setting for everyone who wants to use this kernel, but therefore it has to tested on some devices. ALso I'm not finished with the Custom Voltage Interface, because it is ported from Gnex I have to fix some code there..An alternate temporay solution is to use the modules and writing an GUI for them - what we're currently doing.. But any help would be appreciated of course.
[Motorola Droid RAZR] artur0588:
If i can flash official kernels i don't ask. After official ota update android jb 4.1.2 Vodafone i can not run any kernel except native one.
[Motorola Droid RAZR] Vatazhka:
It's been some time since I've written kernel code, but I still remember the architectural principles. Linux kernel and modules run in the same context, so IMHO there's no real benefit in embedding code directly in the kernel. The only reason something has to be built in the kernel are when sth needs to run early in the boot process. A module will have access to all kernel public (exported) interfaces and structures. For the unexported ones you can use symsearch.
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

Ok, learned something new here :)

I'm only wondering how this user could OC his dev Razr stable to 2ghz?

However, You seem to be more skilled regarding to kernel. Interested in participating in and help me to port custom voltage?

Kernel update: since I've been using the calculating method to get optimum voltage values the kernel runs quite stable on each custom Opp step. I'm keeping Voltage values from stock configuration, just so plus split frequencies.

P.S. Maybe you know something about the qos pm driver? I need to keep lower frequencies than 300 registered. In the past I used a script for that, but this isn't a good solution...

Anyone else here who wants to work on this project? Now we have custom kernel support, so let's build a real one! I guess if we'd work together this will become even better.

Gesendet von meinem XT925 mit Tapatalk 2
[Motorola Droid RAZR] Vatazhka:
Same as myself :D

Actually, Texas Instruments uses speed binning (selects better and worse chips) in order to select OMAP4430 chips which are certified to run at 1.2 GHz (MPU part) - this results in OPPNTSB (an extra OPP) being available on the "better" ones (we have these in our RAZRs). So, this guy could have just obtained a very good piece of silicon.

I know jack s**t about OMAP4. Please check your email account (the one you give for PayPal donations).

Just out of curiosity, have you fiddled with SmartReflex?

Nope, but by reading the code you can see that in a lot of QoS requests may happen from other parts than MPU (aka CPU). However, you seem to be referring to choosing a desired frequency via cpufreq (omap_pm_cpu_set_freq). It is only a candidate for comparison with other constraints (DSP OPPs), and it is set only if it is higher than other constraints in place, so you'll have to hack into this comparison. See here for a dummy driver which helps to understand how does this work.

BTW, do you know OMAPCONF? It may give you insight on what's happening to the device instead of tracking the code.
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

Edit: Kernel is ready so far. Custom Voltage support, Custom OPP table, avoid PM QOS Request to keep lower frequencies registered as valid, etc.

Edit: Live OC also almost ready! :)
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

@hashcode: I just want you to know that adb must be activated in ramdisk because no kexec rom has adb..

For my rom I'll build a new one...

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] Ravikirancg:
If you are talking about activating developer tools and enabling adb, well tapping on the "build number" about 7 times in "about phone" activates it..
[Motorola Droid RAZR] Wombatino:
I think he is talking about a different thing

Sent from my Sinclair MK14
[Motorola Droid RAZR] dtrail1:
AW: [KERNEL][KEXEC] v3.0.x Kernel for RAZR/RAZR-MAXX, GSM RAZR [2013-03-12: TEST ROMS

Did your ever try to start an adb shell on PC while using Kexec rom?

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] Vatazhka:
How do I modify XT910 stock JB kernel source (http://sourceforge.net/projects/xt910.motorola/files/XT910/9.8.2O-124_SPUEM-14/kernel_omap4.tar.gz) in order to run it via kexec? In other words, how did you arrive to what is now stock-ics-kexec branch of https://github.com/STS-Dev-Team/kernel_mapphone_kexec? I should probably check the diff against XT912 stock ICS kernel source before asking this, but I somehow believe you could shed some light on what magic needs to be applied to Motorola source code in order to reach a working kexec kernel image.
[Motorola Droid RAZR] dtrail1:
Have fun with reading over 1000 commits.. ;) why don't you just use the stock-jb-kexec source to work with?

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] xtam:
because of this:

http://xdaforums.com/showthread.php?t=2252466&page=2

so if official moto jb kernel could be compiled into kexec mode, anyone could use it as having fully supported with hdmi rom, with additional tweaks
[Motorola Droid RAZR] Vatazhka:
I would like to benefit on what's already in the stock kernel (like HDMI out) and perhaps tweak slightly the built-in components.

Is the 1000 commits against the TI or Motorola sources? Is there really a branch based on Motorola JB stock?
[Motorola Droid RAZR] dtrail1:
Have you ever had a look into the source? You will find that branch of course.

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] Vatazhka:
The 1000 commits from the stock-jb-kexec branch of kernel_mapphone_kexec repo are required to turn TI's (?) sources into kind-of-Motorola's XT912 JB sources (assumption based on dates, these start few days after moto released XT912 JB sources). I'm not sure whether it's going to work properly with XT910 stock, which leads me to the initial question... What is required to turn a regular Moto kernel into a kexec bootable one? It's definitely not all of these 1000 commits.
[Motorola Droid RAZR] Vatazhka:
So, I did the following:

Recompiled kernel source from kernel_mapphone_kexec repo / stock-jb-kexec branch using mapphone_defconfig

Copied /system/etc/kexec from CM10.1 into /system/etc/kexec on the device

Copied arch/arm/boot/zImage to /system/etc/kexec/kernel

Copied stock ramdisk (obtained from splitting stock boot image) into /system/etc/kexec/ramdisk.img

Set BMM kexec boot flag to "on"

It didn't boot. The device vibrates, keys light up, but neither screen nor ADB comes up (If i compile the kernel using mapphone_spyder_defconfig, it finally reboots instead of hanging.).

I didn't modify the stock ramdisk as I use stock partition layout (I only put 2nd slot's /system on webtop).

How do I debug this? Do I need to replace stock modules with the ones I compiled?
[Motorola Droid RAZR] artur0588:
Keep going. If you need test I can. Hopefully we get kexec kernel for chinese JB rom and others.
[Motorola Droid RAZR] dtrail1:
Debug? You cannot - except you own an UART serial adapter (or whatever it's called)..

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] Vatazhka:
I think I saw ramconsole driver there...
[Motorola Droid RAZR] dtrail1:
Why don't you ask hash code and dhacker directly? I'm sure they will help you further.

- follow me on Twitter [MENTION=4287139]dtrail1[/MENTION]_xda -
[Motorola Droid RAZR] Ravikirancg:
Boot into recovery, change the system, mount the data partition, use something like aromafm (or adb), goto the data partition (or cd to data). And copy these to your sd (if they have any files in them)

dontpanic

logger

tombstones

kernelpanic

These folders contain files that can be opened by a text editor. In the 1st folder you should have last_kmsg that may or may not help much as it contains log of the Motorola kernel and stuff that happened before kexec took over. The others will be quite useful.. also if you don't have any files in kernelpanic, you may have to hard reset your phone when the kernel hangs. (Press and hold both volume buttons and power button for about 7 secs..)

Do note that this what I do with Atrix 2. There shouldn't be any difference but just mentioning..
[Motorola Droid RAZR] Vatazhka:
Thanks for this, but I'd like to be able to see messages emitted by the 2nd kernel. If the kernel dies before filesystems are mounted, these log files cannot be written to.
[Motorola Droid RAZR] dtrail1:
He wrote that "the others will be quite useful", just check it out. :) maybe you'll find something useful.

Gesendet von meinem A101 mit Tapatalk 2