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)

Boxeri 2013-12-25 15:49

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

Originally Posted by mcbook (Post 1400492)
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....


Thank you for this. This fix worked.

BTW, extra thanks for a nice way of showing "instructions". Simple, clever and working.

coderus 2014-01-03 13:42

Re: [Announce] kernel-plus for Harmattan
 
Hello!

can anybody compile Nemo kernel with all these nice fixies?

juiceme 2014-01-03 17:29

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

Originally Posted by coderus (Post 1403371)
Hello!

can anybody compile Nemo kernel with all these nice fixies?

Can you specify which fixes you mean, everything in kernel-plus?

Garp 2014-01-14 12:02

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

Originally Posted by coderus (Post 1389050)
Please dont :D

install attachment to load opptimizer module on demand by opptimizer ui. just cutted modules from package and patched loader to work with kernel-compiled modules

Try to install opptimizer for kernel plus but bad result!
pkill pkgmgrd
~ # AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg
-i opptimizer-kernel-plus_1.5.3_armel.deb
Aegis rejecting opptimizer-kernel-plus_1.5.3_armel.deb: Could not open debian archive
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.
~ #

coderus 2014-01-14 12:08

Re: [Announce] kernel-plus for Harmattan
 
@Garp you again put file in different folder where you trying to execute command? :)

@juiceme NAT :)

Garp 2014-01-14 13:27

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

Originally Posted by coderus (Post 1406333)
@Garp you again put file in different folder where you trying to execute command? :)

Yeah but even with cd /home/user/MyDocs# same result!

First installed 'standard' opp 1.5.4 and ui 1.2.7 due to this
http://talk.maemo.org/showpost.php?p...&postcount=632

and it worked but setup Opp and run Optimize test said error 'No such file etc'

Then your attachment opp-kernel-plus 1.5.3 with mentioned result:confused::confused:

EDIT: reboot tried again and now install seems to work!:)

But same message as with standard 1.5.4 'No such file or directory' trying to setup and run Opptimize test button! What's wrong here:confused:

Log: 'Failed to execute Loader'

Hurrian 2014-01-14 14:07

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

Originally Posted by peterleinchen (Post 1400240)
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.

Huh, never encountered this bug. Maybe because I'm on a 16GB N9 :P

Looks like enabling GPT in the kernel was only half the battle! Will patch and rebuild as soon as possible, if it doesn't break anything (it shouldn't, iirc /sbin/preinit is nice enough to mknod things for you)

Quote:

Originally Posted by juiceme (Post 1400383)
I'd say btrf support for example is more urgent atm.

Going forward, merging all the space on the device with flexible subvolumes and saving space with deduplication would be nice ;)

I've made some strides towards fixing kexec() stuff so kernel-plus, built with a different configuration, could be used as ubiboot's kernel. Too lazy to rebase back on the git kernel tree yet.

This will hopefully land with the next source drop.

Also, congrats on the Council, juice!

Quote:

Originally Posted by Garp (Post 1406340)
and it worked but setup Opp and run Optimize test said error 'No such file etc'

kernel-plus includes the Opptimizer modules, version 1.5.3 to be exact. You should use coderus' opptimizer-ui, it skips over some checks.

The official Opptimizer 1.5.4 modules are rejected by the kernel - they're built against ol' 2.6.32.54 ;)

Garp 2014-01-14 14:51

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

Originally Posted by Hurrian (Post 1406346)

kernel-plus includes the Opptimizer modules, version 1.5.3 to be exact. You should use coderus' opptimizer-ui, it skips over some checks.

The official Opptimizer 1.5.4 modules are rejected by the kernel - they're built against ol' 2.6.32.54 ;)

Thanks but what to do with this issue, you know?:
But same message as with standard 1.5.4 'No such file or directory' trying to setup and run Opptimize test button! What's wrong here

Log: 'Failed to execute Loader'

peterleinchen 2014-01-14 22:03

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

Originally Posted by Hurrian (Post 1406346)
Huh, never encountered this bug. Maybe because I'm on a 16GB N9 :P

