maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] kernel-plus for Harmattan (https://talk.maemo.org/showthread.php?t=86543)

juiceme 2013-11-29 05:36

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by Hurrian (Post 1389975)
kernel-plus 2.6.32.61 r6 focuses on btrfs. It has been enabled as [Y] in the kernel.

Note that the disk format as used in the kernel probably matches 2.6.34 - ubiboot definitely has not been updated to support reading from this version of the btrfs disk format. Play with /home or something.
Meanwhile, or if you're feeling adventurous, load zImage from somewhere other than the Harmattan rootfs (check ubiboot.conf)

Need to include this in the next ubiboot release then :D

Hurrian 2013-11-29 09:02

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by juiceme (Post 1390476)
Need to include this in the next ubiboot release then :D

The kernel-plus patches should, for the most part, apply straight onto the ubiboot kernel tree :p

The next kernel-plus, with more upstream goodness, should come when I get my spanking new GTX 650 Ti Boost.
A little treat I got myself for Xmas, and just in time too - my GTX 295 works fine but just shuts down when 2D transforms are done in 3D contexts (see: every modern composited desktop ever)

weihuoya 2013-12-02 02:19

Re: [Announce] kernel-plus for Harmattan
 
Can you add aufs module? :D
http://sourceforge.net/projects/aufs/

awesome job
thx a lot

nbedford 2013-12-02 09:21

Re: [Announce] kernel-plus for Harmattan
 
Can this kernel be flashed directly to phone, or need to use Ubiboot?

Ancelad 2013-12-02 09:22

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by nbedford (Post 1391577)
Can this kernel be flashed directly to phone

Of course, you can flash this kernel directly, but don't forget about modules and depmod.

evander_f 2013-12-02 10:15

Re: [Announce] kernel-plus for Harmattan
 
Thank you @Hurrian, it was a breeze to install on my N9 and @Juiceme also for Ubiboot.

Cheers! all the best :cool: :D

jackburton 2013-12-02 14:39

Re: [Announce] kernel-plus for Harmattan
 
I managed to get this compat-wireless package from TI to compile after making tweaks to the compat package and doing some manual patching to the stock kernel (with open mode patched, too).

http://processors.wiki.ti.com/index....Wireless_Build

I hand patched the kernel source with some guidance from here:
http://wireless.kernel.org/en/users/...Porting_wl12xx

I can load the compat cfg80211, mac80211, and wl12xx drivers. However, when I load the wl12xx_sdio.ko, I get in dmesg:

Code:

wl1271: ERROR request_irq() failed: -22
wl1271_sdio: probe of mmc1:0001:2 failed with error -22

Anybody have any pointers?

Would anybody be interested in the sources for poking around themselves?

coderus 2013-12-02 15:03

Re: [Announce] kernel-plus for Harmattan
 
@jackburton -22 is access denied, no?

nieldk 2013-12-02 15:10

Re: [Announce] kernel-plus for Harmattan
 
A few links to look at

http://e2e.ti.com/support/low_power_.../t/140146.aspx
http://e2e.ti.com/support/low_power_...35/932756.aspx

In one of those, there is a link refferal to http://lists.meego.com/pipermail/mee...er/000674.html, which unfortunately is now dead. But, perhaps someone can get lucky and find some qoutes somewhere on what was discussed there.

jalyst 2013-12-02 16:47

Re: [Announce] [12.13.01] kernel-plus 2.6.32.59 for Harmattan
 
Quote:

Originally Posted by jackburton (Post 1375031)
This is one of my long term goals as well. After I (hopefully) figure out how to get either the TI compat-wireless stuff to work and/or latest backports for hostAP mode to work, BT4 LE would be next.

I have no experience backporting, but going to try. I have gotten much farther in getting TI-compat to compile. It seems to clash with some patches in the stock kernel. There are also things from kernels 2.6.37 and back that are needed. The official patches cannot just be simply applied due to Nokia's changes.

I have a spreadsheet and what I believe are the relevant patch files I'm working from.

Hopefully I learn something and can move onto BT4. I assume IRC will be helpful there from the bluez group.

Meantime, any links to the aforementioned work by others would be immensely useful. Research is easily done in spare time.

Well it seems javispedro now has this (BT LE at least) working:
http://talk.maemo.org/showthread.php?t=85118&page=4

nieldk 2013-12-02 17:35

Re: [Announce] kernel-plus for Harmattan
 
Did anyone test my compile bluez package ?
http://talk.maemo.org/showpost.php?p...&postcount=222

Iryus 2013-12-02 18:42

Re: [Announce] kernel-plus for Harmattan
 
Not yet.

Regular installation for this .deb?

nieldk 2013-12-02 18:51

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by Iryus (Post 1391843)
Not yet.

Regular installation for this .deb?

yeah
install with devel-su, develsh and then dpkg -i from terminal
WOuld test myself - but, have no LE BT devices :)
I only tested with regular BT connectionss

