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 v51 in Extras-Devel (https://talk.maemo.org/showthread.php?t=85665)

majaczek 2012-08-14 12:33

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
sorry maybe it's prejudgation but i got first time from ages the message about ressetting defaults by kernel-config because of some problem. It doesn't happen while low-batterry shutdown nor while the batterry is removed when the device is supposed to be off. So I quick judged it was problem with kernel crash. It could be hardware error either - I couldn't judge without properly reading logs. While the "emergency shutdown" due to some problem - were it real problem or kernel imagined one from wrong readings of availible sensor and HW-traces - the batterry was on too high level to shutdown due it beeing too low. Just remove the batterry put in and boot and it worked for 30 minutes to discharge. When it gently shutdowned due too drastically low charge i put the charger and it was behaving most gently since update to kp50 so some bad device state was reset so the bugs doesn't happen yet. I had problems with nokian batterry meter for long time but it worsened at kp51 update. After Device HW state reset problem is cured until now. BNF seems to measure batterry properly while QT batterry widget which uses most of nokian metter mechanics was able to show my batterry is at 5mah while in reality it were 33% or something less. The thing that worries me most since mild overheats (44c to 55c spikes on batterry) are mostly gone that bnf showed in it's popups that batterry data were recalibrated at least 3 times while I didn't recalibrated it in on purporse. I would exactly know how to collect log from file anywhere in mounted filesystem but I don't know how to collect it from /dev/mtd2 which is device - is it that cat command is enough and how much would it weight in kilobytes? Maybe some help or a link to an howto? I'm in hospital without wifi but my phone have already bought a few hundreds of megabytes of transfer. Let talk more later.

sixwheeledbeast 2012-08-14 17:48

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Your walls of text are very awkward to read...

If you post these maybe it will help.

Code:

uname -r
Code:

sudo kernel-config show
Code:

sudo gainroot
cd /home/user/MyDocs
gzip -c /dev/mtd2 > mtd2.gz


Estel 2012-08-20 21:54

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
I've noticed, that - when charging via bq2415 module - leaving device "on cable" when fully charged for many hours, lead to crash 100% times. It happens, despite fact, that charging is terminated properly (no yellow light, no charging when checking current flowing).

I can't tell when it happens exactly, but it's happening 100% of times, when I leave N900 for overnight charging with bq2415. Strangely, after such crash, device remains in state, when I can see static framebuffer output *without* backlight.

After using external light to allow reading from out transreflective screen, I was able to see that it reported DSME state as DSME_MALF (instead of "USER" or "SHUTDOWN". Which, probably, mean "malfunction".

It's worth to mention, that even disconnecting from charger and long-press of power button doesn't turn device off - it's necessary to remove battery (and put it back again), to recover from this state.

/Estel

projekt 2012-08-23 22:18

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by Estel (Post 1253912)
I've noticed, that - when charging via bq2415 module - leaving device "on cable" when fully charged for many hours, lead to crash 100% times. It happens, despite fact, that charging is terminated properly (no yellow light, no charging when checking current flowing).

I can't tell when it happens exactly, but it's happening 100% of times, when I leave N900 for overnight charging with bq2415. Strangely, after such crash, device remains in state, when I can see static framebuffer output *without* backlight.

After using external light to allow reading from out transreflective screen, I was able to see that it reported DSME state as DSME_MALF (instead of "USER" or "SHUTDOWN". Which, probably, mean "malfunction".

It's worth to mention, that even disconnecting from charger and long-press of power button doesn't turn device off - it's necessary to remove battery (and put it back again), to recover from this state.

/Estel

As far as i know it does not crash completely. SSH should still work so you can still reboot.
I noticed that this error only occurs if the screen is off, so
I leave my screen on with simple brightness widget.

Estel 2012-08-23 22:33

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Are You sure, that, when leaving screen ON, bq2415 concludes charging, instead of charging indefinitely? It seems to me, that power draw, when screen is on, may be bigger than treeshold set for termination_current.

Thanks for confirming this bug, BTW! I had no idea, that it's in some kind of "working" state, despite no X (just framebuffer, if one have it enabled) 0_o.

/Estel

quailstorm 2012-08-30 13:13

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hello guys, I have a problem with the included injection drivers.
With the first post linked .sh I got nothing like StefanL, so I decided to use his corrected version instead of Pali's.
the corrected .sh
But I think that this also fails to work.
Images showing the issue: terminal, failed to load modules
packet injection is still not active
If you can mention a power46wl1 and kernel 51 dual boot, it's an option, but I can't use u-boot, because I repartitioned the flash, and it cannot find bootmenu.scr.
What can I do with those modules to load? Please help.

shadocz1 2012-09-03 17:28

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hi guys, i am still learning how to on my n900, and now i face this problem, i tryed search but no accured found, i made upgrade to KP51, as usual, all went well, but after few hours i found out, that when i recieve SMS there is no alert light and tone, unles i keep conversation window open on background, so i made clean flash, again install KP51, and i am using CSSU testing, and same problem. Is there anyone who hase same problem?? or somebody who can give me help how to fix this think

j0zeph 2012-09-05 10:26

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hy guys ,
Sorry if my question is dumb , bear with me ...
I have 2.6.28-10power51 ,
I typed "sudo kernel-config show" but the "current kernel configuration" line is empty . however with "uname -r" command I see that I have the above version
My question is : is this the latest version ?
Fapman does not show me any updates available

foobar 2012-09-05 10:30

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Yes, that's the latest one. I don't think that line is supposed to contain anything else. It looks like it's just the 'introductory' text for the following.

teamer 2012-09-05 18:03

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
1 Attachment(s)
guys i had some errors ?

araknos 2012-09-07 14:34

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
On http://wiki.debian.org/ArmEabiHowto
i read that to keep compatibilty with old eabi and eabi
kernel should be compiled with

CONFIG_ARM_THUMB=y
CONFIG_AEABI=y
CONFIG_OABI_COMPAT=y
______________________

On p51 i see only

# CONFIG_AEABI is not set
CONFIG_ARM_THUMB=y


Doesnt this break compatibility with old arm chroots? I cant chroot into an older arm etch for istance.

joerg_rw 2012-09-08 13:17

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by majaczek (Post 1251698)
[...] I would exactly know how to collect log from file anywhere in mounted filesystem but I don't know how to collect it from /dev/mtd2 which is device - is it that cat command is enough and how much would it weight in kilobytes? Maybe some help or a link to an howto?


http://maemo.org/packages/view/sp-oops-extract/

sp-oops-extract /dev/mtd2

/j

araknos 2012-09-08 14:28

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by araknos (Post 1262663)
On http://wiki.debian.org/ArmEabiHowto
i read that to keep compatibilty with old eabi and eabi
kernel should be compiled with

CONFIG_ARM_THUMB=y
CONFIG_AEABI=y
CONFIG_OABI_COMPAT=y
______________________

On p51 i see only

# CONFIG_AEABI is not set
CONFIG_ARM_THUMB=y


Doesnt this break compatibility with old arm chroots? I cant chroot into an older arm etch for istance.

I do need to compile p51 from scratch, but cant find any sources!?

misiak 2012-09-08 14:40

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by araknos (Post 1263149)
I do need to compile p51 from scratch, but cant find any sources!?

try running
Code:

apt-get source kernel-power
inside fremantle sdk's scratchbox ;) don't forget to add extras-devel repository to /etc/apt/sources.list and "apt-get update" first ;)

ehj666 2012-09-10 15:51

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
I am getting an unmet dependencies error when I try to install kernel-power-flasher. The specific error is:
kernel-power-flasher: Predepends: kernel-power (= 1:2.6.28-10power50) but 1:2.6.28-10power51r1 is to be installed.

I have uninstalled and reinstalled all of the kernel-power modules, but cannot get around the dependency error. Manually installing kernel-power installs 51r1.

Any help would be appreciated.

Hurrian 2012-09-10 21:45

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Inatall kernel-power first, then modules, then flasher.

ehj666 2012-09-10 23:16

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by Hurrian (Post 1264477)
Inatall kernel-power first, then modules, then flasher.

Alas same error. I did:
apt-get purge kernel-power kernel-power-modules kernel-power-settings

Reboot, then:
apt-get install kernel-power
apt-get install kernel-power-modules
apt-get install kernel-power-settings
apt-get install kernel-power-flasher

Only the last one failed with the same dependency error.

Any ideas?

Thanks

Hurrian 2012-09-11 11:33

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Weird. -flasher for v50 should be cleaned out of repos by now though.

Try apt-get update and reinstalling kernel-power-flasher.

ehj666 2012-09-11 11:49

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by Hurrian (Post 1264758)
Weird. -flasher for v50 should be cleaned out of repos by now though.

Try apt-get update and reinstalling kernel-power-flasher.

I did that early on, just tried again but still getting the same error. Is there a local cache of the downloaded package I can clear? I noticed at one point that I lost my data connection, yet the install proceeded without interruption, which leads me to believe it is pulling it from local storage.

Thanks

ehj666 2012-09-11 14:14

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by ehj666 (Post 1264768)
I did that early on, just tried again but still getting the same error. Is there a local cache of the downloaded package I can clear? I noticed at one point that I lost my data connection, yet the install proceeded without interruption, which leads me to believe it is pulling it from local storage.

Update. I removed all kernel-power apps, did "apt-get clean", rebooted, did "apt-get update" followed by reinstalling the kernel-power apps. I got an error installing kernel-power which suggested running apt-get install --fix-missing. I did this which seemed to have fixed the install problem, however when I got to installing kernel-power-flasher I still got the same error.

azkay 2012-09-12 08:56

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
uname -r tells me I'm running 51, Application Manager has Extras Devel enabled, refreshed but still tells me no updates available.

How do I go from 51 to 51r1?

pali 2012-09-12 16:17

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hi, after long time here is prerelease kernel-power v52

Source code is in garage git, here is changelog:

kernel-power (1:2.6.28-10power52) fremantle; urgency=low

* Backport upstream patch: udf-use-hw-sector-size.diff (This fix UDF FS support on SD cards and USB disks)
* Update bq2415x_charger patch: (use kstrtol, use dev_dbg, call sysfs_notify, rename N900 charger to bq24150a, fix reporting bad values, disable charging when charger disconnected)
* Added patch kstrtol.diff which define macro kstrtol as strict_strtol
* Update into about kernel-power-bootimg package
* Package kernel-power-bootimg does not provide any features
* Enable more netfilter modules
* Added driver rx51_battery which export battery temperature, design capacity and voltage to sysfs

-- Pali Rohár <hidden> Wed, 12 Sep 2012 18:15:13 +0200

ade 2012-09-12 17:19

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Running 2.6.28.10-power52 now :)

I do have a "side" question:
Using u-boot, I only installed the bootimage and modules. It all went okay and I could boot into power52.
But dependency problems will arise afterward (usb hostmode depending on flasher >= power51 etc.) if you don't install power-flasher and power-kernel. After installing both, the dependency problems where gone.

The question itself is: why would I need power-flasher and power-kernel (in NAND), and why do parts like usb hostmode depend on it (and not also optionally on the corresponding bootimage for example)?

pali 2012-09-12 17:57

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
We have decided that -bootimg packages will not provide any features. If you try to install package which depends on some feature then apt-get and HAM will install -bootimg package as default instead -flasher...

I'm preparing patch for maemo which ask user before flashing new kernel if he really want do it. So then installing -flasher package will not flash kernel without user accept.

Patch will be intellingent, it will ask only if you will change kernel (eg. nokia to kernel-power, or kernel to u-boot). When you will do updating, it should not ask...

pali 2012-09-12 18:56

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
For reading battery temperature (in tenths of Celsius), battery design capacity and voltage via new rx51_battery driver use:
$ cat /sys/class/power_supply/rx51-battery/uevent

This is new kernel driver (I wrote it yesterday) which read RAW values and convert it by RE conversation formula...

projekt 2012-09-12 19:54

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hi
the package manager refuses to install power kernel 52 -
"not compatible" Is it possible to install with apt-get?

independent 2012-09-12 21:06

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by projekt (Post 1265579)
Hi
the package manager refuses to install power kernel 52 -
"not compatible" Is it possible to install with apt-get?

Quick 'n dirty way to install debs when you know what the dependencies are and have the actual package is (as root):
Code:

dpkg -i packagename.deb

azkay 2012-09-12 22:16

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Installed the 52 and when I choose USB host mode it tells me "Error: charger attached".

nkirk 2012-09-16 16:33

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
http://talk.maemo.org/showthread.php?t=85658

Use the above updated usb mode deb.

//nkirk

arnoldux 2012-09-16 21:23

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
how can i downgrade to kp50?

GreyZeppelin 2012-09-16 22:22

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hello, I apologize if this isn't the proper thread to ask this but I feel this is the closest I can find. I had kernel power v50 installed before. I had overclocking, all that good stuff installed. Then I decided to start fresh and I got the CSSU update. Now, I would to go back to having the kernel power. Is there anyway for me to go back? I tried to install kernel power v51 but when I check on x term, I get 2.6.28-omap1.

nkirk 2012-09-17 06:44

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Hi Pali,

Are you planning to support animation of the batery icon when charging with your bq2415x_charger module,also to indicate the bat level on the icon? or working on another workaround?


//nkirk

Estel 2012-09-17 21:23

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
AFAIK, freemangordon is the one, who will pick writing userland bits, that will replace bme, with proper things using bq2415_charger module.

Everything You see as "GUI output" (and much more of backend) is handled by BME now. Same things - but in proper (linux) way, of communicating with kernel module, will be implemented in userland replacement. Mostly, it's about low-power warnings, shutting device down gently on critical low power, and charging from USB (IIRC, I've tested it already, by forcing charging @ 500 mA from PC USB port, and it worked).