Yeah, having that much partitions on 16GB wouldnt make sense, or? ;)
I still have some space left on my extended part so I could be the guinea pig if you like/finish (whenever).

Hurrian 2014-01-14 22:25

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

Originally Posted by Garp (Post 1406358)
Thanks but what to do with this issue, you know?:
But same message as with standard 1.5.4 'No such file or directory' trying to setup and run Opptimize test button! What's wrong here

Log: 'Failed to execute Loader'

The opptimizer module wasn't loaded, and now the UI can't cat to the procfs device.

Try 'modprobe opptimizer'.

Garp 2014-01-15 12:36

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

Originally Posted by Hurrian (Post 1406458)
The opptimizer module wasn't loaded, and now the UI can't cat to the procfs device.

Try 'modprobe opptimizer'.

Thanks, see this has been discussed earlier without solution I think.
Question to Creamy Goodness
Originally Posted by TMavica View Post
By the way, is it necessary to intall yours module?

You answer:
No - kernel-plus includes an opptimizer module compiled against the 2.6.32.61 ABI.
http://213.128.137.28/showpost.php?p...postcount=1258

Then coderus stated: install attachment to load opptimizer module on demand by opptimizer ui. just cutted modules from package and patched loader to work with kernel-compiled modules
Attached Files
File Type: deb opptimizer-kernel-plus_1.5.3_armel.deb (5.6 KB, 28 views)
http://talk.maemo.org/showpost.php?p...&postcount=227

I have now installed this opptimizer (core) from coderus and the ui module 1.2.7 from first page (overclocking kernel modules + UI for PR1.3 [ko v1.5.4] [ui v1.2.7])

Run /sbin/modprobe opptimizer both before and after installing 1.2.7 gives
FATAL ERROR: Module opptimizer not found

Is I missing something or...?:confused:

coderus 2014-01-15 12:51

Re: [Announce] kernel-plus for Harmattan
 
you sure you using latest kernel/kernel including opptimizer module?

Garp 2014-01-15 13:03

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

Originally Posted by coderus (Post 1406592)
you sure you using latest kernel/kernel including opptimizer module?

Using this:
linux_2.6.32.61-plus-20131128.tar.gz

but have problems running apt-get update due to
harmattan/dev-nokia.com harmattan/sdk/non-free
(freeze waiting for heads returningly!):confused:

Hurrian 2014-01-15 13:06

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

Originally Posted by Garp (Post 1406589)
I have now installed this opptimizer (core) from coderus and the ui module 1.2.7 from first page (overclocking kernel modules + UI for PR1.3 [ko v1.5.4] [ui v1.2.7])

Remove everything related to Opptimizer you have installed. Reinstall kernel-plus.

Now, install kernel-plus, and on top of that, install coderus' Opptimizer UI. Modprobe opptimizer. Launch the UI, and it should work.

Garp 2014-01-15 13:12

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

Originally Posted by Hurrian (Post 1406597)
Remove everything related to Opptimizer you have installed. Reinstall kernel-plus.

Now, install kernel-plus, and on top of that, install coderus' Opptimizer UI. Modprobe opptimizer. Launch the UI, and it should work.

Thanks will do it!
Just for understanding coderus opp kernel-plus_1.5.3 is that an UI meaning don't need 1.2.7 UI from Creamy Goodness?

coderus 2014-01-15 13:32

Re: [Announce] kernel-plus for Harmattan
 
@Garp show [lsmod | grep opptimize] output

Garp 2014-01-15 14:08

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

Originally Posted by coderus (Post 1406604)
@Garp show [lsmod | grep opptimize] output

Have reinstalled kernel plus and opp kernel-plus_1.5.3

run lsmod | grep opptimize shows nothing OR is there a log somewhere?

and /sbin/modprobe opptimizer nothing either (but now no Fatal error message:Module opptimizer not found)

coderus 2014-01-15 14:53

Re: [Announce] kernel-plus for Harmattan
 
if no error message it means module loaded. install my package and then ui. it will work.