mikhail_ramalho 2013-12-02 23:42

Re: [Announce] kernel-plus for Harmattan
 
I just tried to install and got the following error:

Code:

Reading database ... 59078 files and directories currently installed.)
Preparing to replace bluez 4.91-0maemo26+0m8 (using bluez_4.97_armel.deb) ...
Unpacking replacement bluez ...
dpkg: error processing bluez_4.97_armel.deb (--install):
 trying to overwrite '/usr/lib/libbluetooth.so.3', which is also in package libbluetooth3 4.91-0maemo26+0m8
Processing triggers for applauncherd-launcher ...
Errors were encountered while processing:
 bluez_4.97_armel.deb
aegis-installing bluez (from 'com.nokia.maemo')

Edit: I'm using 2.6.32.56-plus r5 right now.

Hurrian 2013-12-02 23:56

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by mikhail_ramalho (Post 1391967)
I just tried to install and got the following error:

Just force the installation:
Code:

dpkg --force -i *.deb
kernel-plus 2.6.32.61 r7 should come when I stop messing around with Sailfish :p

Iryus 2013-12-03 00:27

Re: [Announce] kernel-plus for Harmattan
 
1 Attachment(s)
@nieldk==> I'm using R6, and i can't install it despite your instructions.

mikhail_ramalho 2013-12-03 00:39

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by Iryus (Post 1391975)
@nieldk==> I'm using R6, and i can't install it despite your instructions.

You need to run:

Code:

export AEGIS_FIXED_ORIGIN=com.nokia.maemo
before forcing the package installation.

Iryus 2013-12-03 01:28

Re: [Announce] kernel-plus for Harmattan
 
1 Attachment(s)
Thanks,

I think i've got error installation. Anyway, i'll test BT connection this week with some device BT 4.0 LE ;-)

nieldk 2013-12-04 14:50

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by juiceme (Post 1388869)
That would be useful, more so if you can initialize the USBSERIAL device as early as possible in order to capture all possible glitches.

Perhaps this is possible on the N9 ?
http://redmine.replicant.us/projects.../SamsungSerial

juiceme 2013-12-04 16:05

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by nieldk (Post 1392550)
Perhaps this is possible on the N9 ?
http://redmine.replicant.us/projects.../SamsungSerial

Unfortunately I don't think that's possible on N9.
Why it works on the given Samsung devices, is that the designers of the device have been clever and wired up the internal UART's RX/TX pins to the same pins that go to USB drivers +D/-D pins.

Clever hack but it requires that you have the HW there to support it...

nieldk 2013-12-05 11:45

Re: [Announce] kernel-plus for Harmattan
 
Bought 3 :P gonna try it anyway LOL

Boxeri 2013-12-07 11:58

Re: [Announce] kernel-plus for Harmattan
 
So decided to try this out with my spare N9. Probably not going be much use for user like me, but hey, to learn one must try.

I wan't to make sure something before I do, since I am not gonna install Ubiboot at this time 'cos this probably is going to be one time "try it out, how it feels" thing for me and now it seems that best directions to do this are for ubiboot.

So, if I install this without ubiboot:

1. I d/l the 2.6.32.56-plus r6.tar and do: tar xvzf linux_2.6.32.61-plus-20131128.tar.gz -C / at my phone and then take /boot/zImage back to my PC and do flashing?

2. I do "depmod -a 2.6.32.61-plus" after the flashing? At phone or PC? I don't understand this... :D


Soo, someone help a noob out here ;)

Hurrian 2013-12-07 12:28

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by Boxeri (Post 1393348)
2. I do "depmod -a 2.6.32.61-plus" after the flashing? At phone or PC? I don't understand this... :D

Run /sbin/depmod on the phone before flashing with Flasher. Then flash, it should work just fine then.

Garp 2013-12-07 18:34

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by nieldk (Post 1389059)
Getting myself a second N9 :) 64G, black, all-inclusive :) 100€, good price ?

Hi, same here black, 64GB same price (750dkr :D);)

StygiAn TrepidAtioN 2013-12-10 20:52

Re: [Announce] kernel-plus for Harmattan
 
Hi! I'm a complete newbie here, havin' got an N9 few days ago. But I'm not ignorant of all the vast underground development that the community has been pursuing *BRAVO* :). Being a noob, I'm tryin to learn everythin' hands-on ;)

Now I plan on installin' this without ubiboot - jus so I learn the method. So I note the installation method from OP as below:

Quote:

Originally Posted by Hurrian (Post 1259462)
INSTALLATION
Code:

# tar xvzf linux_2.6.32.61-plus-20131128.tar.gz -C /
# depmod -a 2.6.32.61-plus


But then, upon readin' the entire thread, I find this:


Quote:

Originally Posted by Boxeri (Post 1393348)
So, if I install this without ubiboot:

1. I d/l the 2.6.32.56-plus r6.tar and do: tar xvzf linux_2.6.32.61-plus-20131128.tar.gz -C / at my phone and then take /boot/zImage back to my PC and do flashing?

2. I do "depmod -a 2.6.32.61-plus" after the flashing? At phone or PC? I don't understand this... :D

Quote:

Originally Posted by Hurrian (Post 1393354)
Run /sbin/depmod on the phone before flashing with Flasher. Then flash, it should work just fine then.

That's gotten me perplexed:confused:. Can someone please give me step-by-step instructions to get this runnin'? Includin'
> which location on phone I need to place the downloaded kernel file.
> whether I can do the entire operation on phone or if PC is required, for which part and what order (the steps from OP don't seem to mention anythin' about hookin' up phone and PC)

Note that (if it matters) I have installed Coderus aegis-install and opensudo via N9QT.

A simple-to-understand response for a not-so-geeky-yet-but-tyrin-to-get-there chap:p would be highly appreciated (ATM I'm still in very early learnin' stage)

TIA,
Cheers 'n beers,
JoEy

coderus 2013-12-10 20:55

Re: [Announce] kernel-plus for Harmattan
 
step1: unpack modules
step2: run depmod
step3: flash kernel

you dont need kernel file on phone if you dont need ubiboot.

StygiAn TrepidAtioN 2013-12-10 21:07

Re: [Announce] kernel-plus for Harmattan
 
Thank ye @coderus. But might I press to be borne with little further (remember, I'm a painful noob ATM. But not for long)...
So,
>how to unpack modules
>how to run depmode
>to flash kernel, presumin' I need to use a code on flasher 3.12.1 (correct me if I'm wrong) while connectin' phone (should I switch it off first), what is the command?

I did read the whole thread and several others but all the talk is already at a level much above where I'm at. I wanna climb up to a comfortable base to be able to understand the mighty contributions here.

So, again I say, simple-to-understand steps, I pray.

juiceme 2013-12-10 23:07

Re: [Announce] kernel-plus for Harmattan
 
The kernel tar archive contains both the kernel and the modules.
When you install the kernel without ubiboot, you do not copy the kernel to the device, but instead you need to have it on your linux/windows/mac computer that you are using to flash it.
The modules in the tar archive, however, need to go to the specific folder inside the device.

This is the reason for the advice "first untar the kernel archive on the device and then copy the kernel to your PC from /boot/"
(but of course you can also untar the archive also on your PC and get the kernel from there, no need to copy it off the device... :D)

Okay... so first thing is to untar the archive, and that command was already posted above.

Next thing is to resolve the module dependencies. Unless this step is done correctly, the kernel does not know which modules it needs to load together for a feature set, which means again that your device won't boot up.
And as was also mentioned, you need to do this step of course before you flash the kernel.
How to do that; go to the directory that contains the modules you just unpacked, "/lib/modules/2.6.32.61-plus". (needless to say, this is done on terminal and as root)
Give the command "/sbin/depmod -a 2.6.32.61-plus"
Check that there is created a bunch of files starting with module* (there should be about 11 of those if I remember correctly)

Last thing is the kernel flashing. For this you need flasher version 3.12.1 just as you noted yourself. In addition you need the correct firmware.bin file for your device, and I assume now that you propably have it if you have ever before flashed the device.
The firmware file is needed becuse the flasher needs to extract from it the remote flashing counterpart called the APE which actually is another small self-contained linux filesystem that knows how to flash the device...
Flashing is done the usual way; first power off the device, then give the flasher command and last step is to connect the device in USB.
The flasher command you should use is this:
sudo flasher -a firmware.bin -k zImage_2.6.32.61-plus-20131128 --flash-only=kernel -f -R

That's it, really. Now your device boots up with your new kernel.

jackburton 2013-12-11 13:04

Re: [Announce] kernel-plus for Harmattan
 
Has anybody made a video of the process? I flashed kernels with different patches from later kernel versions for the past two weeks probably 30 or more times. I could make a video if somebody thinks it's worth it.

Hurrian 2013-12-11 13:45

Re: [Announce] kernel-plus for Harmattan
 
...and this, ladies and gents, is why I don't intend on supporting boot methods other than Ubiboot (although, it must work both ways!)

I recognize though that some people legitimately prefer not having Ubiboot - and I'll respect that choice.

For those who need a HOWTO:

Installation without Ubiboot
(UNSUPPORTED)

On the device:
# tar xvzf [DOWNLOADED FILE].tar.gz -C /
# depmod -a 2.6.32.61-plus

Copy the zImage file in the [DOWNLOADED FILE]'s /boot directory to a location on your PC.

On a PC with Flasher installed:
# flasher -a [ROOTFS].bin -k [zImage] -f --flash-only=kernel

Done!


I was intending to make a deb to automagically install the new kernel, run depmod, and sed the Ubiboot entry to boot it.

I've been busy the past few weeks though - college and life in general's been like a whirlwind trying to finish up before Xmas break starts :p

When I get the time, I'll hopefully fix up the broken Debianization.

EDIT:
I've uploaded a new source patchset - this one applies straight over vanilla 2.6.32.61!
It saves you 1 command and about 16MB of uncompressed patch ;)

