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)

Estel 2011-07-29 21:06

Re: [Announce] kernel-power v48
 
At second thought, I think that whole i2c access thing reminds me "issue of software quality" (people reading texrat blog will know what I mean). Even *if* by some unknown reason, BMI got a factor that prevent damage, we should not follow "wrong" path of coding things, i.e we should not accept wrong practices.

Also, we are not sure if someone got problems, but, we are also not sure that one day, someone won't get real software/hardware damage by that, and we shouldn't risk it.

So, thanks for pushing this further and explaining (both irc log and vi_ post)

zurrain101 2011-07-30 14:28

Re: [Announce] kernel-power v48
 
in extras-devel yet?

towhatend 2011-07-30 14:58

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by zurrain101 (Post 1061145)
in extras-devel yet?

No, you can take a look at this page, no need to ask in the future:
http://maemo.org/packages/repository...ree_armel/all/.

don_falcone 2011-07-30 15:08

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by zurrain101 (Post 1061145)
in extras-devel yet?

It would have been mentioned, and as well you would have received update notification in HAM/FAP (if you check the repositories at least once a week) and via the packages search as shown above.So, please install manually using the linked packages from the 1st post, and report wrong battery values afterwards.

freemangordon 2011-07-30 17:45

Re: [Announce] kernel-power v48
 
@pali - I am unable to build kp48 from your git repository under scratchbox.

This are the steps i follow:

Code:

[sbox-FREMANTLE_ARMEL: ~/workspace/kp48/git/kernel-power/kernel-power-2.6.28] >git clone http://atrey.karlin.mff.cuni.cz/~pali/kernel-power.git

[sbox-FREMANTLE_ARMEL: ~/workspace/kp48/git/kernel-power/kernel-power-2.6.28] >cd kernel-power/kernel-power-2.6.28/

[sbox-FREMANTLE_ARMEL: ~/workspace/kp48/git/kernel-power/kernel-power-2.6.28] > dpkg-buildpackage -rfakeroot

dpkg-buildpackage: source package is kernel-power
dpkg-buildpackage: source version is 1:2.6.28-10power48
dpkg-buildpackage: source changed by Pali Roh��r <pali.rohar@gmail.com>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 2.6.28-10power48
: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -rf /home/maemo/workspace/kp48/git/kernel-power/kernel-power-2.6.28/debian/build
rm -f debian/files debian/kernel-power-flasher.postinst debian/kernel-power-modules.postinst debian/kernel-power-modules.postrm
rm -f source-copy-stamp source-stamp configure-stamp kernel-stamp modules-stamp kernel-source-stamp
dh_clean
 dpkg-source -b kernel-power-2.6.28
dpkg-source: building kernel-power in kernel-power_2.6.28-10power48.tar.gz
dpkg-source: building kernel-power in kernel-power_2.6.28-10power48.dsc
 debian/rules build
dh_testdir
mkdir -p /home/maemo/workspace/kp48/git/kernel-power/kernel-power-2.6.28/debian/build/kernel-power-source
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/maemo/workspace/kp48/git/kernel-power/kernel-power-2.6.28'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/home/maemo/workspace/kp48/git/kernel-power/kernel-power-2.6.28'
make: *** [source-copy-stamp] Error 2
[sbox-FREMANTLE_ARMEL: ~/workspace/kp48/git/kernel-power/kernel-power-2.6.28] >

Please advice if I am missing something and what are the correct steps.

Thanks.

pali 2011-07-31 09:15

Re: [Announce] kernel-power v48
 
You need to download source code of linux kernel 2.6.28 and unpack it into same directory

freemangordon 2011-07-31 09:26

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1061525)
You need to download source code of linux kernel 2.6.28 and unpack it into same directory

I've tried that too, same result.

And which is the "same directory"?

Directory you run git clone... in?
kernel-power?
kernel-power/kernel-power-2.6.28?

And as I understood from your previous posts that you are using madde for your development - did you ever try to compile KP in scratchbox?

pali 2011-07-31 09:58

Re: [Announce] kernel-power v48
 
download linux kernel 2.6.28 tarball. you can use apt-get source kernel-power or kernel.org website. Then you will have tarball - unpack it - it will unpack into subfolder. Then move all files from this subfolder to kernel-power/kernel-power-2.6.28

