Author Topic: Swap Space on Area51 ROM Support  (Read 2023 times)

0 Members and 1 Guest are viewing this topic.

Swap Space on Area51 ROM Support

« on: November 29, 2014, 02:09:25 AM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • lordlortnoc

    Posts: 22
    User Rating: +1/-0
    Offline
    • *
    • Jr. Member
    Alright,...  this is my first post.

    First off, I would like to say, whomever is responsible for making ARPv1.1, THANK YOU!

    Secondly,  I've looked around on here for a while and i haven't seen anyone talk about it.  I started wondering last night if there was a swap partition on the phones internal memory and there doesn't seem to be, so I figured I would look into creating one on my sdcard.  I found a few walk-thoughs.  It seemed pretty straight forward.  I'm pretty good with a command line, so I was certain that I could get it working easily, but I ran into a problem that seems to be a kernel issue, which I have absolutely no idea on how to solve  So,...  that's why I'm here posting.

    Alright here is what I've attempted from Better Terminal Emulator and my results:
    Code: You are not allowed to view links. Register or Login
    / # cd /sdcard
    /sdcard # touch swapfile
    /sdcard # busybox mkswap swapfile 200000
    Setting up swapspace version 1, size = 204795904 bytes
    UUID=c647cb4e-9f89-4fbf-865e-91f0b2ab61dd
    /sdcard # swapon swapfile
    swapon: swapfile: Function not implemented

    and that's as far as i get...  Reading the comments on the page, if you get that error than your kernel is not supported, but then I found that if you type in:

    Code: You are not allowed to view links. Register or Login
    / # cat /proc/cpuinfo
    Processor: ARMv7 Processor rev 2 (v71)
    BogoMIPS: 796.20
    Features: swp half thumb fastmulti vfp edsp thumbee neon vfbv3
    ........ and so on

    and the fact that "swp" is listed under Features should mean that it is supported by the kernel?

    So I continued my research.  And ended up finding this on a page...

    Quote
    The "Function not implemented" error indicates the kernel does not fully support swap...I have come across this exact issue with a handful of the users of my script.

    The solution is to either talk to and inform your rom's/kernel's dev of the issue so they can fix it or to flash a new kernel that fully/properly implements swap.

    So here I am.  Anyone have any suggestions about how to either fix the kernel myself, who to talk to?  Or, even another method of getting swap to work would be awesome...  lol Thanks guys!
    • Custom
    • Samsung Galaxy Proclaim
    • AreaRom CWM v6
    • AreaRom v1.2
    • Rooted-Rom

    Re: Swap Space on Area51 ROM Support

    « Reply #1 on: December 05, 2014, 04:35:51 PM »
  • Thank You
  • -Given: 22
  • -Receive: 148
  • blazer64

    Posts: 1428
    User Rating: +277/-2
    Offline
    • Kernel Developer
    • *
    • PostMaster General
    • Personal Text
      Android is King
    here it is my bad i deleted it cause im releasing the 1.4ghz version.

    *this kernel has swap enable and its oc to 1.2ghz*

     You are not allowed to view links. Register or Login

    • Stock
    • Stock
    • None
    • n/a
    You are not allowed to view links. Register or Login

    Re: Swap Space on Area51 ROM Support

    « Reply #2 on: December 06, 2014, 03:11:04 AM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • lordlortnoc

    Posts: 22
    User Rating: +1/-0
    Offline
    • *
    • Jr. Member
    dude, do you know how awesome you are??!! hahahaha you just save me HOURS of pulling out my hair trying to decompile, edit, recompile, and test a kernel with no idea what im doing.... (and probably save my phone from tons of bricks)

    THANK YOU!
    • Custom
    • Samsung Galaxy Proclaim
    • AreaRom CWM v6
    • AreaRom v1.2
    • Rooted-Rom

    Re: Swap Space on Area51 ROM Support

    « Reply #3 on: December 08, 2014, 04:18:07 PM »
  • Thank You
  • -Given: 22
  • -Receive: 148
  • blazer64

    Posts: 1428
    User Rating: +277/-2
    Offline
    • Kernel Developer
    • *
    • PostMaster General
    • Personal Text
      Android is King
    well im happy that it help you to get on where you wanted. and no problem your welcome. just to let you know swap enable kernels will eat up sdcards. just a cautious note.

    • Stock
    • Stock
    • None
    • n/a
    You are not allowed to view links. Register or Login

    Re: Swap Space on Area51 ROM Support

    « Reply #4 on: December 10, 2014, 04:21:01 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • lordlortnoc

    Posts: 22
    User Rating: +1/-0
    Offline
    • *
    • Jr. Member
    Yeah man, I swapped out my 32gb for a 4gb that I had laying around.  I'm going to enable swap and see how long it takes to destroy it lol  I have a few more smaller ones so I'll just use em untili I run out I guess,...   Either that or just enable swap when I really need it.  Thanks for the heads up though. 

    I tried making a swap space in /data and it wouldn't create the swap file.  It would only return something about holes in the file when trying to convert to swap.  Do you think that would be a bad idea if I *could* get it working?  Do you think it would destroy the partition, like it would an sdcard?   or do you think it would be alright considering that it's internal memory....   I've kinda been on the fence about really pushing it to get it to work.  I haven't tried this yet, but I wonder if I could create the file, convert it to swap and then move it to a system partition and use it from there? 

    Anyways, thanks man!
    • Custom
    • Samsung Galaxy Proclaim
    • AreaRom CWM v6
    • AreaRom v1.2
    • Rooted-Rom

    Re: Swap Space on Area51 ROM Support

    « Reply #5 on: December 11, 2014, 03:59:20 PM »
  • Thank You
  • -Given: 22
  • -Receive: 148
  • blazer64

    Posts: 1428
    User Rating: +277/-2
    Offline
    • Kernel Developer
    • *
    • PostMaster General
    • Personal Text
      Android is King
    you might try using an app from the play store. but it will work on the sdcard im not sure if itll work on the internal havent tried it.

    try swapper for root

    Plus app2sd

    You need to partition the sdcard to 3 parts or even 2.

    For 3 part it should be:
    fat32/ext2*3*4/swap

    For 2 part it should be:
    Fat32/swap

    For the 3 part partition sdcard:
    swap mount should be either dev/block/mmcblk0p3


    For the 2 part partition sdcard should be:
    dev/block/mmcblk0p2
    • Stock
    • Stock
    • None
    • n/a
    You are not allowed to view links. Register or Login

    Tags: