maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] kernel-power stable v49 in Extras-Testing (https://talk.maemo.org/showthread.php?t=71879)

misiak 2011-04-19 23:21

Re: kernel-power patches/updates
 
Quote:

Originally Posted by pali (Post 991247)
As I wrote I did not know how multiboot working. I think it is simple to add new multiboot entry for other kernel (bootable/flashable image is in my -bootimg deb package). Ask for this in multiboot thread.

Could you possibly make a package with entry for multiboot? some kind of "reference" package is here: http://www.mediafire.com/?t3mdemq1hj7v5ur (got it from NITDroid Wiki entry, file name inside this rar: "multiboot-kernel-maemo_0.3-1_armel.deb".

If you want to replace kernel-power, you should also consider creating a package that replaces package "multiboot-kernel-power" with contents:
/boot/multiboot/vmlinuz-2.6.28.10pali1 - your zImage file, but it has to have the same name as folder in /lib/modules
/etc/multiboot.d/01-Maemo-kernel-power46.item - multiboot menu entry, same as in my post here on page 8 of this thread
/usr/share/doc/multiboot-kernel-power/copyright (see this file in multiboot-kernel-power_0.3-1_armel.deb for reference)
/usr/share/doc/multiboot-kernel-power/changelog.Debian.gz (see this file in multiboot-kernel-power_0.3-1_armel.deb for reference)

And basically that's all to have a package for your kernel working with multiboot. Than, if one wants to install your kernel and use it with multiboot - just install kernel package, modules package, flasher package and than yours multiboot-kernel-power package ;)

misiak 2011-04-19 23:36

Re: kernel-power patches/updates
 
Quote:

Originally Posted by vi_ (Post 991004)
-_-

I see you clicked "Thanks!" under my post on page 8 - did my instructions work for you? If yes - maybe pali should link my post in his first post, as this may be common problem?

Mentalist Traceur 2011-04-20 00:50

Re: kernel-power patches/updates
 
I thought the only thing needed from power kernel was that it be compiled with the cfg80211 (or whatever it's called) module, to be compatible with Lxp's stuff? The rest of the bleeding edge fanciness is just manually loading the right modules, no? Or is there something to do with compat or whatever that the injection driver requires?

I.E. See this post: http://talk.maemo.org/showpost.php?p...3&postcount=41

Other than that, keep up the great work. If I could, I'd help with integrating the bleeding edge wifi patches into your kernel version, but it's way outside my skills.

The moment you do though, I'm jumping on to this kernel. Not willing to give up injection just yet, but framebuffer is always better than no framebuffer. For those who have gotten to a framebuffer console mid-boot, does the keyboard actually provide you with right buttons.

geneven 2011-04-20 02:52

Re: kernel-power patches/updates
 
I installed this, following Erazor's post, around page 7. Looks good.

Sometimes my LCD lights up red, lower left side of phone -- never saw that before. The savecpu program says actual temperature is 0, obviously wrong. All seems fine, in general.

niqbal 2011-04-20 07:57

Re: kernel-power patches/updates
 
@ Pali, so basically it is Power-kernelv46 with a few bug fixes. very well done. any future plans (patches etc) on this project?

vi_ 2011-04-20 08:13

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 992145)
I see you clicked "Thanks!" under my post on page 8 - did my instructions work for you? If yes - maybe pali should link my post in his first post, as this may be common problem?

I didn't try it, I don't have multiboot/don't care. But I am really happy to see people writing noob guides. Consider adding this to the wiki or somthing.

You only have like 15 posts and already you have contributed more than most of the 500+ post spam/whinge/noobs.

This makes you a good person in need of 'thanks!' buttoning.

pali 2011-04-20 10:05

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 992135)
Could you possibly make a package with entry for multiboot?

I can try, but I cannnot test. So If I publish package you must test it and write if works...

Quote:

Originally Posted by misiak (Post 992135)
/boot/multiboot/vmlinuz-2.6.28.10pali1 - your zImage file

That is bad! vmlinuz image format is not same as zImage format! And I do not like this stupid hacks with renaming files. (But this is maybe bootmenu bug/feature). If this will be solved I can provide config files for multiboot in -bootimg deb package.

Quote:

Originally Posted by Mentalist Traceur (Post 992163)
I thought the only thing needed from power kernel was that it be compiled with the cfg80211 (or whatever it's called) module, to be compatible with Lxp's stuff? The rest of the bleeding edge fanciness is just manually loading the right modules, no? Or is there something to do with compat or whatever that the injection driver requires?

In v46 was cfg80211 staticly linked into kernel image. wifi patches from wireless-testing needs new version of cfg80211 and it is not possible to replace staticly linked modules into kernel (when is running). So in my build is cfg80211 external module, which can be loaded/unloaded (and so replaced by new version too).

Next is needed to automatize building patched wifi driver (running with dpkg-buildpackage) for creating deb package (or include it in power-kernel deb package).

I contacted author of wl1251 patches. Now we are deciding how to distribute wifi module...

Quote:

Originally Posted by geneven (Post 992202)
The savecpu program says actual temperature is 0, obviously wrong. All seems fine, in general.

I think that all temperature values have now fixed units (as written in kernel doc), so it may be bug in this program. Find out how this program reading temperature (or contact author of this program, maybe he would know where is problem).


Quote:

Originally Posted by niqbal (Post 992335)
@ Pali, so basically it is Power-kernelv46 with a few bug fixes. very well done. any future plans (patches etc) on this project?

Include wl1251 patches. And include patches from users/developers (If they fix bug/report somethink). And also compile other usb host device drivers (if somebody will need).

misiak 2011-04-20 15:54

Re: kernel-power patches/updates
 
Quote:

Originally Posted by vi_ (Post 992346)
I didn't try it, I don't have multiboot/don't care. But I am really happy to see people writing noob guides. Consider adding this to the wiki or somthing.

Maybe I won't have to, when we will have working package multiboot-power-kernel with this patched kernel ;)

Quote:

Originally Posted by vi_ (Post 992346)
You only have like 15 posts and already you have contributed more than most of the 500+ post spam/whinge/noobs.

This makes you a good person in need of 'thanks!' buttoning.

Thank you.

Quote:

Originally Posted by pali (Post 992403)
That is bad! vmlinuz image format is not same as zImage format! And I do not like this stupid hacks with renaming files. (But this is maybe bootmenu bug/feature). If this will be solved I can provide config files for multiboot in -bootimg deb package.

When using multiboot, when boot with keyboard open, it displays menu. Then, after selecting item, it makes a flash of selected kernel into kernel area( source: http://forums.internettablettalk.com...4&postcount=10 - Stskeeps is "Official maintainer of the MeeGo Nokia N900 hardware adaptation" as does his signature say, so I guess he's reliable ), phone looks like it reboots (black screen for a second, then Nokia logo like on power on) and it loads the system like there was no multiboot. And in package multiboot-kernel-power nad kernel-power the hashes of kernels (zImage and vmlinuz) are the same, so I guess this is just a naming convention. And, when replacing the vmlinuz image of old kernel-power with your kernel, it just works. If you could do that package, I will test and report you how it works ;)

pali 2011-04-20 16:01

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 992625)
When using multiboot, when boot with keyboard open, it displays menu. Then, after selecting item, it makes a flash of selected kernel into kernel area( source: http://forums.internettablettalk.com...4&postcount=10 - Stskeeps is "Official maintainer of the MeeGo Nokia N900 hardware adaptation" as does his signature say, so I guess he's reliable ), phone looks like it reboots (black screen for a second, then Nokia logo like on power on) and it loads the system like there was no multiboot. And in package multiboot-kernel-power nad kernel-power the hashes of kernels (zImage and vmlinuz) are the same, so I guess this is just a naming convention. And, when replacing the vmlinuz image of old kernel-power with your kernel, it just works. If you could do that package, I will test and report you how it works ;)

Yes, but it is bad to tell that this is vmlinuz if in fact it is zImage. (As I wrote I do not like some stupid hacks this type). Why multiboot does not work if file has normal zImage name??

leojab 2011-04-20 17:06

Re: kernel-power patches/updates
 
misiak, I was trying the same method earlier, the same way u mentioned in the noob guide but to no avail. I cannot get 2.6.68.10pali1 to boot. I can boot only to Maemo PR1.3 and NIITDroid Vostok.

When selecting option to power kernel, the N900 does not seems to flash the kernel area with the power kernel and it just gets stuck in a black blank screen..
I really needs power kernel for hostmode and many other features..
The /lib/modules, /boot/multiboot and /etc/multiboot.d seems fine with same reference to kernel.

I do not know where i am doing wrong :-(

misiak 2011-04-20 17:08

Re: kernel-power patches/updates
 
Quote:

Originally Posted by pali (Post 992628)
Yes, but it is bad to tell that this is vmlinuz if in fact it is zImage. (As I wrote I do not like some stupid hacks this type). Why multiboot does not work if file has normal zImage name??

Sorry, I made a mistake.

I digged sources a bit ( http://maemo.org/packages/source/vie...boot/0.2.10-1/ , downloaded source package, MohammadAG is maintainer, but if you want to ask questions, ask Jay-C, he is original author of code - see readme file at the very bottom).

There is line (lines 20-21) in scripts/multiboot:
Quote:

# vmlinuz searchlist
VMLINUZ_SEARCH="boot/multiboot/vmlinuz- boot/multiboot/zImage- boot/vmlinuz- boot/zImage-"
So it also searches zImage- files! And also in "/boot"!

Confirmed: kernel renamed to /boot/zImage-2.6.28.10pali1
/etc/multiboot.d/01-Maemo-kernel-power46.item contents:
Quote:

ITEM_NAME="Maemo kernel-power46-pali1"
ITEM_KERNEL="2.6.28.10pali1"
ITEM_MODULES=ext3
(empty line at end of file, but don't know if it's needed)
and it still boots :) Thank you pali for mobilizing me to read the sources of multiboot :)

There is also file README, which part of reads:
Quote:

1.Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

The configuration files are in /etc/multiboot.d/

Each file named <whatever>.item represents a bootable configuration,
which can be selected from the bootup menu.


1.1 Item file format
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

A line starting with # is a comment

All other lines must be like the following:-

ITEM_ID="..."
A short name for this configuration.
No spaces, no special characters, max 6 characters long.

ITEM_NAME="..."
A description string for this configuration.
Shown on the bootmenu screen.

ITEM_KERNEL="..."
Kernel version to run in this configuration.
If the running kernel is not correct, multiboot will reflash
the device and reboot automatically.

ITEM_MODULES="..."
A list of kernel modules required to boot this configuration.
E.g. "ext2 ext3 fat vfat"

ITEM_DEVICE="..."
Root partition device name.
Use ${EXT_CARD} to point to the external MMC,
and ${INT_CARD} for internal.
E.g. "${EXT_CARD}p2" for partition 2 in removable MMC.

ITEM_FSTYPE="..."
Filesystem type for the root fs.
Usually ext2 or ext3.
Also, you must have the fs module loaded.

ITEM_FSOPTIONS="..."
Filesystem options for root fs. Typically,
for ext2/ext3:
"rw,noatime,errors=remount-ro"

ITEM_INITRC="..."
Init program to execute when switching over to root.
Optional, default is to search the usual locations.

ITEM_INITFS="..."
Locations where the Maemo root fs is moved after pivot.
Typically "initrd" or "mnt/initfs"
Defaults to "mnt/initfs"
And these are all options available in item file. Only 3: ITEM_KERNEL, ITEM_NAME, ITEM_MODULES are required by titan's power kernel, I just included this to see if your kernel maybe needs or can use any more options to use all its features?

Thanks for your great work again :)

Also: updated my previous post with instructions how to manually make it work with multiboot to better fulfill standards (zImage instead of vmlinuz). I was aware of the difference between these two files, but thought it was just a naming convention.

misiak 2011-04-20 17:13

Re: kernel-power patches/updates
 
Quote:

Originally Posted by leojab (Post 992674)
misiak, I was trying the same method earlier, the same way u mentioned in the noob guide but to no avail. I cannot get 2.6.68.10pali1 to boot. I can boot only to Maemo PR1.3 and NIITDroid Vostok.

When selecting option to power kernel, the N900 does not seems to flash the kernel area with the power kernel and it just gets stuck in a black blank screen..
I really needs power kernel for hostmode and many other features..
The /lib/modules, /boot/multiboot and /etc/multiboot.d seems fine with same reference to kernel.

I do not know where i am doing wrong :-(

I made a horrible mistake there, sorry. I haven't copied full contents of file /etc/multiboot.d/01-Maemo-kernel-power46.item - the line
Quote:

ITEM_MODULES=ext
should be:
Quote:

ITEM_MODULES=ext3
Other instructions without changes.

Thanks for help :) Change contents of this file:
Code:

sudo gainroot
leafpad /etc/multiboot.d/01-Maemo-kernel-power46.item

Edit, save file, exit terminal, reboot and tell me if it works, please. Also, was your charger plugged in? I noticed I have sometimes problem with booting with multiboot while charging battery...


EDIT: pali!, maybe you could (in your packages) rename kernel zImage file name from /boot/zImage-2.6.28-pali1 to /boot/zImage-2.6.28.10pali1 ? If so, the package "multiboot-kernel-power" shall only containt /etc/multiboot.d/01-Maemo-kernel-power46.item file and depend on kernel-power? Because if you keep your current naming convention, after install of kernel-power and kernel-power-modules etc. we have kernel "zImage-2.6.28-pali1" and modules in /lib/modules in subdir "2.6.28.10pali1". And for multiboot it does not work:( Don't want to be rude here or anything negative, just asking for a consistent naming convention, because it would simplify lots of work ;)

Also, instructions in post http://talk.maemo.org/showpost.php?p...8&postcount=75 updated again. I hope I won't need to change them anymore.

leojab 2011-04-20 19:08

Re: kernel-power patches/updates
 
Thanks pali and misiak.. I was able to finally get the kernel-power-pali1 installed.
The additional part to be checked is as follows:
1. After installing pali kernel, make sure the owner of the /lib/modules/2.6.28.10pali1 is root. This can be done using chown root:root command
2. Make sure the zImage file is in the /boot folder as well and it is owned by root

Now, I am satisfied with the first step.. cannot wait for more enhancement such as moving to kernel 2.6.37 with libraries :)

Estel 2011-04-20 19:41

Re: kernel-power patches/updates
 
Hi Pali.

I really appreciate your work here. Is there anything that we, regular users, can do to help You become official kernel-power maintainer? I think this would clear mess that we have now with kernel-power versions (no offense to anyone):

- v46 official without usb cd modules = problems with hostmode
- v46 with bleeding edge wifi - same problems with hostmode
- v42 official - last known to work with usb CD in hostmode (correct me, if i'm wrong).

I'm also waiting for bleeding edge wifi to be included in Your kernel, but anyway, big thanks for all Your work already done :)

Ps.

I did a quick search on kernel-power page (where You are on pending list to become maintainer), but wasn't able to find any "vote" option. Sorry, if it is stupid question - I'm little new to this.

misiak 2011-04-20 19:47

Re: kernel-power patches/updates
 
Quote:

Originally Posted by leojab (Post 992746)
Thanks pali and misiak.. I was able to finally get the kernel-power-pali1 installed.
The additional part to be checked is as follows:
1. After installing pali kernel, make sure the owner of the /lib/modules/2.6.28.10pali1 is root. This can be done using chown root:root command
2. Make sure the zImage file is in the /boot folder as well and it is owned by root

Now, I am satisfied with the first step.. cannot wait for more enhancement such as moving to kernel 2.6.37 with libraries :)

You had permissions and file ownership problem? Strange, really strange...

Someone (maybe even pali, but I'm not sure and don't want to put words into his mouth) wrote that moving to kernel 2.6.37 will not be possible in Maemo 5, as some closed-source binaries rely on kernel interfaces present in 2.6.28 and deprecated or not available in 2.6.37 :(

Also, pali! I want to try few things by myself, so: how to compile your kernel please step-by-step instruction (can be not noob-friendly, just steps)? ^ ^ Would it work when I: 1. download kernel-power 46 sources, 2. go to http://atrey.karlin.mff.cuni.cz/~pali/ , get kernel-power_2.6.28-pali1_source.diff.tar.gz, 3. apply diff, 4. compile kernel 5. compile modules? :P

jprobichaud 2011-04-21 01:56

Re: kernel-power patches/updates
 
I went to the garage and I did a positive review of the "pali" user (search for pali in the "people"). maybe if we are more users doing this, pali will get promoted as a trusted user?

lolloo 2011-04-21 12:36

Re: kernel-power patches/updates
 
what about QCPUFreqapp ,when i run it CPU temp shows me 346C ! hehe

any fix for this.....

AgogData 2011-04-21 13:03

Re: kernel-power patches/updates
 
pali, can you tell me whats wrong here :

Code:

/home/user # cd /home/user/MyDocs/kernel/
/home/user/MyDocs/kernel # dpkg -i *.deb
Selecting previously deselected package kernel-power-bootimg.
(Reading database ... 67595 files and directories currently installed.)
Unpacking kernel-power-bootimg (from kernel-power-bootimg_2.6.28-pali1_armel.deb) ...
dpkg: regarding kernel-power-flasher_2.6.28-pali1_armel.deb containing kernel-power-flasher, pre-dependency problem:
 kernel-power-flasher pre-depends on kernel-power (= 2.6.28-pali1)
  kernel-power is installed, but is version 2.6.28-maemo46.
dpkg: error processing kernel-power-flasher_2.6.28-pali1_armel.deb (--install):
 pre-dependency problem - not installing kernel-power-flasher
Selecting previously deselected package kernel-power-headers.
Unpacking kernel-power-headers (from kernel-power-headers_2.6.28-pali1_armel.deb) ...
Preparing to replace kernel-power-modules 2.6.28-maemo46 (using kernel-power-modules_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power-modules ...
dpkg: error processing kernel-power-modules_2.6.28-pali1_armel.deb (--install):
 failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./lib/modules/2.6.28.10pali1/omaplfb.ko': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace kernel-power 2.6.28-maemo46 (using kernel-power_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power ...
Selecting previously deselected package linux-kernel-power-headers.
Unpacking linux-kernel-power-headers (from linux-kernel-power-headers_2.6.28-pali1_armel.deb) ...
dpkg: error processing linux-kernel-power-headers_2.6.28-pali1_armel.deb (--install):
 failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./usr/include/linux/virtio_console.h': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Setting up kernel-power-bootimg (2.6.28-pali1) ...
Setting up kernel-power-headers (2.6.28-pali1) ...
Setting up kernel-power (2.6.28-pali1) ...
dpkg: failed to write status record about `wormux' to `/var/lib/dpkg/status': No space left on device


Radicalz38 2011-04-21 13:09

Re: kernel-power patches/updates
 
@Agogdata
The last line speaks for itself
No space left on device
as you can see kernel modules doesn't get replaced when you install another one so it just piles up at /var/lib/modules till you get out of space left for your n900's NAND

vi_ 2011-04-21 13:10

Re: kernel-power patches/updates
 
Quote:

Originally Posted by AgogData (Post 993193)
pali, can you tell me whats wrong here :

/home/user # cd /home/user/MyDocs/kernel/
/home/user/MyDocs/kernel # dpkg -i *.deb
Selecting previously deselected package kernel-power-bootimg.
(Reading database ... 67595 files and directories currently installed.)
Unpacking kernel-power-bootimg (from kernel-power-bootimg_2.6.28-pali1_armel.deb) ...
dpkg: regarding kernel-power-flasher_2.6.28-pali1_armel.deb containing kernel-power-flasher, pre-dependency problem:
kernel-power-flasher pre-depends on kernel-power (= 2.6.28-pali1)
kernel-power is installed, but is version 2.6.28-maemo46.
dpkg: error processing kernel-power-flasher_2.6.28-pali1_armel.deb (--install):
pre-dependency problem - not installing kernel-power-flasher
Selecting previously deselected package kernel-power-headers.
Unpacking kernel-power-headers (from kernel-power-headers_2.6.28-pali1_armel.deb) ...
Preparing to replace kernel-power-modules 2.6.28-maemo46 (using kernel-power-modules_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power-modules ...
dpkg: error processing kernel-power-modules_2.6.28-pali1_armel.deb (--install):
failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./lib/modules/2.6.28.10pali1/omaplfb.ko': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace kernel-power 2.6.28-maemo46 (using kernel-power_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power ...
Selecting previously deselected package linux-kernel-power-headers.
Unpacking linux-kernel-power-headers (from linux-kernel-power-headers_2.6.28-pali1_armel.deb) ...
dpkg: error processing linux-kernel-power-headers_2.6.28-pali1_armel.deb (--install):
failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./usr/include/linux/virtio_console.h': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Setting up kernel-power-bootimg (2.6.28-pali1) ...
Setting up kernel-power-headers (2.6.28-pali1) ...
Setting up kernel-power (2.6.28-pali1) ...
dpkg: failed to write status record about `wormux' to `/var/lib/dpkg/status': No space left on device


No wonder no-body wants to develop for n900, they post their work then get swamped by noobspam.

misiak 2011-04-21 13:29

Re: kernel-power patches/updates
 
Quote:

Originally Posted by lolloo (Post 993179)
what about QCPUFreqapp ,when i run it CPU temp shows me 346C ! hehe

any fix for this.....

Fix: contact QCPUFreqapp developer ;) Previously, kernel reported temperature different way, now it reports units in 0.1C (which, by the way, is proper behaviour, old way was not proper and non-standard), so if you want to know your CPU temperature, you have to divide it by 10, so 346C shown / 10 = in fact 34.6C ;)

Edit: If you know how to compile software yourself, you can download source of version 0.4.1-1 and in file "mainwindow.cpp" change line 204 from:
Quote:

return QString( readSysFile( "class/power_supply/bq27200-0/temp" ) + " " + QString::fromUtf8("\302\260") + "C" );
to
Quote:

return QString( readSysFile( "class/power_supply/bq27200-0/temp" ).left(QString(readSysFile("class/power_supply/bq27200-0/temp")).length()-1) + "." + QString( readSysFile( "class/power_supply/bq27200-0/temp" ) ).right(1) + " " + QString::fromUtf8("\302\260") + "C" );
(You can also compile newer version, just find function "MainWindow::getCPUTemp()" and change the same fragment, it can be in different line)
It's an ugly hack (just reads temperature characters without last one, puts dot and reads last character), but it works. Don't contact developer with this, because from what i can tell looking at the sources, it already is hard to be maintaned (in almost every function there are different flows for power kernel and normal kernel). Once pali will become maintainer of power-kernel package, he (or we all) will contact QCPUFreqapp dev and other devs of software reading temperature and inform them about needed changes :P

AgogData 2011-04-21 15:16

Re: kernel-power patches/updates
 
i've freed up some space but still get errors :

Code:

/home/user/MyDocs/kernel # dpkg -i *.deb
(Reading database ... 70350 files and directories currently installed.)
Preparing to replace kernel-power-bootimg 2.6.28-pali1 (using kernel-power-bootimg_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power-bootimg ...
Selecting previously deselected package kernel-power-flasher.
dpkg: regarding kernel-power-flasher_2.6.28-pali1_armel.deb containing kernel-power-flasher, pre-dependency problem:
 kernel-power-flasher pre-depends on kernel-power-modules (= 2.6.28-pali1)
  kernel-power-modules is not installed but configs remain.
dpkg: error processing kernel-power-flasher_2.6.28-pali1_armel.deb (--install):
 pre-dependency problem - not installing kernel-power-flasher
Preparing to replace kernel-power-headers 2.6.28-pali1 (using kernel-power-headers_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power-headers ...
Selecting previously deselected package kernel-power-modules.
Unpacking kernel-power-modules (from kernel-power-modules_2.6.28-pali1_armel.deb) ...
Preparing to replace kernel-power 2.6.28-pali1 (using kernel-power_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power ...
Unpacking linux-kernel-power-headers (from linux-kernel-power-headers_2.6.28-pali1_armel.deb) ...
Setting up kernel-power-bootimg (2.6.28-pali1) ...
Setting up kernel-power-headers (2.6.28-pali1) ...
Setting up kernel-power-modules (2.6.28-pali1) ...
Adding `local diversion of /usr/bin/JoikuSpot_Bouncer.ko to /lib/modules/2.6.28-omap1/JoikuSpot_Bouncer.ko'
Setting up kernel-power (2.6.28-pali1) ...
Setting up linux-kernel-power-headers (2.6.28-pali1) ...
Errors were encountered while processing:
 kernel-power-flasher_2.6.28-pali1_armel.deb
/home/user/MyDocs/kernel #


Radicalz38 2011-04-21 15:23

Re: kernel-power patches/updates
 
@Agogdata
don't dpkg -i *.deb kernel power(Ever)
do this steps 1 by 1
dpkg -i kernel-power_*
dpkg -i kernel-power-mod*
dpkg -i kernel-power-fla*
dpkg -i kernel-power-set*

Do not install kernel-power-bootimg unless you are using nitdroid
Do not install kernel-power-headers unless you plan on compiling your own kernel

So do this first...
apt-get remove kernel-power* before doing the steps above to free up the messed up install files

Sorry I'm not really good at tutorials :(

cheve 2011-04-22 02:40

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 992764)
You had permissions and file ownership problem? Strange, really strange...

Someone (maybe even pali, but I'm not sure and don't want to put words into his mouth) wrote that moving to kernel 2.6.37 will not be possible in Maemo 5, as some closed-source binaries rely on kernel interfaces present in 2.6.28 and deprecated or not available in 2.6.37 :(

Also, pali! I want to try few things by myself, so: how to compile your kernel please step-by-step instruction (can be not noob-friendly, just steps)? ^ ^ Would it work when I: 1. download kernel-power 46 sources, 2. go to http://atrey.karlin.mff.cuni.cz/~pali/ , get kernel-power_2.6.28-pali1_source.diff.tar.gz, 3. apply diff, 4. compile kernel 5. compile modules? :P

check out this post http://talk.maemo.org/showthread.php?t=71069, it may help

godofwar424 2011-04-22 08:52

Re: kernel-power patches/updates
 
Could anybody please give me some instructions on how to install this properly and the multiboot stuff as well as the possibility of using it with uboot for MeeGo?

I will take the instructions, noobify them a bit and create a wiki page to make things a bit easier and also reduce the clutter on your thread :)

pali 2011-04-22 09:29

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 992675)
Confirmed: kernel renamed to /boot/zImage-2.6.28.10pali1
/etc/multiboot.d/01-Maemo-kernel-power46.item contents:

Ok, I rename zImage name in -bootimg package and I add multiboot item file to -bootimg package.


Quote:

Originally Posted by misiak (Post 992764)
Someone (maybe even pali, but I'm not sure and don't want to put words into his mouth) wrote that moving to kernel 2.6.37 will not be possible in Maemo 5, as some closed-source binaries rely on kernel interfaces present in 2.6.28 and deprecated or not available in 2.6.37 :(

If I have time, I will look at meego kernel for n900. Maybe something will be possible.

Quote:

Originally Posted by misiak (Post 992764)
Also, pali! I want to try few things by myself, so: how to compile your kernel please step-by-step instruction (can be not noob-friendly, just steps)? ^ ^ Would it work when I: 1. download kernel-power 46 sources, 2. go to http://atrey.karlin.mff.cuni.cz/~pali/ , get kernel-power_2.6.28-pali1_source.diff.tar.gz, 3. apply diff, 4. compile kernel 5. compile modules? :P

1. Download source of kernel 2.6.28 (from kernel.org, or .org.tar.gz of power-kernel v64), it is not on my server
2. Unpack _source.diff.tar.gz to kernel directory (or use debian tree from my git repo)

3.a Compilation under scratchbox:
1. Run in scratchbox enviromental in kernel tree:
$ dpkg-buildpackage -b -rfakeroot

3.b Compilation using madde:
1. In kernel tree apply madde.patch
$ patch -p0 -i madde.patch
2. Run this in kernel tree:
$ mad dpkg-buildpackage -b

4. You will have builded deb packages in ../

misiak 2011-04-22 11:41

Re: kernel-power patches/updates
 
Quote:

Originally Posted by pali (Post 993598)
Ok, I rename zImage name in -bootimg package and I add multiboot item file to -bootimg package.

When will you upload them? :) I can't wait to test :)

Quote:

Originally Posted by pali (Post 993598)
If I have time, I will look at meego kernel for n900. Maybe something will be possible.

I found source, and I can see you have already been active in thread http://talk.maemo.org/showthread.php?t=70082 , MohammadAG pointed with which software problems can occur (in post #4 of this thread, so you surely must have seen it)

Thank you very much for your instrucions on compiling this patched kernel :) I will also look at the code of bleeding edge wifi drivers and code with your patch-of-cumulative-patches and try to play a little. I don't have much experience in kernel compiling, but I've compiled few custom kernels for my custom linux livecd distribution in the last 4 years, so I'm not totally noobish at it. If you are working on something more than bleeding edge wifi drivers with pocket injection, could you drop me a private message, so we won't waste time trying to do the same thing? ;)

stooobs 2011-04-22 16:49

Re: kernel-power patches/updates
 
just wanted to say thanks for this the i/o patch really seems to work theres no slow down when copying the 2gig easy debian image to a back up folder and installing apps in ed seems to be vastly improved i havent done much testing yet
also the guide for multiboot was very simple to follow cheers for that a few copy and pastes later and everything worked spot on

i have just removed all kernel power packages and reinstalled just pali's because fapman and xterm aptget wouldnt work becasue of dependency problems every thing works fine now and i cleared away some root space the only problem now is i cant install kernel-power-settings i was hopeing some one could make a compatible deb running the phone at 600hz is very depresing

pali 2011-04-22 17:40

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 993652)
When will you upload them? :) I can't wait to test :)

Sorry, now I do not have time...

Quote:

Originally Posted by misiak (Post 993652)
If you are working on something more than bleeding edge wifi drivers with pocket injection, could you drop me a private message, so we won't waste time trying to do the same thing? ;)

only wl1251 patches. (lxp will integrate it...)

misiak 2011-04-23 15:50

Re: kernel-power patches/updates
 
1 Attachment(s)
Quote:

Originally Posted by godofwar424 (Post 993586)
Could anybody please give me some instructions on how to install this properly and the multiboot stuff as well as the possibility of using it with uboot for MeeGo?

I will take the instructions, noobify them a bit and create a wiki page to make things a bit easier and also reduce the clutter on your thread :)

It won't be needed soon, because hopefully this kernel will be next release of power kernel, so it will be as easy as installing power kernel now - just installing correct packages via application manager and everything works - noob friendly. Untill then, I wouldn't consider this kernel noob-friendly and people who now still don't know what to do should wait just these few more days.

Quote:

Originally Posted by stooobs (Post 993773)
i have just removed all kernel power packages and reinstalled just pali's because fapman and xterm aptget wouldnt work becasue of dependency problems every thing works fine now and i cleared away some root space the only problem now is i cant install kernel-power-settings i was hopeing some one could make a compatible deb running the phone at 600hz is very depresing

Try deb attached below, I didn't test it, but it's basically kernel-power-settings 0.11 with removed dependancy on kernel-power-flasher, so it should work. (don't forget to write here later if it worked or not;) )

Mentalist Traceur 2011-04-23 16:29

Re: kernel-power patches/updates
 
You know, pali, you can just package your kernel with the same package name as the power kernel - that's what lxp did when packaging power 46wl1, and so dpkg and apt-get see it as just another higher version of the power-kernel package, so there's none of this fiddling with either installing power kernel than your over it kernel, to get the dependencies right, or repackaging kernel power settings to not depend on kernel power.

misiak 2011-04-23 16:40

Re: kernel-power patches/updates
 
Quote:

Originally Posted by Mentalist Traceur (Post 994201)
You know, pali, you can just package your kernel with the same package name as the power kernel - that's what lxp did when packaging power 46wl1, and so dpkg and apt-get see it as just another higher version of the power-kernel package, so there's none of this fiddling with either installing power kernel than your over it kernel, to get the dependencies right, or repackaging kernel power settings to not depend on kernel power.

Honestly, I think the same (or just create new garage account with name power-kernel-pali and create debs with using of fields "replaces" and "provides" or whatever they're called), but I also think that (to be fair) he should wait with it untill someone accepts or rejects him from being power-kernel maintainer. These are unfortunately not official power-kernels yet, so they should not use their package names yet, sadly. So overall, I think that change of name for now is good option, but in long term I agree with you.

Mentalist Traceur 2011-04-23 18:11

Re: kernel-power patches/updates
 
Quote:

Originally Posted by misiak (Post 994206)
Honestly, I think the same (or just create new garage account with name power-kernel-pali and create debs with using of fields "replaces" and "provides" or whatever they're called), but I also think that (to be fair) he should wait with it untill someone accepts or rejects him from being power-kernel maintainer. These are unfortunately not official power-kernels yet, so they should not use their package names yet, sadly. So overall, I think that change of name for now is good option, but in long term I agree with you.

Agreed with waiting to see if someone accepts/rejects him as power kernel maintainer...

On the other hand, humans tend to get possessive of their projects, and titan certainly put a lot of time and effort into the power kernel originally.

Anyway, by the same logic though, lxp's power kernel package wasn't exactly an official power kernel either. It was effectively almost the same, just with cfg80211 compiled as module instead of statically linked or whatever - yet I can install lxp's power kernel debs, and then power kernel settings installs just fine. Just because it's not an official package doesn't mean it can't be packaged so that it accurately represents itself as a sufficient dependency for the power kernel settings package - seeing as how that's what those fields are for and that is exactly true - it is a sufficient dependency for power kernel settings.

One thing I kinda want to see though, semi-off-topic as this is, is a kernel compiled in such a way that the lxp modules are the default wifi modules - or even only wifi modules. Combined with the osso-wlan fix (except using an identical version number field, so that it doesn't break the update process... actually, can't that osso-wlan fix be placed inside the CSSU? Seems like a good place for it. I'll bug someone about that later), there's really not a good reason to stay with the "stock" wifi driver... we've got a bunch of people on the same driver, and as far as I know, the majority do not have any actual bugs from the thing. I remember people complaining early on about it using up battery quickly, but I had no such thing (unless I left the card in monitor mode for hours... but that's a bit self explanatory). I mean, it was lxp's original monitor mode patches that went into the default wifi driver in the power kernel - so the power kernel already did something along these lines in the first place. It's just that lxp's release of the injection mode patches went through such a circumstancially different path, first as a contract for neopwn then through a donation scheme, and only then completely free-to-download, and by then Titan wasn't actually that active anymore.

I mean, right now I have done this by replacing the scripts that Advanced Interface Switcher uses to load/unload the wifi drivers with modified versions (to give full instead of relative paths) of the load.sh/unload.sh scripts. This means I only deal with the stock wifi driver if I manually modprobe it, or right after a reboot (which I usually just unload the wifi driver at that point until I need to use wifi, so mostly I'm already on always-lxp-driver use... It does more when needed than the stock one, and does the same stuff the stock one does without no new problems that I've ever seen... *Shrug*

stooobs 2011-04-23 19:57

Re: kernel-power patches/updates
 
@miiak
thank you very much you kernel power settings works a charm with no conflicts in package's this whole kernel set seems complete now
and thank god for overclocking lol

mesho123 2011-04-24 03:08

Re: kernel-power patches/updates
 
i have the same problem when i choose kernel 46

i was tired this post 75* many times and it's now working with my mobile

when i type uname -r

it's told me
2.6.28-omp1

but it's on the Original Kernal

please help me


thank you

misiak 2011-04-24 11:43

Re: kernel-power patches/updates
 
Quote:

Originally Posted by mesho123 (Post 994379)
i have the same problem when i choose kernel 46

i was tired this post 75* many times and it's now working with my mobile

when i type uname -r

it's told me
2.6.28-omp1

but it's on the Original Kernal

please help me


thank you

mesho123, please type the following text into terminal (these are three commands beggining with "ls" and one command beginning with "cat"):
Code:

ls /boot/ >> /home/user/MyDocs/helpmelog.txt
ls /boot/multiboot/ >> /home/user/MyDocs/helpmelog.txt
ls /etc/multiboot.d/ >> /home/user/MyDocs/helpmelog.txt
cat /etc/multiboot.d/*.item >> /home/user/MyDocs/helpmelog.txt

And attach or copy contents of file "helpmelog.txt" from you internal memory. If you do it from your phone, you can find this file by opening file manager and clicking on "N900" memory (first on the list). If you do it from your computer - attach N900 with usb cable to computer, open it and it should me in main directory. Then I will be able to help you, because I will probably know what's wrong ;)

mesho123 2011-04-24 22:13

Re: kernel-power patches/updates
 
1 Attachment(s)
hi,


the file is attached thank you for help me

misiak 2011-04-25 00:27

Re: kernel-power patches/updates
 
Quote:

Originally Posted by mesho123 (Post 994767)
hi,
the file is attached thank you for help me

You need to edit file /etc/multiboot.d/01-Maemo-kernel-power46.item

I suggest you do it this way:

1. Open application manager, find and install app called "Leafpad" (if you have'nt installed it already on your phone). It's a text editor.

2. Open terminal and type:
Code:

sudo gainroot
To become root and then (this is one command, just type "leafpad" then space then name of file, as I wrote it above):
Code:

leafpad /etc/multiboot.d/01-Maemo-kernel-power46.item
and change line
Quote:

ITEM_KERNEL="2.6.28.10power46"
to
Quote:

ITEM_KERNEL="2.6.28.10pali1"
After that, hit the top bar (where it says "01-Maemo-kernel-power46.item") and hit "Save" button. Then close Leafpad (text editor), close terminal, reboot and check if it works. It should.

qole 2011-04-25 00:36

Re: kernel-power patches/updates
 
Firstly, thank you very much for pushing forward kernel development for our orphaned little kernel.

Do you think you could add the upstream patch that fixes this bug?

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

Lastly, what do you need to get this kernel into the repositories? Who can the council prod for you?

misiak 2011-04-25 01:12

Re: kernel-power patches/updates
 
Quote:

Originally Posted by qole (Post 994793)
Lastly, what do you need to get this kernel into the repositories? Who can the council prod for you?

Pali needs to be maintainer of http://maemo.org/packages/view/kernel-power/ - he is on "Pending maintainer requests" list. I think he should also apply for maintaining http://maemo.org/packages/view/kernel-power-modules/ and http://maemo.org/packages/view/uboot-power/ and http://maemo.org/packages/view/kernel-power-flasher/ and maybe even http://maemo.org/packages/view/kernel-power-settings/ to have control over whole kernel-power "suite", but he didn't apply for them (I don't know why).


All times are GMT. The time now is 16:09.

vBulletin® Version 3.8.8