I did not used scratchbox - but it must work. It is same as madde - it use dpkg-buildpackage which is same on all debian system.

freemangordon 2011-07-31 10:46

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1061544)
download linux kernel 2.6.28 tarball. you can use apt-get source kernel-power or kernel.org website. Then you will have tarball - unpack it - it will unpack into subfolder. Then move all files from this subfolder to kernel-power/kernel-power-2.6.28

I did not used scratchbox - but it must work. It is same as madde - it use dpkg-buildpackage which is same on all debian system.

...and the result:

Applying patch phys_to_page.diff
Applying patch ext4-data-corruption.diff
2 out of 2 hunks FAILED
1 out of 1 hunk FAILED
2 out of 2 hunks FAILED
6 out of 6 hunks FAILED
5 out of 5 hunks FAILED
9 out of 9 hunks FAILED
1 out of 1 hunk FAILED
6 out of 6 hunks FAILED
2 out of 2 hunks FAILED
8 out of 8 hunks FAILED
3 out of 3 hunks FAILED
1 out of 1 hunk FAILED
Patch ext4-data-corruption.diff does not apply (enforce with -f)
make: *** [source-copy-stamp] Error 1

pali 2011-07-31 11:16

Re: [Announce] kernel-power v48
 
You have bad tarball. use this:
ftp://ftp.kernel.org/pub/linux/kerne...-2.6.28.tar.gz

freemangordon 2011-07-31 13:54

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1061590)

It is from maemo repository, why you say it is bad. I think you (or author) should re-write this patch so it could be applied against kernel in maemo repos, otherwise you won't be able to upload KP48 in extras-devel.

moepda 2011-07-31 16:53

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1060105)
After discusion on #maemo with DocScrutinizer and ShadowJK we decided to disable one i2c patch which break API and can damage n900 (patch was added in v45). When this patch is disabled - bme is broken when bq modules is loaded.

So autoloading bq module is disabled too and now is not possible to have both bme and bq. (bq module is still installed so after stopping bme is possible to manually load it).

Now I recompiling v48 and publish new version as soon as.

ok , so if using latest release of v48 (28-Jul-2011 18:46) what do we use to display temperature ? and can it be set to load on boot ?
wouldnt know how to stop bme to start bq but dont consider myself out of my depth with oc/power kernel etc :)

Estel 2011-08-01 01:00

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by freemangordon (Post 1061670)
It is from maemo repository, why you say it is bad. I think you (or author) should re-write this patch so it could be applied against kernel in maemo repos, otherwise you won't be able to upload KP48 in extras-devel.

The funniest thing, is that kp47 is also based on non-maemo kernel. Maybe this is the case, why it can't be promoted to testing. Someone suggested it before - to re-write for maemo kernel...

---

As for battery temperature - AFAIK nothing, if You want to keep bme running. I hope I'm wrong, and someone will correct me (only thing I can think about - i2ctools?).

pali 2011-08-01 06:35

Re: [Announce] kernel-power v48
 
I do not understand why I could use maemo kernel tarball for kernel-power source dsc package... Do you know something about Debian packages?? I think this is stupid reason.

and for temp: the best will be to write library which can read battery properties from bq27x00_battery module via sysfs. this library will be loaded via LD_PRELOAD, so BME will be reading values from bq module instead directly i2c bus.

if somebody can help me with writing library we will have earlier working bq and bme together. (library needs to rewrite function ioctl)

don_falcone 2011-08-01 08:43

Re: [Announce] kernel-power v48
 
1 Attachment(s)
Since updating from kp47 to 48, i get reproducible reboots. Happens when switching to bleeding edge wl1251 drivers using the respective status applet (status-area-wlan-driver-selector-applet; 0.2.2-3). When they are loaded and i have to select the WiFi AP.

Full syslog available on request if any1 interested, too long to post and analyzing is limited as i'm at the airport ATM. Only GLIB CRITICAL attached for now.

Is this happening for someone too?

pali 2011-08-01 08:49

Re: [Announce] kernel-power v48
 
if did not recompile wl1251 bleeding edge driver agains kernel-power v48 you could have problem...

freemangordon 2011-08-01 09:01

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1062038)
I do not understand why I could use maemo kernel tarball for kernel-power source dsc package... Do you know something about Debian packages?? I think this is stupid reason.

Pali, what stupid reason could be the fact that patches do not apply against kernel source which was tested by nokia (stock kernel) and afterwards by community (KP up to version 46). And you have already been told that not using it prevents KP from corectly entering extras-devel.

And I don't get it why you insist on using kernel source tarball outside maemo repos. Will you please give some reasoning besides 'that is the way I like it, take it or leave it'

don_falcone 2011-08-01 09:02

Re: [Announce] kernel-power v48
 
Thanks. I did not, cause the general opinion was that is wasn't necessary for 47, and no one mentioned the necessity for 48 also. What is the relevant change in 48 that we should recompile this time?

pali 2011-08-01 09:16

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by don_falcone (Post 1062140)
Thanks. I did not, cause the general opinion was that is wasn't necessary for 47, and no one mentioned the necessity for 48 also. What is the relevant change in 48 that we should recompile this time?

Maybe it will work or maybe not. Always is recomment to compile modules agains current version and not stripping version symbols (for ability to load it in other version).

Or maybe this is not problem with wl1251 drivers...

pali 2011-08-01 09:22

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by freemangordon (Post 1062139)
Pali, what stupid reason could be the fact that patches do not apply against kernel source which was tested by nokia (stock kernel) and afterwards by community (KP up to version 46). And you have already been told that not using it prevents KP from corectly entering extras-devel.

And I don't get it why you insist on using kernel source tarball outside maemo repos. Will you please give some reasoning besides 'that is the way I like it, take it or leave it'

In Debian packaing manual is written to use orig tarball from upstream and all source changes should be in debian/patches/ (which will be applied when compiling/unpacking) - so this is reason.

I generated patch(es) of all changes in nokia stock kernel and it is in debian/patches/ (some of them was done by titan).

So kernel-power is nokia stock kernel (2.8.28 tarball + nokia patches) + our patches.

Estel 2011-08-01 19:21

Re: [Announce] kernel-power v48
 
Maemo packaging is not exactly same as Debian packaging (in details). If You're already using Nokia stock Kernel as mainstream kernel+ patches to make it Nokia one + kp patches, why can't You just use Nokia stock kernel + kp patches, and finally, have correctly working repo maintainership? It's only ideological, or is there something meritocratic behind it?

vi_ 2011-08-02 09:14

Re: [Announce] kernel-power v48
 
Tigerite, can you point me to the appropriate literature that may explain what it is I must do to make compcache work on the N900 using the v48 power-kernel?

pali 2011-08-02 09:39

Re: [Announce] kernel-power v48
 
Here is bzr branch which contains initial code of library for BME:
https://code.launchpad.net/~pali/+junk/maemo_libbqioctl

don_falcone 2011-08-02 10:57

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1062149)
Or maybe this is not problem with wl1251 drivers...

The only further information i got out of it is; it's happening when connecting to the AP. Just loading the .ko via included load.sh seems ok. Hmm...

freemangordon 2011-08-11 09:01

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1067711)
The only problem is with md5sum. See IRC log. (And continue talking in other thread, this is "Ask the council")

Why you don't count fact that patches don't apply against Nokia's .orig tarball as a problem?

Did you see this:
http://talk.maemo.org/showpost.php?p...postcount=1129

EDIT: Yes, I saw irc log.

pali 2011-08-11 12:43

Re: [Announce] kernel-power v48
 
Now I merged my git repository into garage kernel-power project. Now I'm on maintainer list of all kernel-power packages. And X-Fade find problem why I cannot promoted kernel-power to extras-testing.

I will build new deb package of prerelease v48 (now from garage git repo). It will be published again on my server. When all will be OK, I push v48 into extras-devel.

It may be problem that v48 still not be visible on maemo.org package interface, but I'm sure that v49 will be visible.

thingonaspring 2011-08-11 12:50

Re: [Announce] kernel-power v48
 
Great news Pali, and props to X-Fade for finding the issue.

Anyone seen tigrette around? I'd still like to try the ramzswap he was tinkering with.

vi_ 2011-08-11 12:55

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by thingonaspring (Post 1067852)
Great news Pali, and props to X-Fade for finding the issue.