Garp 2014-01-15 15:05

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

Originally Posted by coderus (Post 1406615)
if no error message it means module loaded. install my package and then ui. it will work.

Your package is that the Opptimizer-kernel-plus_1.5.3_armel.deb ?

And UI is that UI 1.2.7 from Creamy Goodness first page?

coderus 2014-01-15 15:31

Re: [Announce] kernel-plus for Harmattan
 
yes and yes

Garp 2014-01-15 16:18

Re: [Announce] kernel-plus for Harmattan
 
Problem solved thanks to coderus and hurrian!:)

Garp 2014-01-21 11:51

Re: [Announce] kernel-plus for Harmattan
 
OK Opptimizer now works with kernel plus using coderus core 1.5.3 together with UI 1.2.7.
But using Ubiboot and switch between kernels shows that Opptimizer then don't work with kernel l2fix (shows Unknown setup and test button 'No such file or directory) so you have to choose which kernel to use if using Opptimizer!?:rolleyes:

coderus 2014-01-21 12:41

Re: [Announce] kernel-plus for Harmattan
 
@Garp lol, why you switching kernels? for fun? :D

Garp 2014-01-21 13:25

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

Originally Posted by coderus (Post 1407915)
@Garp lol, why you switching kernels? for fun? :D

Yep more or less, isn't N9 also a kind of toy for adult, young ones and old too!:D
And Ubiboot invites to do so?

coderus 2014-01-21 13:51

Re: [Announce] kernel-plus for Harmattan
 
@Garp different modules versions

marmistrz 2014-01-21 16:01

Re: [Announce] kernel-plus for Harmattan
 
Hi,

After booting kernel-plus a reboot occurs after playing the nokia sound (if there was no ubiboot, it'd be a reboot loop)

Why can it happen?

Thanks

coderus 2014-01-21 16:53

Re: [Announce] kernel-plus for Harmattan
 
forgot about modules?

juiceme 2014-01-21 16:54

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

Originally Posted by marmistrz (Post 1407955)
Hi,

After booting kernel-plus a reboot occurs after playing the nokia sound (if there was no ubiboot, it'd be a reboot loop)

Why can it happen?

Could be many reasons.

If your installation has been correctly done (all modules in correct folder, depmod done, no funny business in preinit...) then the problem might be one of your specific device.

What you might want to do is use flasher to disable the watchdogs in R&D mode and try if you can boot it up that way. (sudo flasher --set-rd-flags=no-omap-wd,no-ext-wd,no-lifeguard-reset)
Then check your syslog to see what's the thing that ails you.

If that does not work, then hooking up serial console is the way to find out (almost) all boot related problems.

Garp 2014-01-21 18:17

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

Originally Posted by coderus (Post 1407933)
@Garp different modules versions

As Hurrian stated:
'The official Opptimizer 1.5.4 modules are rejected by the kernel - they're built against ol' 2.6.32.54'

And reverse:
version 1.5.3 don't fit to kernel l2fix, that's it!?;)

coderus 2014-01-21 18:22

Re: [Announce] kernel-plus for Harmattan
 
@Garp exactly

__fastcall 2014-01-26 20:55

Re: [Announce] kernel-plus for Harmattan
 
Can someone tell me how far this open mode goes? uname -a returns the correct kernel version, and the system works a lot faster than the normal n9 one, which is really nice to see.

But Ive tried to install a package with dpkg -i and Ive received an aegis security error. So I guess aegis is not fully patched out?

using dpkg.real did the trick, but normally the kernel should disable aegis, or do I understand it wrong?

coderus 2014-01-26 21:49

Re: [Announce] kernel-plus for Harmattan
 
openmode patch includes allowing to load unsigned kernel modules, executing binaries from any location, unrestricting root privileges and disabling refhash integrity check. thats all.

you cant remove aegis from kernel, because many os components are based on aegis services, and you cant rebuild system.

if you want aegis-free environment you'll use Nemo.

Hurrian 2014-01-26 23:02

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

Originally Posted by __fastcall (Post 1409162)
But Ive tried to install a package with dpkg -i and Ive received an aegis security error. So I guess aegis is not fully patched out?

using dpkg.real did the trick, but normally the kernel should disable aegis, or do I understand it wrong?

It's the same Open Mode other kernels use.
The patched dpkg checks for file signatures when installing system packages - are you using you used
Code:

export AEGIS_FIXED_ORIGIN="com.nokia.maemo"
?

__fastcall 2014-01-28 11:20

Re: [Announce] kernel-plus for Harmattan
 
Thanks for clearing that up.

Yes ive used that export and then I got it working. Ive installed the aegis-hack afterwords and now everything works properly :)