StygiAn TrepidAtioN 2013-12-11 13:56

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by jackburton (Post 1394952)
Has anybody made a video of the process? I flashed kernels with different patches from later kernel versions for the past two weeks probably 30 or more times. I could make a video if somebody thinks it's worth it.

wouldn't that be nice, @jackburton :) !

@juiceme's post is categorically clear to me (thanks a bunch @juiceme & @Hurrian). M going to try this out now. Then, perhaps, if a video's made, we could always link it it the OP for so newbie's such as me don't pester the experienced with same basic questions :cool:

jackburton 2013-12-11 22:50

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by Hurrian (Post 1394975)
...and this, ladies and gents, is why I don't intend on supporting boot methods other than Ubiboot (although, it must work both ways!)

I recognize though that some people legitimately prefer not having Ubiboot - and I'll respect that choice.

Yeah, I plan on checking out this ubiboot goodness soon.

:)

Ancelad 2013-12-17 09:43

Re: [Announce] kernel-plus for Harmattan
 
What about MTP?

Hurrian 2013-12-19 23:44

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by Ancelad (Post 1397486)
What about MTP?

Sorry for the late replies - just finished my exams!

I remember there being a f_mtp and ptp driver for Buteo MTP, but it was never implemented for Harmattan.

If we get Buteo MTP working, it should be possible to merge all partitions on the device into one big partition, with different btrfs subvolumes.

No more problems with partitioning out 16GB of space! :D

Ancelad 2013-12-20 04:10

Re: [Announce] kernel-plus for Harmattan
 
Yeah it would be nice... :)

peterleinchen 2013-12-24 09:55

Re: [Announce] kernel-plus for Harmattan
 
Hey Hurrian,
I was just remembered by this.

What about including 'open up max. number of mmcblk devices' in kernel-plus?
I know I know, it would only be helpful if juiceme (ubiboot) and e-yes (nitdroid) would fix their kernels also. And even than nemo/sailfish/other would need to reside on partitions lower p8, but that would offer a lot more of possible partitions/OSes/playground.

So Hurrian and juiceme. What do you think? If you feel like to play with it, I would encourage you to get in contact with e-yes afterwards.

Please do not see this as request or demand (atm I am fine with 7 partitions ;)), but as a reminder (something to think/talk about).

Merry christmas

--
oh and btw
Quote:

Originally Posted by Hurrian (Post 1398941)
Sorry for the late replies - just finished my exams!

Congrats! :)

juiceme 2013-12-24 19:11

Re: [Announce] kernel-plus for Harmattan
 
Quote:

Originally Posted by peterleinchen (Post 1400240)
Hey Hurrian,
I was just remembered by this.

What about including this in kernel-plus?
I know I know, it would only be helpful if juiceme (ubiboot) and e-yes (nitdroid) would fix their kernels also. And even than nemo/sailfish/other would need to reside on partitions lower p8, but that would offer a lot more of possible partitions/OSes/playground.

So Hurrian and juiceme. What do you think? If you feel like to play with it, I would encourage you to get in contact with e-yes afterwards.

Please do not see this as request or demand (atm I am fine with 7 partitions ;)), but as a reminder (something to think/talk about).

Merry christmas

--
oh and btw
Congrats! :)

I'll have to look into that, it would be a nice addition even as you say it is not absolutely necessity.
I'd say btrf support for example is more urgent atm.

Boxeri 2013-12-25 09:28

Re: [Announce] kernel-plus for Harmattan
 
Hello

I recently installed the latest version of Kernel plus.

Could it be because of this, that everytime I delete or install an app, my N9 closes all open programs? I have absolutely now idea how to begun solving this problem.

Also, shouldn't this Kernel include Opptimizer compatibility? At least on my phone Opptimizer does not recognize this.

mcbook 2013-12-25 10:01

This problem is present in every open mode kernel afaik

here's the fix:
http://talk.maemo.org/showthread.php...ng#post1387413

I don't know about opptimizer though as I don't overclock my N9....

nieldk 2013-12-25 10:03

Re: [Announce] kernel-plus for Harmattan
 
perhaps add this to the next - major - update ?
http://talk.maemo.org/showpost.php?p...51&postcount=9


All times are GMT. The time now is 21:21.

vBulletin® Version 3.8.8