maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Compiling custom kernels for P1.1 (with fiasco-gen) (https://talk.maemo.org/showthread.php?t=43420)

egoshin 2010-04-22 18:31

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
Quote:

Originally Posted by titan (Post 621171)
> I can confirm that disabling power-saving reduces latency from 50ms -> 5ms
> but it increases the battery drain drastically.

I just tried this with the stock kernel and I get the same results.
With max. wifi powersaving 50ms, with medium or no powersaving ca. 5ms.
So this appears that it is not related to the kernel version.
Could you please try to confirm this with the stock kernel?

I work with stock kernel and WiFi configuration -

Wi-Fi transmission power: 100mW
Power saving: On (maximum)

and my ping times are in range from 3 to 5ms to WiFi router and around 22ms to my home server.

EDIT: it depends from other traffic in network and router proximity. I discovered that in calm state I have 30ms.

christexaport 2010-04-25 05:13

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
I have to admit, I'm totally confused by the two methods and groups of kernels from different guys. I believe I've installed a different kernel, but I have no way of really telling for sure.

I have installed Enhanced Linux kernel for power users 2.6.28-maemo25, kernel-flasher-maemo 2.6.28-maemo23, and kernel-power-settings. Are all of these packages necessary?

According to Conky, something is working, since I am seeing bursts at 850 MHz at times, but I can't tell if that is the maximum frequency or not. I wanted to install the kernel from the repos that will allow me to set the CPU and DSP speeds myself, and once I got that figured out, use the BeeCon widget to monitor and select speeds. Can anyone help me move forward, and maybe create a better guide for JUST the user controllable kernel and how to set it up? I've read the various threads, but they aren't as easy to understand for a neophyte like myself.

I know you guys are experts and I'm a Windows guy, but I also got the N900 to tinker and play, so save all of the warnings. I prefer to try risky stuff like this with my mobile.

Tiboric 2010-04-25 06:15

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
Hi 'Freak' glad to to see all is going well.

the two kernels seem complex but their not,
in Titan's kernel the cpu speed is set by a config file,
in the other kernels they are hard coded into the kernel.

i have been using Titans kernel for the last two weeks, and before that Lehto's.

using Titan's (which you seem to be) you have to have a config file @
Quote:

/etc/default/
called 'kernel-power' (no extention) this is just a plain txt file with:

Quote:

#UP_THRESHOLD=75
#SAMPLING_RATE=150000
VDD1_OPPS_VSEL="30 30 38 48 54 48 60 60 60 60 60 60 60 72 72"
DSP_OPPS_RATE="90 90 180 360 400 430 430 430 430 500 500 500 500 520 520"
MIN_FREQ=250000
MAX_FREQ=599000
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=0
inside.

(when you installed the 'kernel-power-settings' from the repo this just installed a load of preconfigured config files @
Quote:

/usr/share/kernel-power-settings/
which you can copy over to
Quote:

/etc/default/
or just make up your own.

you seem to have everything working just put a config file in
Quote:

/etc/default/
and you should be just fine.

p.s you can also change frequency on the fly with cpufreqUI very simple but doesn't last a reboot.

John

edit: i also think that some simpler tutorials are needed on some subjects. (why not just say copy this here or move that there instead cp /*/*/blah and ls /*/*/blah lol) the user can then use whatever method they like.

christexaport 2010-04-25 09:51

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
Thanks. I figured it out after reading far too much. We need more guides written with less techno jargon. Whatever happened to having someone to do just that?

with no help files, we have to give better directions.

titan 2010-04-26 20:48

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
FYI, kernel-power and kernel-power-settings have finally made it to extras (stable).
The new wiki page for the kernel is http://wiki.maemo.org/Kernel_Power
(at the moment just a copy&paste from the Overclocking page).
I'd appreciate if you could add more info, for example about iptables, ext4, USB/IP, evdev, PPTP, cryptoloop and kexec support.

There were some requests from people who would like to use the additional features of the kernel but don't want to risk losing their warranty by installing a kernel that is overclockable.
I consider uploading another package that does not have the OC patch.
If possible it would be only the kernel package and share the modules and flasher package.
But it may lead to too much confusion with all the different kernel version.
What do you think? Any ideas for a good name?

AlMehdi 2010-04-27 20:18

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
Quote:

Originally Posted by titan (Post 628918)
FYI, kernel-power and kernel-power-settings have finally made it to extras (stable).
The new wiki page for the kernel is http://wiki.maemo.org/Kernel_Power
(at the moment just a copy&paste from the Overclocking page).
I'd appreciate if you could add more info, for example about iptables, ext4, USB/IP, evdev, PPTP, cryptoloop and kexec support.

There were some requests from people who would like to use the additional features of the kernel but don't want to risk losing their warranty by installing a kernel that is overclockable.
I consider uploading another package that does not have the OC patch.
If possible it would be only the kernel package and share the modules and flasher package.
But it may lead to too much confusion with all the different kernel version.
What do you think? Any ideas for a good name?

Kernel-extras maybe?

automagic68 2010-04-29 07:19

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
Quote:

Originally Posted by nightfire (Post 616794)
Yeah, I just noticed this too.

Actually, it's related to the DSP. When the DSP is busy (ie. during splash screen, playing videos, and MP3s (I guess)), it either starves the CPU, or shares vdd1 with it, and undervolts. If you're able to check the dmesg buffer, you can see DSP sync errors when it happens.

Here are my new values that appear to be stable while playing video:

Code:

20 20 25 30 35 38 43 45 48 51 54 56 60 65 72
Interestingly enough, the CPU enters sleep state during video playback, so the first voltage is critical. While it's otherwise stable with 15 as the first value, it locks almost immediately while playing video. It makes sense, I guess.

The main problem was voltage too low at 250 and 500mhz.

I don't think we can do better than this for ultra ultra low voltage. :(

Hey do I also have to edit this line's values in the kernel text file?

DSP_OPPS_RATE="90 90 180 360 400 430 430 430 430 500 500 500 500 520 520"

If so what do I put for the values? Or could you show the entire text of your kernel file?

nightfire 2010-04-29 07:32

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
Quote:

Originally Posted by automagic68 (Post 632672)
Hey do I also have to edit this line's values in the kernel text file?

DSP_OPPS_RATE="90 90 180 360 400 430 430 430 430 500 500 500 500 520 520"

If so what do I put for the values? Or could you show the entire text of your kernel file?

Well, the VDD1 voltage rail appears to be shared with the DSP, so if you change the DSP frequencies it may affect the voltage requirement.

I went back to titan's XLV settings; mine were doing strange things from time to time (particularly reboot during bootup).

This is what I'm using now:

Code:

VDD1_OPPS_VSEL="0 20 28 33 38 38 45 45 48 48 54 54 60 72 72"
DSP_OPPS_RATE="90 90 180 360 400 430 430 430 430 500 500 500 500 520 520"


S1ackhax 2010-05-01 12:05

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
I'm using titans kernel running at 125Mhz-750Mhz with ulv settings.

It runs extremely stable, and much better than the default kernel which comes with the phone. I witness about a 1% drain per hour in standby.

However, after installing Joikuspot, everytime my N900 boots, its on the default cpu frequency settings (max at 600mhz). I manually have to execute /usr/sbin/kernel-load in the terminal to get it working at my preferred frequencies.

Joikuspot seems to run fine with 750mhz so that is not an issue.

Basicly, how can I have it on the custom frequencies every time I boot?

I have followed all the instructions to to permanently install a default configuration from the wiki page, it worked fine prior to installing Joikuspot. I need a post Joikuspot solution :)

thank you very much to anyone who can help

hawaii 2010-05-04 12:52

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
@titan;

Do you plan on releasing a kernel with fbcon enabled?


All times are GMT. The time now is 11:46.

vBulletin® Version 3.8.8