In short: be patient, it's going to arrive :) But don't hold Your breath, as it's going to take so(ooo)me time. you will avoid suffocating risk.

/Estel

freemangordon 2012-09-17 21:31

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by Estel (Post 1268148)
AFAIK, freemangordon is the one, who will pick writing userland bits, that will replace bme, with proper things using bq2415_charger module.

Everything You see as "GUI output" (and much more of backend) is handled by BME now. Same things - but in proper (linux) way, of communicating with kernel module, will be implemented in userland replacement. Mostly, it's about low-power warnings, shutting device down gently on critical low power, and charging from USB (IIRC, I've tested it already, by forcing charging @ 500 mA from PC USB port, and it worked).

In short: be patient, it's going to arrive :) But don't hold Your breath, as it's going to take so(ooo)me time. you will avoid suffocating risk.

/Estel

Actually Pali completed what I had started :)

https://gitorious.org/rx51-bme-replacement

So (according to what Pali said) we have a complete replacements of everything needed. Not tested though :P

toxaris 2012-09-17 21:34

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by freemangordon (Post 1268153)
Actually Pali completed what I had started :)

https://gitorious.org/rx51-bme-replacement

So (according to what Pali said) we have a complete replacements of everything needed. Not tested though :P

Great news, me like ;)

pali 2012-09-18 05:41

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by freemangordon (Post 1268153)
Actually Pali completed what I had started :)

