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)

freemangordon 2011-07-13 09:20

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1050000)
So with your kernel patch and binaries from gst-dsp is possible to play 720p videos (at least with gst-launch)?

And are TI DSP binaries from gst-dsp google code project redistributable?

No, for 720p one still needs DSP codec from some 720p capable Android / WinMo with the same DSP as ours. Anyway there is a page on TI site where free C64+ 720p codecs are marked as "in development". Forget where exactly it was, but there is a big table on TI site with DSPs/codecs functionality, search for it. And once Harmattan is out .. who knows :)

But those binaries from google are redistributable methinks. There is a license file in the archive, just check it. And on TI site here https://gforge.ti.com/gf/project/openmax/frs/ are much more goodies.

freemangordon 2011-07-13 09:23

Re: [Announce] kernel-power v48
 
@pali: [off-topic] - check osso-calculator on gitorious please

pali 2011-07-13 09:42

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by freemangordon (Post 1050014)
@pali: [off-topic] - check osso-calculator on gitorious please

yes, now I compiled it and tested... But I'm not happy with this hack in Qt code. But offtopic for kernel - move to email

freemangordon 2011-07-13 09:56

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1050025)
yes, now I compiled it and tested... But I'm not happy with this hack in Qt code. But offtopic for kernel - move to email

Nope, moving to seaside :p

Carlito 2011-07-13 09:59

Re: [Announce] kernel-power v48
 
@freemangordon:

Will the patch with all options be pushed to the repositories? Or can we install it easily other ways?

phedders 2011-07-13 10:35

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by Hurrian (Post 1049396)
n00bs, Get the install script!

pali, can I mirror the power48 files on my server?

Couple of issues:
- wget -o outputs log info - you need wget -O
- dpkg -l | grep multiboot will detect if multiboot _had_ been installed but has been removed - use:

dpkg -l | grep "ii multiboot"

So the script should look like:
Code:


#! /bin/sh

#kernel-power48 upgrade script by Hurrian
#DON'T BLAME ME IF THIS BLOWS UP YOUR DEVICE

echo "Downloading packages."

#prepare arena
mkdir /home/.arena/

#check for multiboot
chkmltibt=$(dpkg -l | grep "^ii multiboot")
if [ "$chkmltibt" ]; then
    wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power-modules_1:2.6.28-10power48_armel.deb -O /home/.arena/modules.deb
    wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power-bootimg_1:2.6.28-10power48_armel.deb -O /home/.arena/bootimg.deb
    dpkg -i /home/.arena/bootimg.deb
    dpkg -i /home/.arena/modules.deb
else
    wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power_1:2.6.28-10power48_armel.deb -O /home/.arena/kernel.deb
    wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power-modules_1:2.6.28-10power48_armel.deb -O /home/.arena/modules.deb
    wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power-flasher_1:2.6.28-10power48_armel.deb -O /home/.arena/flasher.deb
    dpkg -i /home/.arena/kernel.deb
    dpkg -i /home/.arena/modules.deb
    dpkg -i /home/.arena/flasher.deb
fi

#cleanup
rm -r /home/.arena

echo "Installation finished. Please reboot your device."


trisha02 2011-07-13 10:41

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by Carlito (Post 1050030)
@freemangordon:

Will the patch with all options be pushed to the repositories? Or can we install it easily other ways?

dnt ask nythn like tht..they will kill you

TMavica 2011-07-13 10:58

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1050025)
yes, now I compiled it and tested... But I'm not happy with this hack in Qt code. But offtopic for kernel - move to email

Pali, May I have the osso_calculator?
sorry for off topic

Carlito 2011-07-13 11:04

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by trisha02 (Post 1050053)
dnt ask nythn like tht..they will kill you

so asking is killing? will keep that in mind...

Because they're doing great things for this community doesn't mean we don't have questions how to use it...

[DarkGUNMAN] 2011-07-13 11:06

Re: [Announce] kernel-power v48
 
Is kernel-power-headers required as well?

Estel 2011-07-13 11:42

Re: [Announce] kernel-power v48
 
AFAIK headers are needed only for developers. One time, I uninstalled them and just doing this increased my rootfs by 15 MB (!). Everything works fine without it, obviously.

BTW - do they *need* to reside in rotfs, instead of optfs, if they're installed anyway?

pali 2011-07-13 11:46

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by Estel (Post 1050084)
AFAIK headers are needed only for developers.

Yes it is really needed only for compilation other modules...
But why you asking next question then?

Quote:

Originally Posted by Estel (Post 1050084)
BTW - do they *need* to reside in rotfs, instead of optfs, if they're installed, anyway?


Daneel 2011-07-13 11:51

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1050086)
Yes it is really needed only for compilation other modules...
But why you asking next question then?

I guess he is trying to compile or develop something.

pali 2011-07-13 11:58

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by Daneel (Post 1050090)
I guess he is trying to compile or develop something.

directly on phone? Then this developer has already resized optfs (because compiler + debugger + ... are big)... as me :P

Estel 2011-07-13 12:54

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1050086)
Yes it is really needed only for compilation other modules...
But why you asking next question then?

Just out of my (puristic) curiosity - if something doesn't have rationale to sit on rootfs, i preffer it residing in optfs. Anyway, I just plan to try developing something on N900, so probably I'm missing something ;)

pali 2011-07-13 13:31

Re: [Announce] kernel-power v48
 
Yes, -headers package is not for installing into n900. It is only for scratchbox or for unpacking on desktop mashine for develop.

Mentalist Traceur 2011-07-13 14:02

Re: [Announce] kernel-power v48
 
Headers can be installed on device if you're compiling kernel modules on device. Headers do not need to be on rootfs, but they need to be symlinked from rootfs back to where they originally were on rootfs, so that the compiler can find them correctly. (Alternatively you could change the compiler's search paths for libs, but I don't know how to do that.)

I do this with all of the contents of most large packages that I install (and I have my optfs partitioned to 9GB, so there's more room for stuff).

pali 2011-07-13 14:05

Re: [Announce] kernel-power v48
 
I think this is irrelevant. -headers package is not in user/ section, so it dont have to be in /opt. Original kernel-headers is in sdk repository and extras has not section sdk...

Ray-Ven 2011-07-13 16:57

Re: [Announce] kernel-power v48
 
recently installed v48, kernel itself and my mm-100 bluetooth headset works, thanks for your work pali!

I hoped, with v48 I'll be able to boot into meego (sdhc) again, unfortunately I can't. Does that only work with u-boot? Or do I have to install multiboot on meego to? Or is it, that you didn't put a necessary flag somewhere?

F2thaK 2011-07-13 23:26

Re: [Announce] kernel-power v48
 
I think this should be added to first post


Install in sequence:
1. kernel-power_1:2.6.28-10power48_armel.deb
2. kernel-power-modules_1:2.6.28-10power48_armel.deb
3. kernel-power-flasher_1:2.6.28-10power48_armel.deb
4. kernel-power-settings_0.12_armel.deb
5. reboot

Estel 2011-07-13 23:32

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1050164)
I think this is irrelevant. -headers package is not in user/ section, so it dont have to be in /opt. Original kernel-headers is in sdk repository and extras has not section sdk...

Sorry, are You 100% sure that it's not pulled down with kernel? I never installed it manually on the device, yet, it was sitting on my rootfs. I noticed only, when it appeared as ready to update in FAP.

It may be only me - but better to check anyway. If someone can deny auto-installing it with kernel (which is most likely, looking @ dependencies), just ignore this post. Just want to be sure, that we're not facing any repo-dependencies related bug ;)

Ray-Ven 2011-07-14 01:57

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by F2thaK (Post 1050516)
I think this should be added to first post


Install in sequence:
1. kernel-power_1:2.6.28-10power48_armel.deb
2. kernel-power-modules_1:2.6.28-10power48_armel.deb
3. kernel-power-flasher_1:2.6.28-10power48_armel.deb
4. kernel-power-settings_0.12_armel.deb
5. reboot

I think that's not necessary. Usually you use dpkg -i kernel* in the directory in which the kernel-files are, don't you? dpkg does the rest. IMHO people who just copy&paste strings into their terminals without knowing what they do should wait till v48 appears in the repos anyway.

Ray

Ray-Ven 2011-07-14 02:16

Re: [Announce] kernel-power v48
 
Quote:

I hoped, with v48 I'll be able to boot into meego (sdhc) again, unfortunately I can't. Does that only work with u-boot? Or do I have to install multiboot on meego to? Or is it, that you didn't put a necessary flag somewhere?
I managed to boot into meego with a ugly workaround but don't you want to compile a u-boot-ready kernel too? I think a lot n900 users want to mess with meego on their sd-cards

qole 2011-07-14 06:49

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by pali (Post 1048385)
Sorry, but Council IGNORE ME
* I sent mail with problem
* I reported problem in thread Ask Council http://talk.maemo.org/showthread.php...35#post1036835
* I raised bug https://bugs.maemo.org/show_bug.cgi?id=12284

All without answer!

Hey, just so you know, the council don't have any more power than you. We've collectively bugged Neils (X-Fade) repeatedly about your problems. He's the guy who needs to fix things. We don't control the repositories...

ivgalvez 2011-07-14 07:26

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by qole (Post 1050663)
We don't control the repositories...

That's very scary...

J4ZZ 2011-07-14 07:58

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by Ray-Ven (Post 1050565)
I managed to boot into meego with a ugly workaround but don't you want to compile a u-boot-ready kernel too? I think a lot n900 users want to mess with meego on their sd-cards

No ugly workauround needed, only the manual way of integrating u-boot into power48.
I tried it and it works perfect. No mess with multiboot and nitdroid. Slider open boots up Meego and run noloboot gives me the multiboot menu with default kernel, power48, Nitdroid and BackupMenu.
I can post a small guide when I'm back home.

Greetz,

J4ZZ

niqbal 2011-07-14 08:20

Re: [Announce] kernel-power v48
 
After couple of days, battery is still a hit for sure unlike v46. But it seems a little better over v47. With heavy use and xlv profile running at 900 gave me little less than 6 hrs. With nominal use and xlv profile running at 900 gave me abt 10 hrs which is quite acceptable.

Now two things i notice, one it is taking longer for battery to charge and two there are sudden drops in battery power towards the end.

Straycat 2011-07-14 08:36

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by Ray-Ven (Post 1050565)
...I think a lot n900 users want to mess with meego on their sd-cards

And I think you are right, yeeeeaaahh!!!

trisha02 2011-07-14 08:43

Re: [Announce] kernel-power v48
 
is this fully stable yet? it dint hit the repos yet:S

Vento 2011-07-14 08:54

Re: [Announce] kernel-power v48
 
Installed... For now, no problem.

trisha02 2011-07-14 10:54

Re: [Announce] kernel-power v48
 
is it in the repo yet?

anapospastos 2011-07-14 11:08

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by trisha02 (Post 1050802)
is it in the repo yet?

It's in the readpreviouspostsbeforeyouposthere repository. You have to enable it before browse any thread on tmo.

Vento 2011-07-14 11:09

Re: [Announce] kernel-power v48
 
No, I install it manually

J4ZZ 2011-07-14 11:49

Re: [Announce] kernel-power v48
 
Here's a small guide to add u-boot to power48.

1st: Install all packages from 1st post

Code:

dpkg -i kernel-power_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-modules_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-headers_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-flasher_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-settings_0.12_armel.deb
dpkg -i kernel-power-bootimg_1:2.6.28-10power48_armel.deb

check if it's installed properly with
Code:

uname -r
Is should say 2.6.28.10-power48

Then follow up this little guide ;) (Thx to [DarkGUNMAN] and Fabry's guide of patching power-kernel with u-boot)

Open Terminal:
Code:

sudo gainroot
cd /home/user

# Prerequisites
Code:

apt-get install -y wget flasher mkimage
#1. Download power kernel deb file from repository and extract fiasco image from it
Code:

wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power_1:2.6.28-10power48_armel.deb -O kernel-power_2.6.28-10power48_armel.deb
dpkg --fsys-tarfile kernel-power_2.6.28-10power48_armel.deb | tar -xf - boot/zImage-2.6.28.10-power48.fiasco
mv boot/zImage-2.6.28.10-power48.fiasco /home/user/
rm -r boot
rm kernel-power_2.6.28-10power48_armel.deb

#2. Download Matan's u-boot from repository (it is named u-boot-for-power-kernel) and extract file image from it
Code:

wget http://repository.maemo.org/extras-devel/pool/fremantle/free/u/u-boot-for-power-kernel/u-boot-for-power-kernel_1.0_all.deb -O u-boot-for-power-kernel_1.0_all.deb
dpkg --fsys-tarfile u-boot-for-power-kernel_1.0_all.deb | tar -xf - ./usr/lib/u-boot/u-boot.bin.0x38000/u-boot.bin.0x38000
mv ./usr/lib/u-boot/u-boot.bin.0x38000/u-boot.bin.0x38000 /home/user/vmlinuz-2.6.28.10-power48
rm -r usr
rm u-boot-for-power-kernel_1.0_all.deb

#3. Unpack Fiasco image
Code:

flasher -u -F zImage-2.6.28.10-power48.fiasco
rm zImage-2.6.28.10-power48.fiasco

#4. Transform zImage in uImage (necessary because u-boot boots Kernel only in uImage file format)
Code:

mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n "Power Kernel v48" -d zImage uImage
#5. Add power kernel uImage at end of previous file (starting write at offset 0x38000 aka 448 blocks)
Code:

dd if=uImage of=vmlinuz-2.6.28.10-power48 seek=448
#6. Remove zImage & uImage
Code:

rm zImage
rm uImage

#7.1 Flash the kernel
Code:

softupd -vv -s --local
#7.2 Open a new terminal (Shift+Ctrl+X) leave other xterm open!!!
Code:

flasher --local -f -k /home/user/vmlinuz-2.6.28.10-power48
#8. Optional - Multiboot - backup and replace Power48
Code:

mv /boot/zImage-2.6.28.10-power48 /boot/multiboot/vmlinuz-2.6.28.10-power48-bak
mv /boot/multiboot/vmlinuz-2.6.28.10-power48 /boot/multiboot/vmlinuz-2.6.28.10-power48-bak
mv /home/user/vmlinuz-2.6.28.10-power48 /boot/multiboot/vmlinuz-2.6.28.10-power48

#9. Optional - Clean Multiboot Entries
If you have old power47 or double power48 entries
open Filebox and navigate to /etc/multiboot.d to delete the respecting *.item files.

#10. Reboot and watch the http://upload.wikimedia.org/wikipedi...-Fresh_tux.png !!! :D

Edit: I coloured the code for those who don't know what goes together and what not. So, each colored lines are a complete string where to hit 'Enter' after. I left the obvious ones untouched ;)

Greetz,

J4ZZ

trisha02 2011-07-14 14:22

Re: [Announce] kernel-power v48
 
Quote:

Originally Posted by anapospastos (Post 1050812)
It's in the readpreviouspostsbeforeyouposthere repository. You have to enable it before browse any thread on tmo.

y cudnt u jst help me..i sed "yet"

m4r0v3r 2011-07-14 14:46

Re: [Announce] kernel-power v48
 
when I had an N900 the only problem I noticed is that sometimes when recording a video the preview broke. am not sure why. it also corrupted the video files created. am not sure if this is the cause of the camera ui 2 or this update since I dont usually use video recording

Ray-Ven 2011-07-14 15:05

Re: [Announce] kernel-power v48
 
Thanks J4ZZ,
i know the procedure, but if i get these lines right, we have to decompress the kernel image, put some files in it, compress it a little different, flash, tell the bootloader "hey, there's another kernel" and get it going. Very long procedure.
Well, i'm more into grub and lilo, but afaik it's quite easy to compile the kernel u-boot ready, or do I get this wrong? Could be, that this would make the kernel depend on u-boot, but I don't think this is a huge problem.
atm it's just easier to switch between v48 and the u-boot-ready v46 i think.
There will be further kernel updates and we would have to do this again and again.
I'd appreciate it, if non-geeks would be able to test meego to, write bugreports and such stuff...

Or could it be, that this u-boot or multiboot could be changed to "hey, look if there's a bootable OS on the sd card and boot it"? I did this sometimes on my laptop when I broke grub. I don't get why this is all so complicated - afaik the bootloader just points to vmlinuz and that's it - do I get this wrong?

[DarkGUNMAN] 2011-07-14 15:26

Re: [Announce] kernel-power v48
 
This starts uboot - open keyboard boots from sdcard. Closed keyboard boots power48.
If multiboot is installed, slide keyboard open when you see Staring Kernel to show multiboot

sr00t 2011-07-14 23:03

Re: [Announce] kernel-power v48
 
First of all thanks Pali, sublime work! It works very well

Ok guys I wanna ask you a question that's been haunting me for weeks
Everyone knows that the enhaced open standard profile that iPods and almost every cellphone nowadays use for 3,5'' jack isn't actually bundled into the Maemo ecosystem, so you can't control the cellphone by wired remote neither talk by wired hands-free. Is this a software problem, that could be patched? Or is this a hardware limitation? If the first answer is yes, could this be patchable in a kernel release?

Ray-Ven 2011-07-15 01:28

Re: [Announce] kernel-power v48
 
of course you can: http://www.sennheiser.com/sennheiser...e_music_504111

but don't hijack this thread!


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

vBulletin® Version 3.8.8