maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n810"? (https://talk.maemo.org/showthread.php?t=21907)

brontide 2008-08-05 02:55

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
anyone else have trouble with the built-in media player slipping after intstalling this? I've been having a small amount of stutter but there are a few other things that I could blame this on as well ;-)

fanoush 2008-08-05 05:05

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by brontide (Post 210260)
anyone else have trouble with the built-in media player slipping after intstalling this?

try running as root
Code:

renice 0 `pidof mmcqd`
If that helps add this line somewhere to /usr/sbin/osso-mmc-mount.sh. It needs to be run each time card is inserted.

Quote:

Originally Posted by brontide (Post 210260)
I've been having a small amount of stutter but there are a few other things that I could blame this on as well ;-)

Yes, there are more things to blame so maybe the tip above won't help you.

brontide 2008-08-05 17:47

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
FYI, that seemed to do the trick for me. What is mmcqd and what was it's original priority?

fanoush 2008-08-05 19:44

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by brontide (Post 210467)
What is mmcqd and what was it's original priority?

MMC workqueue kernel thread. Sometime around 2.6.18 they changed API for starting kernel threads. Once MMC code started to use new API, priority of mmcqd 'automagically' raised from 0 to -5. I'm not sure if it is bug or feature. -5 is above most important system daemons including osso-media-server. IMO lowering it back to 0 should not do any harm, there should be no time critical code that needs higher priority in there.

New mmcqd thread is started for each slot when card is inserted and it stops when card is removed. I don't think the stutter is related to 24 vs 48MHz bus speed but never verified this theory. It happens more often when booting from card due to higher MMC I/O traffic overall.

brontide 2008-08-05 21:53

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Hmmm...wirdness.

I was looking over everything and I noticed that /media/mmcX didn't have noatime. So I did a mount -o remount,noatime and the problem went away, but now canola is flipping out. It works *significantly* faster displaying images until the images start to corrupt and then it just barfs. I have to kill it off with a kill -9 on the python-launcher.

It's the only application that I'm having trouble with at this point. Funny enough just setting noatime and without the renice 0 `pidof mmcqd` media player doesn't skip anymore either.

I'm going to try with python-launcher disabled.

brontide 2008-08-05 23:08

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Two observations

1) Locking the max CPU speed to 330,000 fixes the problem
2) Going back to the non-highspeed kernel fixes the problem

I think I may have actually come across the corruption that is warned about. Thankfully I was only doing reading and not writing.

fanoush 2008-08-06 05:54

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by brontide (Post 210571)
Hmmm...wirdness.

I was looking over everything and I noticed that /media/mmcX didn't have noatime. So I did a mount -o remount,noatime and the problem went away

wow, noatime makes sense with vfat, never thought of it (there is no access time field in fat filesystem). Did some google search and indeed
Quote:

Alert readers may be thinking: “Wait, there's no atime on FAT filesystems!” True. There's only a single timestamp field for each file or directory, but Linux deals with this by updating that single time value on any occasion it ordinarily would update atime, mtime or ctime. So, disabling atime still reduces the frequency of erase/write operations, even on FAT.
If this really makes difference I guess it should be reported as maemo bug. metalayer-crawler scans everything and also file open dialog scans a lot files, both may cause big atime updates ==> unneeded writes, audio stutter and cpu burning in mmcqd.

Quote:

Originally Posted by brontide (Post 210571)
, but now canola is flipping out. It works *significantly* faster displaying images until the images start to corrupt and then it just barfs. I have to kill it off with a kill -9 on the python-launcher.

See kernel log via dmesg, are there some mmc related errors? If not then silent mmc corruption is unlikely. 48MHz mode is indeed unsupported by TI but my guess is that if it doesn't work under some conditions you would see device hangs and ton of errors in kernel log, not silent corruption of data.

Laughing Man 2008-08-06 15:32

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
So.. anyone know why rotation won't work on my tablet after installing the .deb? Or do I still have to flash it with an image?

