maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   additional swap file (https://talk.maemo.org/showthread.php?t=86752)

Akkumaru 2012-10-29 15:08

Re: additional swap file
 
validator-init still not found. :/

Akkumaru 2012-10-29 15:29

Re: additional swap file
 
GREAT! Seems like my output of free matches with yours thedead1440

Code:

~# free
            total        used        free      shared      buffers
Mem:      1008108      671736      336920            0        25064
-/+ buffers:            646672      361984
Swap:      422136            0      408576


thedead1440 2012-10-29 15:30

Re: additional swap file
 
thank goodness!

Congratulations!

Akkumaru 2012-10-29 15:32

Re: additional swap file
 
Quote:

Originally Posted by thedead1440 (Post 1287169)
thank goodness!

:sigh of relief:

Is this what the output should be after rainisto's mod? because his is different.

P/S: I am still learning (as it says in my sig :D)

thedead1440 2012-10-29 15:34

Re: additional swap file
 
Quote:

Originally Posted by Akkumaru (Post 1287173)
Is this what the output should be after rainisto's mod? because his is different.

P/S: I am still learning (as it says in my sig :D)

Yup its correct!

No no I didn't mean it in a bad way but was relieved that you didn't have to reflash... Your earlier errors made me worry that a reflash was the only way for you hence my relief to see you get it done without having to reflash... :)

Akkumaru 2012-10-29 15:36

Re: additional swap file
 
Quote:

Originally Posted by thedead1440 (Post 1287175)
Yup its correct!

No no I didn't mean it in a bad way but was relieved that you didn't have to reflash... Your earlier errors made me worry that a reflash was the only way for you hence my relief to see you get it done without having to reflash... :)

Alright, thanks anyway! :D

ThraxZzz 2012-10-30 03:11

Re: additional swap file
 
wait wait,if we reboot,it will say device not working ?

thedead1440 2012-10-30 03:31

Re: additional swap file
 
Quote:

Originally Posted by ThraxZzz (Post 1287384)
wait wait,if we reboot,it will say device not working ?

of course you can reboot; you should not be rebooting if you are only half way thru the steps...

Complete the steps correctly and reboot; no issues....

ThraxZzz 2012-10-30 09:54

Re: additional swap file
 
Thanks guys! Working great :) A special Thanks to you thedead1440 :)

nbedford 2012-10-31 16:11

Re: additional swap file
 
For those that have enabled this mod, do you notice any difference?

thedead1440 2012-10-31 16:15

Re: additional swap file
 
nbedford,

Slight speed boost here in terms of opening apps...

Akkumaru 2012-10-31 17:21

Re: additional swap file
 
@nbedford I guess i could say more stability in multitasking.

nbedford 2013-01-27 11:35

Re: additional swap file
 
Ok, I took the plung and went for this mod.

I followed @rainisto's tutorial and also hit the validator-init not found error.

After searching I see validator-init is in /usr/sbin, so although everything seemed to be working correctly, I re-ran through the tutorial but changed the validator line to

Code:

/usr/sbin/validator-init; aegis-loader;echo 1 > /sys/kernel/security/validator/flush

rainisto 2013-01-27 11:46

Re: additional swap file
 
Quote:

Originally Posted by nbedford (Post 1318105)
Ok, I took the plung and went for this mod.

I followed @rainisto's tutorial and also hit the validator-init not found error.

After searching I see validator-init is in /usr/sbin, so although everything seemed to be working correctly, I re-ran through the tutorial but changed the validator line to

Code:

/usr/sbin/validator-init; aegis-loader;echo 1 > /sys/kernel/security/validator/flush

ah yes, I assumed that everyone have runned devel-su before running opensh (as devel-su adds /usr/sbin to path). I updated the original instructions to have devel-su line before opensh.

TMavica 2013-01-29 03:42

No opensh, ariadne sh is ok?

TMavica 2013-01-29 06:45

Seem i need open mode to solve it

TMavica 2013-01-29 08:34

Re: additional swap file
 
help

http://dl.dropbox.com/u/37229054/Scr...3_16-30-17.png

nbedford 2013-01-29 11:32

Re: additional swap file
 
Your screenshot shows /user/sbin/validator-init it shoudl be /usr/sbin

EDIT: See you already tried with /usr/sbin

TMavica 2013-01-29 11:44

Yes, that i type wrongly.
I think is normal mode problem

chenliangchen 2013-01-29 13:56

Re: additional swap file
 
I tried with this tweak with open mode on a 512mb N950, but after reboot the swap bacame 0, don't know the reason why...

Big big thank to thedead1440... Without him I can't even try it. :)

TMavica 2013-01-29 14:22

Re: additional swap file
 
Quote:

Originally Posted by chenliangchen (Post 1318748)
I tried with this tweak with open mode on a 512mb N950, but after reboot the swap bacame 0, don't know the reason why...

Big big thank to thedead1440... Without him I can't even try it. :)

same, I flashed to open mode
and followed the instruction, but swap still is 0 MB. I have copy the enable-swap.conf to /tmp and /etc/init folder already

kumary 2013-01-29 15:23

Re: additional swap file
 
Quote:

Originally Posted by TMavica (Post 1318752)
same, I flashed to open mode
and followed the instruction, but swap still is 0 MB. I have copy the enable-swap.conf to /tmp and /etc/init folder already

If you like then grab opensh from the following link:

http://talk.maemo.org/showthread.php?t=85878

and try again.. May be that can help.

cheers

TMavica 2013-01-29 15:31

Re: additional swap file
 
u mean incept that opensh deb?
as i know inception 2.5 , no need opensh anymore

TMavica 2013-01-29 15:32

Re: additional swap file
 
