maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Using Micro SD Card as Virtual Ram on Nokia N900? (https://talk.maemo.org/showthread.php?t=42357)

Tigerite 2011-02-22 11:56

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
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?

micemobile 2011-03-14 01:35

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
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 ....

dr_frost_dk 2011-06-19 00:46

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

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?

mehulrajput 2011-06-19 01:31

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by dr_frost_dk (Post 1031741)
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 2011-06-19 11:28

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
hmm been trying different google and that.

can anybody point me to the site necessary or just upload the "swapon" & "swapoff" from the arm.

michaaa62 2011-06-19 12:31

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
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.

mehulrajput 2011-06-19 18:54

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
1 Attachment(s)
Quote:

Originally Posted by dr_frost_dk (Post 1031976)
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. :)

dr_frost_dk 2011-06-19 19:07

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by mehulrajput (Post 1032229)
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 2011-06-19 19:19

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
hmm got some missing libs etc...

but tried the busybox-POWER!!!! hehe and that worked just fine :)

mehulrajput 2011-06-20 21:35

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by dr_frost_dk (Post 1032245)
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 :)


All times are GMT. The time now is 08:13.

vBulletin® Version 3.8.8