hrbani 2014-02-03 08:28

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

Originally Posted by Hurrian (Post 1391972)
...
kernel-plus 2.6.32.61 r7 should come when I stop messing around with Sailfish :p

Hi dear Hurrian

Is there any news about "kernel-plus 2.6.32.61 r7" or "kernel-plus 2.6.32.61 Final" or newer than 61?

Thanks a lot

Hurrian 2014-03-25 00:50

Re: [Announce] kernel-plus for Harmattan
 
Just a little update, since I've been off TMO for quite a while:

I'm working on rebasing kernel-plus on top of the Mer N9/50 2.6.32 kernel and Mer toolchain, as the Harmattan SDK is officially offline (and deprecated, if I kept building with HSDK, it'd be a pain for others to install and build using it), and it'd be a lot easier to track Git commits with the log from the Mer N9 kernel.

traysh 2014-03-27 04:17

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

Originally Posted by Hurrian (Post 1418376)
Just a little update, since I've been off TMO for quite a while:

I'm working on rebasing kernel-plus on top of the Mer N9/50 2.6.32 kernel and Mer toolchain, as the Harmattan SDK is officially offline (and deprecated, if I kept building with HSDK, it'd be a pain for others to install and build using it), and it'd be a lot easier to track Git commits with the log from the Mer N9 kernel.

I noticed only the noop io scheduler is present in the latest kernel-plus. Would you mind re-enabling all the others available in the main kernel pretty please? I really need cfq, no way to set processes io priorities without it.

I would build the kernel myself, but no way to download the sdk, as you mentioned...

coderus 2014-03-29 08:08

Re: [Announce] kernel-plus for Harmattan
 
@Hurrian @Juiceme i have a non-standart question. Is there any way in kernel to have display framebuffer in portrait rotation? I'm asking because of sailfishos v > 1.0.2.5 going to be crazy on N9's framebuffer. I know about fbrotation cmdline parameters, but it seems not to work.

Hurrian 2014-03-30 13:07

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

Originally Posted by coderus (Post 1418971)
I know about fbrotation cmdline parameters, but it seems not to work.

Well, rotation works, sorta. The problem is, there's some kind of bug that b0rks up rotation at 90 and 270 degrees (echo {1,3} > /sys...)

I suspect it's related to this bug report filed quite some time ago.

WARNING: This will flip display 180 degrees, but touch mappings will not rotate! You may need to reboot after.
Code:

echo 2 > /sys/class/graphics/fb0/rotate
Quote:

Originally Posted by traysh (Post 1418648)
I noticed only the noop io scheduler is present in the latest kernel-plus. Would you mind re-enabling all the others available in the main kernel pretty please? I really need cfq, no way to set processes io priorities without it.

Oops. Yeah, about that...
I've trashed my build VM with the Harmattan SDK on it, leaving me with one option - migrating to Mer+SB2 SDK.

One problem though - while setting up the Nemo rootfs for cross-building, releases.nemomobile.org turned out to be down, which means I can't move forward with setting up for builds.

The source code is here for anyone with a functioning Mer+SB2+Nemo N950 SDK.

TODO:

Hurrian 2014-04-03 03:40

Re: [Announce] kernel-plus for Harmattan
 
I know this'll be a double post, but I just cant resist - I got a little too bored last night while hopped up on coffee.

It's a little teaser of what's to come.

