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)

bunanson 2008-07-13 23:24

Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n810"?
 
Can some guru here made a .deb file for this, or write some details instructions, pleeeeeeeeese? I looked at the wiki instructions, it is kind of intimidating... original post, Highspeed enabled kernel for the Nokia n800 and n810
______________________________

Philip Langdale’s ramblings on possibly interesting topics


High Speed SD/MMC kernel for Maemo 4.1 (Diablo)
Published by Philip Langdaleat 8th July 2008 in SD/MMC.
I finally got some time to update my development tree to the new Diablo code and built a new kernel with my high-speed SD/MMC patch. Additionally, it will speed up access to the internal 2GB flash (eMMC) in the n810. For those with long memories, the Maemo bug which slows down card access when the CPU is idle is still present although there has been a little bit of activity on the Nokia side recently (They have an internal bug open for it now)

You can find my custom kernel, patches and instructions http://intr.overt.org/4.2008.23-mmc-kernel/.

_______________________________


bun

cybernut 2008-07-13 23:36

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Well I'm certainly interested. I've been searching the wiki and forum to find a a way to boot Diablo off a SD card with my interest only in speed - not even a dual boot with another OS though that may come in the future. I've played around with Linux for a year and a N800 for 6 months but I haven't delved too much into the mechanics so it has to have straight forward step by step instructions. If this kernel helps (I'll do some reading) then great that even adds more fuel to the fire! I'll follow this thread with great expectations.

Cheers

C

lazuli 2008-07-13 23:43

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
count me in! with the advent of class 6 sdhc, this is invaluable.

bunanson 2008-07-13 23:48

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

Originally Posted by cybernut (Post 202641)
...searching the wiki and forum to find a a way to boot Diablo off a SD card with my interest only in speed - not even a dual boot with another OS though that may come in the future...


What kind of dual boot you looking for, http://www.internettablettalk.com/fo...ad.php?t=21403

diablo, chinook, kde in any combo?

bun

cybernut 2008-07-13 23:55

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
I came up with a zero on the search. No wonder I can never find any thing... I can't find any user Langdaleat both in the forum posts and wiki and no reference to his kernel fix.

Can you please supply a couple of url's please.

TIA

C

cybernut 2008-07-14 00:05

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
@ Bun
I would like a single Diablo right now with a possibility of Deb or even Chinook in the future. Is there a speed increase by putting it on a SD card? - I'm sure there will be one with this higher speed bus. I saw the post by for the Deb dual boot so I might go with that one. A 50% (is that possible?) boost would be fantastic. I took a quick look at your post in your next email and I'll go through it and get an idea what can be done.

C

Munk 2008-07-14 00:47

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Pardon my unknowing question, but can I reflash my current dual boot config with this bin file? If so, how would I do it from my NIT xterminal?

Would I
1) untar the initfs_flash from Fanoush
2) initfs_flash mmc-kernel-4.2008.23.bin

Thanks in advance

brontide 2008-07-14 02:00

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
I would love to give this a try as well, but the documentation is far too confusing to jump right in.

My best guess would be to download the .bin and do a "flasher -f -k filename.bin" but I would prefer someone in the know to confirm before I brick my device.

GeneralAntilles 2008-07-14 02:09

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

Originally Posted by Munk (Post 202664)
Pardon my unknowing question, but can I reflash my current dual boot config with this bin file? If so, how would I do it from my NIT xterminal?

Would I
1) untar the initfs_flash from Fanoush
2) initfs_flash mmc-kernel-4.2008.23.bin

initfs != kernel

For flashing the kernel on the device you want

Code:

fiasco-flasher -k <zImage> -f
Quote:

Originally Posted by brontide (Post 202683)
My best guess would be to download the .bin and do a "flasher -f -k filename.bin" but I would prefer someone in the know to confirm before I brick my device.

Generally speaking, you can't really brick a tablet with a kernel (unless something really malicious and evil is in there). If it's messed up and you're dropped into a reboot loop then simply reflashing Nokia's kernel will solve it.

If you're flashing from a computer, then:

Code:

flasher-3.0 -k <zImage> -f -R
Otherwise the fiasco-flasher command above will work fine on-device (assuming you have Diablo).

brontide 2008-07-14 02:22

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Here is my command session under Diablo. I have previously installed becomeroot and wget.

Code:

BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # cd /media/mmc1
/media/mmc1 # wget http://intr.overt.org/4.2008.23-mmc-kernel/mmc-kernel-4.2008.23.bin
--22:16:01--  http://intr.overt.org/4.2008.23-mmc-kernel/mmc-kernel-4.2008.23.bin
          => `mmc-kernel-4.2008.23.bin'
Resolving intr.overt.org... 204.11.33.43
Connecting to intr.overt.org|204.11.33.43|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,536,904 (1.5M) [application/octet-stream]

100%[========================================================================================>] 1,536,904    254.00K/s    ETA 00:00

22:16:07 (258.18 KB/s) - `mmc-kernel-4.2008.23.bin' saved [1536904/1536904]

/media/mmc1 # fiasco-flasher -k mmc-kernel-4.2008.23.bin -f
Reading and flashing kernel image
Image(s) successfully flashed
/media/mmc1 #

Rebooted and things seem to work. I have not noticed any significant increase in mmc speed but dmesg clearly indicates that it's operating at 48000000Hz

bunanson 2008-07-14 03:33

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Thanks for the post. A lot of users will try and I will be one. Speed difference should be observed:

1) Upon bootup, how far the blue line goes? That should be about 1/4 right? As diablo boot already reduce it to 58% of the screen (a little to the Right of letter 'O' of NOKIA). That is a calibration bar, should correlate with, in principle, how fast your tablet run.

2) Maybe watching a video clip stored on SD will notice the difference.

Just a thought.


bun

Munk 2008-07-14 05:18

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Bunanson, after using a script to toggle the CPU speed of the device and jump in 48Mhz mode here are my results. Actually, before and then after:

Before: (mmcblk1p1 = Internal 2G mem), (mmcblk1p2 = external SD)
Quote:

/dev/mmcblk1p1:
Timing cached reads: 180 MB in 2.02 seconds = 89.13 MB/sec
Timing buffered disk reads: 12 MB in 3.17 seconds = 3.79 MB/sec

/dev/mmcblk1p2:
Timing cached reads: 188 MB in 2.01 seconds = 93.51 MB/sec
Timing buffered disk reads: 16 MB in 3.10 seconds = 5.16 MB/sec
After:
Quote:

/dev/mmcblk1p1:
Timing cached reads: 192 MB in 2.00 seconds = 95.84 MB/sec
Timing buffered disk reads: 28 MB in 3.66 seconds = 7.64 MB/sec

/dev/mmcblk1p2:
Timing cached reads: 196 MB in 2.00 seconds = 97.92 MB/sec
Timing buffered disk reads: 42 MB in 3.20 seconds = 13.11 MB/sec
So, you can see that I am getting about a 2.5x speed increase on the "buffered disk read" on my external SD card. On the internal 2 gigabyte memory I am getting about a 2x speed increase. I can tell you that just before I did install your .bin file, I was only seeing about a 1.3x speed increase after running my turbo script.

Oh, so here is the script that I am running to get the speed increase. I think Bunanson gave this to me before. Sorry if I got this wrong:

Quote:

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
For testing the speed I was using hdparm which you'll have to search on this forum to find where to download it from. Here's the command line information to type:
Quote:

./hdparm -Tt /dev/mmcblk1p1
./hdparm -Tt /dev/mmcblk1p2

qwerty12 2008-07-14 05:20

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

Originally Posted by brontide (Post 202689)

Rebooted and things seem to work. I have not noticed any significant increase in mmc speed but dmesg clearly indicates that it's operating at 48000000Hz

You need to trip the the cpufreq into performance to get the full speed. I'll probably end up adding this patch to an diablo kernel of mine.

lazuli 2008-07-14 06:22

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
sounds interesting but does this come at the cost of battery life? and is this script only for dual booting?

I'm curious because it might solve my metalayer-crawler and mplayer scanning time problem. I've got whole websites (ebooks/decompressed chms) in my NIT that's why i need faster read speeds.

please make it noob friendly :)

Munk 2008-07-14 07:37

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
For me personally, I run the script and leave it in performance mode all of the time. I believe the battery drain difference is negligent and exchange for the performance gain received.

brontide 2008-07-14 11:22

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

Originally Posted by qwerty12 (Post 202719)
You need to trip the the cpufreq into performance to get the full speed. I'll probably end up adding this patch to an diablo kernel of mine.