and can you send me yours enable-swap.conf file?

kumary 2013-01-29 15:58

Re: additional swap file
 
Quote:

Originally Posted by TMavica (Post 1318774)
u mean incept that opensh deb?
as i know inception 2.5 , no need opensh anymore

no need to incept it just need to install it.

And it was like that you don't need opensh for installing inception as after PR1.3 aridanesh does the same thing.

but as i have read earlier that no one replied to your query regarding opensh or aridanesh. I would suggest if you can try with opensh.

I haven't tried yet as these are busy days but will try this on this weekend.

pls share your output as it will be helpful for others including me.

cheers

rainisto 2013-01-29 16:00

Re: additional swap file
 
well that screenshot doesn't show you using adriane shell or opensh. Before running the commands you can check if you have enough capabilities in your shell with:

RM696-21-3_PR_001:~# accli -I |grep tcb-sign
aegis-enabler::tcb-sign
RM696-21-3_PR_001:~#

If grep doesn't return that line, then you need to devel-su into opensh, or gain privileges with adriane sh.

TMavica 2013-01-29 16:15

Re: additional swap file
 
Quote:

Originally Posted by rainisto (Post 1318792)
well that screenshot doesn't show you using adriane shell or opensh. Before running the commands you can check if you have enough capabilities in your shell with:

RM696-21-3_PR_001:~# accli -I |grep tcb-sign
aegis-enabler::tcb-sign
RM696-21-3_PR_001:~#

If grep doesn't return that line, then you need to devel-su into opensh, or gain privileges with adriane sh.

i have do ariadne sh, just missed a top
I think is the problem i have is enable-swap.conf, i found i downloaded is 607B...

TMavica 2013-01-29 16:16

Re: additional swap file
 
is that one?
http://pastebin.com/EE9GTBNV

TMavica 2013-01-29 16:42

Re: additional swap file
 
Quote:

Originally Posted by rainisto (Post 1318792)
well that screenshot doesn't show you using adriane shell or opensh. Before running the commands you can check if you have enough capabilities in your shell with:

RM696-21-3_PR_001:~# accli -I |grep tcb-sign
aegis-enabler::tcb-sign
RM696-21-3_PR_001:~#

If grep doesn't return that line, then you need to devel-su into opensh, or gain privileges with adriane sh.

this is ok, it shows as above

my step is:
1. ariadne sh
2. Copied enable-swap.conf (http://pastebin.com/EE9GTBNV) to /tmp/ and /etc/init/, the files is 2.07KB
3. run the command from export A=`sha1sum /tmp/enable-swap.conf |cut -b1-40`;
4. Continue the command until last: /usr/sbin/validator-init; aegis-loader;echo 1 > /sys/kernel/security/validator/flush
5. /sbin/reboot

And checked the swap memory is 0 MB........I dont know which step got problem, all command from step 3 - 4 no any error.

thedead1440 2013-01-29 16:56

Re: additional swap file
 
did you devel-su first? If not then why not?

TMavica 2013-01-29 17:00

Re: additional swap file
 
Quote:

Originally Posted by thedead1440 (Post 1318820)
did you devel-su first? If not then why not?

try devel-su and opensh, same...........
use ariadne sh, also.

really dont know which step i wrong, now always 0 MB swap, I think i need to reflash...............sigh.......:mad:

rainisto 2013-01-29 17:10

Re: additional swap file
 
Are you getting the cabapities row when you do: accli -I |grep tcb-sign

If you are then only thing that I can think of, is that usually run these commands from ssh terminal shell and not from UI terminal application. It might be that UI terminal application handles special character differently, like $ vs \$, in which case you have totally screwed up refhashlist). I'm just assuming that people copypaste the commands on ssh shell, and not try to use any UI terminals on device itself, since if you happen to type a single command in wrong order, or typo the path, then it can lead to malf.

TMavica 2013-01-29 17:14

Re: additional swap file
 
accli -I |grep tcb-sign, i can get the output as you mentioned
where i can get ssh terminal?

maybe I need to give up and reflash, I already do this whole day:(

rainisto 2013-01-29 17:18

Re: additional swap file
 
Quote:

Originally Posted by TMavica (Post 1318833)
accli -I |grep tcb-sign, i can get the output as you mentioned
where i can get ssh terminal?

ssh developer@192.168.2.15 from your PC to device when usbnet-working has been enabled. On windows you can use putty or something, and ssh on Linux.

But yes refhashing might be easiest way, especially if refhashlist has wierd lines in it.

TMavica 2013-01-29 17:36

Re: additional swap file
 
iD: ssh developer?
i try the password show in phone, then enter in putty, it denied

chenliangchen 2013-01-29 17:47

Re: additional swap file
 
Quote:

Originally Posted by TMavica (Post 1318842)
iD: ssh developer?
i try the password show in phone, then enter in putty, it denied

You need to set a password for root or user, the quickest way is n9QT I believe...:)

TMavica 2013-01-29 19:04

Re: additional swap file
 
After reflash the phone, and do in SSH
it is OK ed.......
Thanks all!

chenliangchen 2013-01-29 19:42

Re: additional swap file
 
Quote:

Originally Posted by TMavica (Post 1318882)
After reflash the phone, and do in SSH
it is OK ed.......
Thanks all!

Congratulations!!! Perhaps I should perform the same...

TMavica 2013-01-29 19:43

Re: additional swap file
 
you need reflash too i think...

chenliangchen 2013-01-29 20:08

Re: additional swap file
 
Quote:

Originally Posted by TMavica (Post 1318886)
you need reflash too i think...


Will do! ;)

PS: That's quite late in Hong Kong... :)


All times are GMT. The time now is 00:09.

vBulletin® Version 3.8.8