https://gitorious.org/rx51-bme-replacement

So (according to what Pali said) we have a complete replacements of everything needed. Not tested though :P

Not everything, only hald-addon-bme.

freemangordon 2012-09-18 05:55

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1268242)
Not everything, only hald-addon-bme.

Well, IIRC libbmeipc needs only this fixed (by using BCI temperature from the new driver) and some code cleanup.

pali 2012-09-18 06:34

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
I'm rewriting libbmeipc from original Nokia open sourced version. It will support all public function (but not all values from bme will be reported...)

Code is now here: https://meego.gitorious.org/~pali/me...li-n900_libbme

freemangordon 2012-09-18 06:40

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1268261)
I'm rewriting libbmeipc from original Nokia open sourced version. It will support all public function (but not all values from bme will be reported...)

Code is now here: https://meego.gitorious.org/~pali/me...li-n900_libbme

Pali, WTF man, I've already did exactly that :eek:

Please, join IRC if you have some spare time.

araknos 2012-09-18 15:28

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by misiak (Post 1263153)
try running
Code:

apt-get source kernel-power
inside fremantle sdk's scratchbox ;) don't forget to add extras-devel repository to /etc/apt/sources.list and "apt-get update" first ;)

Thanks, I am using this guide: http://maemo.org/community/oldwiki/h...elcompilation/

is it ok to use n770_defconfig as base kernel config file?


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

vBulletin® Version 3.8.8