qwerty12 2008-08-06 15:34

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
You have to install the xomap-xserver too. I have a post with all the files you need but it's easier installing emjayes's sliderotate, running the script to install the kernel, rebooting and reinstalling my kernel with rotation and mmc speed from this thread.

brontide 2008-08-06 15:44

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by fanoush (Post 210676)
See kernel log via dmesg, are there some mmc related errors? If not then silent mmc corruption is unlikely. 48MHz mode is indeed unsupported by TI but my guess is that if it doesn't work under some conditions you would see device hangs and ton of errors in kernel log, not silent corruption of data.

I'll reapply the kernel and monitor dmesg and post any results. Between high-speed and noatime the difference was significant over stock. It's also possible that the problems were cause by running out of free space on /.

I have already posted this as a bug report and it's a 1 *WORD* fix that i have included with the bug report.

https://bugs.maemo.org/show_bug.cgi?id=3543

brontide 2008-08-06 16:32

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Ok, I'm going to chalk it up to out of space on the root file system. Applied qwerty's kernel, changed /usr/sbin/osso-mmc-mount.sh, and noatime fix for /usr/sbin/mmc-mount.

So far everything works... and it works *FAST* I may just be smoking the good stuff, but I'm liking it ;-)

Some of the specific improvements I subjectively see.
  • Browsing photos in Canola full sized is much snappier ( less spinnies between images )
  • Media Player loads a full 700+ song list in a second.
  • No stuttering on media player even when activly multi-tasking
  • Less startup lag with media-crawler satalling things out.

XTC 2008-08-20 07:45

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
But how about additional modules?
I can see that there are hardly any in /mnt/initfs/lib/modules/current :( using kernel with rotation support.

I'm a bit confused with avaliable kernel options :(

On n770 where I use high-speed Fanoush's kernel I've got plenty - now I'm looking for getting usb-rs232 adapter to work.
Unfortunately I've got modules only for "kernel-2.2007.50-2-custom" and I can't insmod pl2303.ko module on current - updated diablo :(

fanoush 2008-08-20 09:11

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by XTC (Post 215659)
Unfortunately I've got modules only for "kernel-2.2007.50-2-custom" and I can't insmod pl2303.ko module on current - updated diablo :(

try http://fanoush.wz.cz/maemo/2.6.21-20...modules.tar.gz

this is for Diablo before the update, hopefully it will work as kernel in the update is same or very similar

XTC 2008-08-20 10:59

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Working ... :)
I didn't try this version mentioned before for the second time - but it was all my fault - I didn't load usbserial module before pl2303.ko.

I can now read my 3D electric field probe :)

qole 2008-08-21 04:19

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Hey guys, I installed the SSU update, and then I installed querty12's kernel .deb, and it told me that I was downgrading my kernel!

Quote:

dpkg - warning: downgrading kernel-diablo-flasher from 2.6.21-200829maemo1 to 2.6.21-200823maemo3.
Is this a cause for concern? Is there a newer kernel that needs the patches, or is the version number just a cosmetic thing?

qole 2008-08-21 04:51

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by cybernut (Post 202921)
@qwerty12 or anyone else that knows
Is there a handy link with step-by-step hand holding to help me install this please?

I found I had to do this in three steps:

1. Install qwerty12's modified kernel
2. Start a terminal, gain root
3.
Code:

flash-and-reboot
It will tell you that there's a kernel image waiting for you, do you want to flash it? I answered yes. My tablet did some stuff and then rebooted.

Not sure if this is something going on with my tablet, or if this is the way of things for others, but if you don't get rotation (or in my case, you are told you have rotation, but then it doesn't work) try steps 2 and 3.

Bundyo 2008-08-21 05:10

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Yes, qwerty's kernel is for 23-14. He didn't release a new one for 30-2 AFAIK. :)

GeneralAntilles 2008-08-21 05:27

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by qole (Post 215979)
Is this a cause for concern? Is there a newer kernel that needs the patches, or is the version number just a cosmetic thing?

