Active Topics

 


Reply
Thread Tools
Posts: 284 | Thanked: 320 times | Joined on May 2010 @ Peterborough, UK
#111
I had similar problems at first. You have to umount /media/mmc1 and then dd if=/dev/zero of=/dev/mmcblk1p1 bs=1024 count=1048576 before mkswap to ensure there are no holes. Also, have you set up the partition table for the MMC card?
 
Posts: 2 | Thanked: 0 times | Joined on May 2010 @ Russia Pyatigorsk
#112
Code:
    sfdisk -l /dev/mmcblk0 | /bin/busybox awk \
    	-v home_opts="$home_opts" -v fat_opts="$fat_opts" \
	-f /usr/lib/genfstab.awk > $tmp_fstab
#BEGIN
    sfdisk -l /dev/mmcblk1 | /bin/busybox awk \
    '/\/dev\/mmc/ && $6 == 82 {printf "%s none swap sw 0 0\n", $1}' >> $tmp_fstab
#END
    cmp -s $tmp_fstab $fstab || cp $tmp_fstab $fstab
    rm -f $tmp_fstab

    if [ $ACT_DEAD -eq 0 ]; then
#BEGIN
      /bin/busybox awk '/swap/ {printf "/sbin/swapon -p 0 %s;",$1}' /etc/fstab | sh
      /bin/busybox grep dev /proc/swaps >/dev/null || echo "Failed to enable paging partition."
#END
      # Setup lowmem module
This is mi adeded script of rcS-late ....

Last edited by micemobile; 2011-03-14 at 01:38.
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#113
In order to utilize both swap partitions to balance the I/O load (striping), they should have the same priority. The /bin/swapon command shipped with Maemo is the busybox version that does not support -p option. If you don't have Easy Debian environment installed, download the stock Debian mount package for the armel architecture and extract (-x) the swapon binary from it, and copy it somewhere e.g. /sbin/swapon.debian.
Where do i download the "stock Debian mount package for the armel architecture" so i can extract the swapon from it

or can anybody zip it and put it here to download?
 
Posts: 182 | Thanked: 40 times | Joined on Apr 2010 @ Seatle, WA
#114
Originally Posted by dr_frost_dk View Post
Where do i download the "stock Debian mount package for the armel architecture" so i can extract the swapon from it

or can anybody zip it and put it here to download?
google for debian arm mount .deb. it is in repository of debian. i believe it is now also in the updated busybox in maemo repository.

i used to stripe but now i am exclusive on mmc for swap.
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#115
hmm been trying different google and that.

can anybody point me to the site necessary or just upload the "swapon" & "swapoff" from the arm.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#116
mount is not separated from shell, so should be part of busybox or bash. Did you try busybox-power? This is an enhanced busybox shell which offers the -p switch for swapon.
However, i did not not test, if it is working.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 182 | Thanked: 40 times | Joined on Apr 2010 @ Seatle, WA
#117
Originally Posted by dr_frost_dk View Post
hmm been trying different google and that.

can anybody point me to the site necessary or just upload the "swapon" & "swapoff" from the arm.
here you go. just use the swapon from this deb.

no need for swapoff from this package.

btw, thanks for giving the community awesome test for batteries.
Attached Files
File Type: deb mount_2.17.2-9_armel.deb (166.1 KB, 122 views)
 

The Following 3 Users Say Thank You to mehulrajput For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#118
Originally Posted by mehulrajput View Post
here you go. just use the swapon from this deb.

no need for swapoff from this package.

btw, thanks for giving the community awesome test for batteries.
Your welcome and thank you so much
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#119
hmm got some missing libs etc...

but tried the busybox-POWER!!!! hehe and that worked just fine
 
Posts: 182 | Thanked: 40 times | Joined on Apr 2010 @ Seatle, WA
#120
Originally Posted by dr_frost_dk View Post
hmm got some missing libs etc...

but tried the busybox-POWER!!!! hehe and that worked just fine
I didn't install busybox-power as I hate to fill up my rootfs. I want to move my files esp libs to emmc, last time I tried modest broke checking email so gave up.

apparently moving files from rootfs to emmc saves battery life. I am yet to confirm the same though
 
Reply


 
Forum Jump


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