Code:

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.5.3-plus (hurrian@buildserver) (gcc version 4.6.4 20130412 (Mer 4.6.4-1) (Linaro GCC 4.6-2013.05) ) #1 PREEMPT Thu Apr 3 02:06:04 UTC 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Nokia RM-680 board
[    0.000000] Reserving 14680064 bytes SDRAM for VRAM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 256768
[    0.000000] free_area_init_node: node 0, pgdat b06e6ea0, node_mem_map b0710000
[    0.000000]  Normal zone: 2032 pages used for memmap
[    0.000000]  Normal zone: 0 pages reserved
[    0.000000]  Normal zone: 252688 pages, LIFO batch:31
[    0.000000]  HighMem zone: 16 pages used for memmap
[    0.000000]  HighMem zone: 2032 pages, LIFO batch:0
[    0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[    0.000000] Clocking rate (Crystal/Core/MPU): 38.4/390/600 MHz
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 254720
[    0.000000] Kernel command line: init=/sbin/preinit_harmattan root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config),16384k@3840k(kernel),2048k@20224k(log),469248k@22272k(var),32768k@491520k(moslo) bootreason=pwr_key bootmode=normal nolo=2.3.6 product_name=RM-696 dbi-type=V5JW dbi-vendor=1 dbi-size=73 dbi-uid=000000000000000 imei=000000000000000 g_nokia.iSerialNumber=000000000000000 serialnumber=XXX000000 omap_sec.kci=958 gpio=cmt_apeslpx:93:sysfs:output,cmt_en:23:sysfs:init_active:output,cmt_rst_rq:88:sysfs:init_active:output,sleep_ind:92:sysfs:output omapdss.def_disp_enabled=1 vhash=000x00xxxxxxxx000x0xxxx0x00x0x00x0x0xx0x product_model=N9 hwid=1507

Right now, I've got it booting to the Nokia logo (/sbin/preinit_harmattan), which means I'm able to run Harmattan binaries.

I've spent the night patching Aegis to build and link properly against 3.5.3, but it doesn't register as a LSM
This turns the boot process into potato once /sbin/init runs, as IIRC it has Aegis hooks.
Maybe I need to disable the stock Unix DAC?

I'll make a diff and post binaries for any devs to test and work with me in a few.

Based on filippz's kernel source tree.


EDIT:
I've gotten aegis to load as a LSM! :D

One minor problem - it looks like due to some methods I've removed (due to deprecated kernel API or somesuch) cause aegis to go completely tits up.
You will get a MALF if you boot this kernel, in its current state.
You will render Harmattan unbootable (broken refhashlist?)

On the plus side, validator-init runs (you get the MALF screen), which means userspace is communicating with the kernel (not in the way we'd want to, but hey, it's a start!)

Points of interest:
security/aegis/validator/validator.c
@525: ipp_hashlist_load [...]
Function entirely removed and stubbed, first oops.
The original code (this commit, same file, line 530) can probably be rewritten.
The code in question that breaks:
Code:

bufptr = dentry_path(file->f_vfsmnt->mnt_mountpoint, buffer, buflen);
[...]
if (file->f_vfsmnt->mnt_parent != NULL) {

Changes that broke the original function: 1, 2

@1338: #if CONFIG_SECURITY_AEGIS_CREDP
.task_setgroups and .task_setgid are removed, reflecting a kernel API change (1, 2)
Investigate how important these LSM hooks are to Aegis?

security/aegis/validator/enforce.c
@188: valinfo.hashreq [...]
Should probably be changed back to
Code:

valinfo.hashreq    = (val & HASH_REQ_BIT)    ? 1 : 0;
once validator.c:525 is fixed.

WARNING! READ THE ABOVE FIRST!
The kernel is here
compiled with debug info and more printks, in case some of you have a serial port adapter and/or a propensity for kdb
Source patch is here
apply on top of filippz's kernel source tree
use n9_harmattan_defconfig to build a kernel with aegis enabled
WARNING! WARNING! WARNING! WARNING!


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

vBulletin® Version 3.8.8