Anyone seen tigrette around? I'd still like to try the ramzswap he was tinkering with.

I would literally stab a baby for some compcache right now.

petur 2011-08-11 12:58

Re: [Announce] kernel-power v48
 
Great news Pali and many thanks for your efforts!



Quote:

Originally Posted by vi_ (Post 1067856)
I would literally stab a baby for some compcache right now.

Shows you are not a father or your kids are too old already :(


*looks at his newborn daughter next to him*

vi_ 2011-08-11 13:05

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by petur (Post 1067860)
Great news Pali and many thanks for your efforts!





Shows you are not a father or your kids are too old already :(


*looks at his newborn daughter next to him*

I didn't literally mean literally literally, I meant literally like figuratively literally.

pali 2011-08-11 13:24

Re: [Announce] kernel-power v48
 
I uploaded new build to my server. Now I'm going to test it on my N900.

freemangordon 2011-08-11 16:03

Re: [Announce] kernel-power v48
 
@Pali: TBH I wonder how you are able to build kp48 at all, having in mind that patches up to (and including) phys_to_page.diff are against directory kernel-power-2.6.28 while those from ext4-data-corruption.diff to the end of series are against linux-2.6.28. And different directory name is the reason for wrong checksum.

Otherwise looks like pr13 , kp46 and kp47 are using one and the same source in .orig file. Just root directory is with different name(for kp47).

So I would recommend you to rename kp48 .orig directory to kernel-power-2.6.28 and to modify patches from ext4-data-corruption.diff to the end of series to be against kernel-power-2.6.28. That way I think everything should be ok.

pali 2011-08-11 18:48

Re: [Announce] kernel-power v48
 
Today I tested building and inspecting kernel-power and kernel sources/tarballs. Finaly I undertood where was problem. I forget one thing, that SDK kernel package does not respect debian packaing policy (or use old...). But this was my mistake do not check all.

Shortly:
We have only 2 kernel tarballs. One is from SDK kernel package and one orig 2.6.28 from kernel.org. Both are of course different, have different md5sums, but it is same. Really same!

Unpacked SDK tarball, unpacked 2.6.28 tarball and diff has no output. So both sources are same, but packed tarball different.

Problem:
SDK kernel dsc (debian source) package using diff file which should contains only debian directory. But it contains included hard diff which patch also whole kernel.
And I always used apt-get source (which download & unpack & apply debian diff file) and then I checked directory. I did not know that kernel SDK package also containts hard diff, so where was problem.

Now I know this, I can use tarball from SDK with correct md5sum and belive that package interface accept v48 :-)

---

@freemangordon:
Prefixes in diff files in debian/patches are ignored. Quilt use patch -p1 so it is not problem if patch start with incorrect directory.

If you want to test building, now use only garage git repo (updated info in first post too).

I buided new deb packages from clean clone from garage repo.

---

In last today build I did not found any problem. I think it is stable. If nobody found problem I will push this version into extras-devel (and promote into extras-testing) is 2 days.

funkmunk 2011-08-11 18:57

Re: [Announce] kernel-power v48
 
@ pali

sounds awesome will be waiting to kernel-power48...please post a changelog once its in the devel repos.!!

pali 2011-08-11 19:00

Re: [Announce] kernel-power v48
 
changelog is on first page!

funkmunk 2011-08-11 19:09

Re: [Announce] kernel-power v48
 
sorry my bad pali....was too eager for this version...thanks..seems really great work done by all involved in this...

thingonaspring 2011-08-12 12:57

Re: [Announce] kernel-power v48
 
@pali
I've been testing the new .debs since 22:00 GMT last night. Booted, charged, called, watched vids, browsed, used modest, csbwin, clock and a bunch of other apps.

No problems to report as of 14:00 GMT today.

trisha02 2011-08-12 13:09

Re: [Announce] kernel-power v48
 
when will it be available for normal users? can it play 720p videos and mkv files?

prankster 2011-08-12 14:00

Re: [Announce] kernel-power v48
 
pali loads n loads of thanks for your great work ,dude .hope soon it comes to extras .bravo !

F2thaK 2011-08-13 04:21

Re: [Announce] kernel-power v48
 
pali's server is down, must be very busy!!


All times are GMT. The time now is 04:14.

vBulletin® Version 3.8.8