From what I can tell, the kernel wasn't actually updated at all, but probably just the package. Either way, there's no new sources for 30-2.

qwerty12 2008-08-21 06:33

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Yer, I'm still waiting for Nokia to get off their behinds (for want of a stronger word) and upload the new source package :(

I could just change the version number but when nokia actually do update the sources, it will cause confusion.

For now though, if you have the update installed, I wouldn't recommend installing it as you will mess up osso-software-version (unlocked or otherwise). dpkg -x'ing it somewhere and then fiasco-flasher -f -k should do the trick. I haven't noticed because I've been compiling test kernels and using flasher-3.0 to flash them off the computer.

qole 2008-08-21 16:43

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Now you tell me. ;)

So what will happen if I just uninstall your package? The flash-and-reboot of your kernel has already happened, will uninstalling the .deb make the system try to flash the Nokia kernel again?

qwerty12 2008-08-21 16:49

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by qole (Post 216130)
Now you tell me. ;)

So what will happen if I just uninstall your package? The flash-and-reboot of your kernel has already happened, will uninstalling the .deb make the system try to flash the Nokia kernel again?

Removing shouldn't reflash it again. I see nothing in the prerm that would do that.
dpkg --remove --force-all diablo-kernel-flasher && apt-get install --reinstall diablo-kernel-flasher

would restore the latest diablo kernel package from nokia. Doing flash-and-reboot again to restore the nokia kernel is your choice. If you don't want to, rm will work ;)

qole 2008-08-21 17:16

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
hmm, curiouser and curiouser.

Quote:

dpkg - warning: ignoring request to remove diablo-kernel-flasher which isn't installed.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package diablo-kernel-flasher

qwerty12 2008-08-21 17:21

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Doh, typing from memory doesn't seem to be doing it for me >.<

diablo-kernel-flasher should be kernel-diablo-flasher

qole 2008-08-21 17:35

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Oh man, now I'm in deep poop.

Quote:

dpkg: kernel-diablo-flasher: dependency problems, but removing anyway as you request:
osso-software-version-rx34 depends on kernel-diablo-flasher (2.6.21-200829maemo1).
[snip]
Package kernel-diablo-flasher is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package kernel-diablo-flasher has no installation candidate

qwerty12 2008-08-22 06:50

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Crap, that *should* have worked. It must be all this diablo-1 crap, sorry.

I've uploaded the latest proper version from Nokia's servers here:
http://qwerty12.maemobox.org/kernel-...maemo1_all.deb

dpkg -i it and osso-software-version-rx34 should be satisfied. Sorry for the trouble.

qole 2008-08-22 17:58

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Whew, thanks qwerty12.

So now the steps for anyone wanting this fancy kernel (post-Diablo-SSU) are:

1. Start a terminal, gain root
2. Install qwerty12's modified kernel
Code:

dpkg -i kernel-diablo-flasher_2.6.21-200823maemo3_all.modfied.deb
3.
Code:

flash-and-reboot
It will tell you that there's a kernel image waiting for you, do you want to flash it? I answered yes. My tablet did some stuff and then rebooted.
4. Get qwerty12's stock kernel ;)
5. start a terminal, gain root
6.
Code:

dpkg --remove --force-all kernel-diablo-flasher
dpkg -i kernel-diablo-flasher_2.6.21-200829maemo1_all.deb

NEW STEP:
7.
Code:

rm /boot/zImage-diablo-200828

qwerty12 2008-08-23 07:33

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Quote:

Originally Posted by qole (Post 216486)
2. Start a terminal, gain root

Just a note, for flash-and-reboot, you do not need to be root. Nokia installs a sudoers file which allows flash-and-reboot to be run via sudo and the flash-and-reboot script has a section at the top that will relaunch it using sudo if you are "user".

But I have the feeling I'm going on here as you need to be root to use dpkg for the 5th step as you know :)

But you can shave 1 seconds off by making step 2:
2. Start a terminal

:P :)