Do you need the performance governor, or are you only going to get the fastest performance when you are running at full tilt ( because of the bus divisor ). I have my own ondemand tuning that makes it much twitchier about jumping to 400mhz.

Code:

#!/bin/sh
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate_min > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 165000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

I have not found a time when I'm actually doing something that cpuinfo_cur_freq is not 400000.

GThreepwood 2008-07-14 11:36

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

Originally Posted by qwerty12 (Post 202719)
You need to trip the the cpufreq into performance to get the full speed. I'll probably end up adding this patch to an diablo kernel of mine.

Would be great to see a high speed sd, rotation-enabled kernel!!!

Wanted to flash the high speed kernel yesterday but can't live without your rotation kernel anymore.

TA-t3 2008-07-14 11:42

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Hypothetically any increased battery drain due to higher frequency during SD card transfers should be offset by the shorter transfer time, so if the standard kernel could handle that it would be great..

qwerty12 2008-07-14 15:52

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
I want to build an android kernel with this in it but it's failing to compile so for now, all I can do is an rotation kernel with this patch in it.

(Doh, I'm tired, I posted this message in the wrong thread before >.<)

EDIT: Done. Stock diablo kernel with this patch and rotation. (no android support. Sorry, but it may be a while before I sort out that android patch :/)
http://www.mediafire.com/?yzgm9ywyity

brontide 2008-07-14 16:03

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

Originally Posted by qwerty12 (Post 202849)
I want to build an android kernel with this in it but it's failing to compile so for now, all I can do is an rotation kernel with this patch in it. I'll edit this post when it's uploaded.

(Doh, I'm tired, I posted this message in the wrong thread before >.<)

Can you throw in the futex patch as well. ( if it compiles, don't worry if it doesn't )

qwerty12 2008-07-14 16:18

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

Originally Posted by qwerty12 (Post 202849)
I want to build an android kernel with this in it but it's failing to compile so for now, all I can do is an rotation kernel with this patch in it. I'll edit when uploaded.

Uploaded.

Quote:

Originally Posted by brontide (Post 202850)
Can you throw in the futex patch as well. ( if it compiles, don't worry if it doesn't )

Be nice to ask before I start compiling :P. But I'll recompile with that patch I formatted for this :P :)

qwerty12 2008-07-14 16:28

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

Originally Posted by brontide (Post 202850)
Can you throw in the futex patch as well. ( if it compiles, don't worry if it doesn't )

And that's a nay:

Quote:

kernel/built-in.o: In function `futex_lock_pi':utsname_sysctl.c:(.text+0x1ed68): undefined reference to `cmpxchg'
:utsname_sysctl.c:(.text+0x1ede4): undefined reference to `cmpxchg'
:utsname_sysctl.c:(.text+0x1f068): undefined reference to `cmpxchg'
:utsname_sysctl.c:(.text+0x1f280): undefined reference to `cmpxchg'
kernel/built-in.o: In function `handle_futex_death':utsname_sysctl.c:(.text+0x1f5 78): undefined reference to `cmpxchg'
kernel/built-in.o:utsname_sysctl.c:(.text+0x1fe50): more undefined references to `cmpxchg' follow
make: *** [.tmp_vmlinux1] Error 1

brontide 2008-07-14 17:02

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

Originally Posted by qwerty12 (Post 202857)
And that's a nay:

You're gonna force me to actually get off my ***** and install scratchbox. :p

qwerty12 2008-07-14 17:05

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

Originally Posted by brontide (Post 202866)
You're gonna force me to actually get off my ***** and install scratchbox. :p

:P

If you are lazy, you can cross compile it:
http://www.alextreme.org/drupal//?q=android_on_n810

(as you may have guessed, it's how I did the android one)

cybernut 2008-07-14 19:46

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
@qwerty12 or anyone else that knows
Is there a handy link with step-by-step hand holding to help me install this please?

C

geneven 2008-07-14 20:00

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Yes, I think I know the answer to that question!

No. Not yet. We're talking pretty new technology here.

Mutiny32 2008-07-15 04:38

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
I wish we could "commit" these "patches" to some sort of "tracker"

GeneralAntilles 2008-07-15 04:57

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

Originally Posted by Mutiny32 (Post 203076)
I wish we could "commit" these "patches" to some sort of "tracker"

It's called Bugzilla. :rolleyes:

. . . and as has already been mentioned in this thread, TI doesn't consider 48MHz to be safe, so you wont see it in an official build.

If you really want to maintain some sort of community kernel, a Garage project would be a good place to start.

fanoush 2008-07-15 07:13

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

Originally Posted by GeneralAntilles (Post 203080)
If you really want to maintain some sort of community kernel, a Garage project would be a good place to start.

Yes, this would be good, see also http://www.gossamer-threads.com/list...rs/36516#36516 I am the guilty one who so far did not manage to change words into action. OK, I am submitting request for "Community Kernels" garage project right now.

EDIT: It would be nice if interested kernel hackers (and project admins :-) would actively join this project, please don't leave me alone :-) Also any idea about structuring patches and kernel releases is welcomed. Once project is accepted we can discuss it in garage project list.

EDIT2: project approved https://garage.maemo.org/projects/kernels/

lazuli 2008-07-15 07:20

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
wow another breakthrough in the making! looking forward to this kernel! :)

fanoush 2008-07-15 08:48

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

Originally Posted by lazuli (Post 203099)
wow another breakthrough in the making! looking forward to this kernel! :)

Don't expect breakthroughs :-) This is just project for centralizing efforts for anyone who wants to join. There won't be anything new which is not already scattered across the net and available now.

BTW there won't be just one kernel.
I expect several ones with different choices made by project members and with various levels of stability. Of course there could be one with everything in too.

GeneralAntilles 2008-07-15 08:52

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

Originally Posted by fanoush (Post 203110)
I expect several ones with different choices made by project memebers and with various levels of stability. Of course there could be one with everything in too.

One idea thing I'd particularly like to see happen is the stabler kernels being pushed to Diablo Extras-devel. Flashing a new kernel from Application manager is simple stuff with faisco-flasher now, and it'd be very cool not to have to do to much work to get the community kernels.

fanoush 2008-07-15 09:10

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Hmm, great idea, that would mean releasing kernel patches as properly done debian sources with nice name, dependencies, version, ... Not so funny but obviously quite useful. I already planned for each released kernel binary to have accompanying full diff against Nokia original so anyone interested could see what's in and what's different and build it themselves. Also building kernels by autobuilder is good too.

TA-t3 2008-07-15 09:56

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

Originally Posted by qwerty12 (Post 202857)
And that's a nay:

Quote:

utsname_sysctl.c.text+0x1ede4): undefined reference to `cmpxchg'
Unless I'm mistaken cmpxchg (compare-and-exchange) isn't implemented in the ARM version of the kernel source. (It's one of those tricky ones because it's meant to be atomic I believe.)

brontide 2008-07-15 11:58

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

Originally Posted by TA-t3 (Post 203123)
Unless I'm mistaken cmpxchg (compare-and-exchange) isn't implemented in the ARM version of the kernel source. (It's one of those tricky ones because it's meant to be atomic I believe.)

The patcher in question said that arm had pre and post arm6 versions, I'll probably go hunting and backport those as well since he was referring to 2.6.22 or 23 at that point.

D'ohboy 2008-07-25 05:26

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
So qwerty12 if install your deb for rotation and high speed is that all i have to do? Or is there something else I have to do to get high speed? I have already set up screen rotation.

XTC 2008-07-25 06:35

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
After installing diablo I've found that in comparing to oryginal n810 OS2008 kernel it's much faster.
On OS2008 crating 128MB of swap was painfully slow.
After diablo - I was looking for some high-speed kernel (keeping in mind huge boost on n770 after kernel upgrade) but creating 128MB of swap was way faster - so I stopped looking for faster kernel. Is it already included?

Laughing Man 2008-08-04 21:04

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Hmm I get unable to install when I try to install the .deb for high speed kernel and rotation. Any idea what's wrong?

lm2 2008-08-04 21:15

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Try Red Pill yet? Can't remember if I needed it...

Laughing Man 2008-08-05 02:13

Re: Why there is lack of interest "Highspeed enabled kernel for the Nokia n800 and n8
 
Ok I tried red pill and it installed. But is there anything else I need to do? After a reboot and using advanced statusbar applet (with rotation support) it doesn't show any rotation options.


All times are GMT. The time now is 02:00.

vBulletin® Version 3.8.8