![]() |
2012-05-27
, 09:41
|
Posts: 105 |
Thanked: 46 times |
Joined on May 2011
|
#51
|
![]() |
2012-05-27
, 12:20
|
Posts: 1,163 |
Thanked: 1,873 times |
Joined on Feb 2011
@ The Netherlands
|
#52
|
I've found something that worry me - sudden of nothing, my device refuse to boot past 5 dots (no reboot loop, just stay with black screen and backlight on forever), unless I remove line:
...from rcS-late.Code:blkid -g
It's part of script, that check for existence of swaptype partition in place provided via config... I've idea how to make it more reliable, so i'll release fix in few days (I hope).
What is most strange, though, is that I could swear it worked for me yesterday, and it seems to work for all of You. Still, keep that in mind - if, by any chance, someone got hit by similar problem during boot, just open recovery console (via backupmenu, or any other flavor), mount rootfs, and comment out mentioned line in rcS-late. Unfortunately for me, I had to restore rootfs, until I repeated all steps and got hit by same thing again - only then I realized what is causing problems.
/Estel
The Following 2 Users Say Thank You to mr_pingu For This Useful Post: | ||
![]() |
2012-05-27
, 12:27
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#53
|
Could anyone enlighten me and tell me how to configure swap0 and swap2? I assume that mmcblk1p1 is my SD card and I think mmcblk0p1 is MyDocs. Are these two OK or should I choose something else than MyDocs for swap2?
The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2012-05-28
, 02:32
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#54
|
The Following 4 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-05-28
, 03:19
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#55
|
The Following 5 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-05-28
, 21:59
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#56
|
[size=4]
I haven't had time (yet) to try automation, and using /proc/stats isn't so trivial to implement reliably no matter of conditions, so as for now, it depends on busybox-power
/Estel
awk '{if ($3=="'"mmcblk1p2"'") print $10}' /proc/diskstats
swap=mmcblk1p2
awk '{if ($3=="'"$swap"'") print $10}' /proc/diskstats
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2012-05-29
, 06:49
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#57
|
Nothing against bb-power (at all).
Please see this:
PHP Code:
awk '{if ($3=="'"mmcblk1p2"'") print $10}' /proc/diskstats
PHP Code:
swap=mmcblkp1p2
awk '{if ($3=="'"$swap"'") print $10}' /proc/diskstats
The Following 2 Users Say Thank You to misiak For This Useful Post: | ||
![]() |
2012-05-29
, 07:18
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#58
|
there's one extra "p" in second code ( "mmcblkp1p2, should be mmcblk1p2, then it works)"
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2012-05-29
, 08:50
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#59
|
Yep(p), true.
Another typo slipped in. Tested only first part and just added second for convenience of selecting swap space by env var.
Corrected my post.
![]() |
2012-05-29
, 16:05
|
Posts: 204 |
Thanked: 423 times |
Joined on Jan 2011
|
#60
|
![]() |
Tags |
ereswap, fragmentation, microsd, swappiness, swaps |
|