Anyway, I'm done with just a simple kernel like this :P. I've been working on this:
op_mode patch, rotation patch, brightness changing patch, 48Mhz mmc, japanese radio patch, musb fix patch, preempt, usb powercheck disabled, OTG whitelist disabled so everything works, menulaus setting voltages messages removed from dmesg, eac mode, play enabled, record disabled messages removed from dmesg.

Except for the preempt, and the eac mode patch, the rest is all patches and work by other people :)

buma 2008-08-27 18:42

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
okay, maybe I'm dense or something but I seem not to be able to install these two kernal updates with the above 6 steps...

when I try to install the first one (kernel-diablo-flasher_2.6.21-200823maemo3_all.modfied), app manager says
unable to update kernal-diablo-flasher.
incompatible application package


I've updated to ver 4.2008-30.2 already on a fresh flash - am I missing a step or something???

/me is confused

qole 2008-08-27 19:15

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
I had to install it with "dpkg -i kernel-diablo-flasher_2.6.21-200823maemo3_all.modfied.deb"

buma 2008-08-28 02:57

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
ah! I got it! Maybe we should update the first post?

but, now that I just installed both of these kernels... what have I installed? seriously :) can someone enlighten me?

gemniii42 2008-09-01 00:46

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Hey peeps what's the status of this now?

I've got Diablo with the SSU on my internal 256mb flash with minimal apps installed. I cloned that to my 2Gb internal (partitioned to .44Gb ext2 and 1.25Gb FAT). With all local stuff (pics, docs, etc.) cleaned out I'm using 360mb on the root file system now, way beyond the 256mb limit.

Some of the apps are memory hogs.

I'd like to clone the 2gb disk to an external SDHC for a backup, then install the rotation and card speed up on the 2Gb internal.

Based on reading this thread is qoles summary the best way to go after I make my backup clone?
And can I install the rotation and card speed up directly to the 2gb internal card?

tia

doppers 2008-09-03 13:25

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Has anyone done any tests to measure the difference in how much these kernels that make the cards run at 48Mhz will decrease battery life?

TA-t3 2008-09-03 13:59

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Someone may have looked at that and done some measurements. It may be that it doesn't actually decrease battery life, because if twice the frequency means twice the speed, it would mean finished in half the time (and then drop down to idle mode)

brontide 2008-09-03 14:02

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
I think ( big maybe here ) that the additional draw has cause my unit to "drop dead" a few time rather than sleep when battery is low. This was especially evident when playing video through canola.

TA-t3 2008-09-03 14:14

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Right, for multimedia it could be a drain.. as the card is accessed continuously. No idle mode. For us non-multimedia folks it could be better though, with our open/access/close use patterns.

All just speculation from my side of course, why do actual research when it's easier to just opine from the sofa.. :D

buma 2008-09-03 21:22

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
so, after following qole's summary I think I have the HS kernel installed - how do I 'know' for sure that I do? is there something easy to check (like issuing a root command or something similar) to figure it out? So far, after the recent Diablo SSU update, I don't see much of a speed increase booting from my SD card on my N800... So it makes me think I screwed something up???

qole 2008-09-03 22:00

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Well, does rotation work for you? If so, you've got the modified kernel.

I also have to agree, I don't see huge speed increases either...

buma 2008-09-03 22:15

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
hey qole,
I had rotation previously :) must check if it works now again or not - last time I used it it got kinda screwy and had to reboot to get it to work right again...

qole 2008-09-03 23:11

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
The kernel that is installed as part of the SSU steals your rotation. You know you're running a custom kernel again when rotation returns.

buma 2008-09-04 01:38

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
@qole-
oh, thanks! I was wary to test it since last time it went all wonky when I rotated the screen, but now it works okay so must have the speedier kernel then...

now that we know we have the mod kernel installed... shouldn't there be marked difference in speed? maybe? or is someone way way smarter than me working on that?


All times are GMT. The time now is 10:15.

vBulletin® Version 3.8.8