ddwrt swap usage

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Author Message
Akos_beginner
DD-WRT Novice


Joined: 15 Jan 2010
Posts: 2

PostPosted: Fri Jan 15, 2010 3:19 pm    Post subject: ddwrt swap usage Reply with quote
Hi All,

Somehow I cannot use swap on my WRN3500L router with ddwrt installed.

HW: WRN3500L
SW: DD-WRT for WNR3500L Std. w/ USB Support (BIN) V24-K2.6 svn13401

Output from mount, uname -a, lsmod is here (saved till 1 month):

http://pastebin.ca/1752433

Steps I did:

# ipkg-opt --tmp-dir /mnt/tmp/ install busybox
# ipkg -d root -force-depends install swap-utils
# ipkg -d root -force-depends install kmod-loop
# ipkg -d root -force-depends install kmod-ext2
# insmod /jffs/lib/modules/2.4.30/loop.o
# insmod /jffs/lib/modules/2.4.30/ext2.o
# dd if=/dev/zero of=/mnt/myswap.swp bs=1k count=80000
# /opt/bin/busybox mkswap /mnt/myswap.swp
# /opt/bin/busybox swapon /mnt/myswap.swp
swapon: /mnt/myswap.swp: Function not implemented
????

I tried with linux-swap formatted partition un my usb stick as well, but same error message...

Link I followed: http://www.dd-wrt.com/wiki/index.php/Linux_SWAP
Firmware used: http://www.myopenrouter.com/download/15518/DD-WRT-for-WNR3500L-Std.-w-USB-Support-BIN/

I am affraid that swap in this version of kernel is not enabled. Am I wrong? Anybody use swap with ddwrt on wrn3500l?
Sponsor
ABW
DD-WRT User


Joined: 02 Apr 2009
Posts: 312
Location: Henning, Minnesota, USA

PostPosted: Sat Jan 16, 2010 1:54 am    Post subject: Reply with quote
Did you do this?......

Use ONLY ext2/3 for partition/drives that you plan for permanent connection to your DD-WRT box, or for drives where you plan to install additional software packages onto (like optware, Samba, Torrent etc.). You can use any of the three mount points: /opt, /mnt, /jffs

_________________
support@abetterwireless.com

Mitch
Akos_beginner
DD-WRT Novice


Joined: 15 Jan 2010
Posts: 2

PostPosted: Sat Jan 16, 2010 2:10 pm    Post subject: Reply with quote
All my partitions are ext3 and one is formated as swap.
I tried swap on ext3 and on swap formated partition.

Yesterday on dd-wrt channel I got the bad news:
"Function not implemented" means it is not supported.
At least not yet.

I have found the following changeset:
http://svn.dd-wrt.com:8000/dd-wrt/changeset/13410

Interesting part from src/linux/brcm/linux-2.6.23/.config_std:
# CONFIG_SWAP is not set
CONFIG_SWAP=y

In the latest svn verion is the swap support not activated:
http://svn.dd-wrt.com:8000/dd-wrt/browser/src/linux/brcm/linux.v24_2/.config_std

Short googling, what is the CONFIG_SWAP:
http://cateee.net/lkddb/web-lkddb/SWAP.html

This is not for my level. I put myself on hold and wait till I can keep on building my high-tech ddwrt router Smile
strangedata
DD-WRT Novice


Joined: 17 Apr 2010
Posts: 7

PostPosted: Mon Jul 12, 2010 12:27 pm    Post subject: Reply with quote
Hi,

I'm getting this "Function not implemented" message as well.

Is there any way to get swap working without recompiling the kernel?

Thanks.
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 639

PostPosted: Mon Jul 12, 2010 4:33 pm    Post subject: Reply with quote
In the most recent configs swap on kernel 2.6 is available:
http://svn.dd-wrt.com:8000/dd-wrt/browser/src/linux/brcm/linux-2.6.23/.config_std

You have to take a kernel2.6 build past SVN 14305
( http://svn.dd-wrt.com:8000/dd-wrt/changeset/14305 )
strangedata
DD-WRT Novice


Joined: 17 Apr 2010
Posts: 7

PostPosted: Mon Jul 12, 2010 4:44 pm    Post subject: Reply with quote
Hmmm, now that's weird . I'm using DD-WRT Release 04/23/10 (SVN revision: 14311).

Here is uname -a output:
Linux DD-WRT 2.6.24.111 #1853 Fri Apr 23 07:38:47 CEST 2010 mips unknown

And this is what I get when I try to enable swap:
root@DD-WRT:~# swapon /jffs/tmp/swap
swapon: can't resolve symbol 'swapon' in lib 'swapon'.
root@DD-WRT:~# /jffs/bin/busybox swapon /jffs/tmp/swap
/jffs/bin/busybox: can't resolve symbol 'swapon' in lib '/jffs/bin/busybox'.

Is there anything else I should try?

Thanks!
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 1170
Location: Wiederkehr Village, AR

PostPosted: Mon Jul 12, 2010 11:29 pm    Post subject: Reply with quote
strangedata wrote:

Is there anything else I should try?
Thanks!


I would look into running Optware the right way, i use it and my swap works fine.



swapuse.jpg
 Description:
 Filesize:  25.28 KB
 Viewed:  253 Time(s)

swapuse.jpg



_________________
Forum Rules and Guidelines | Peacock-Broadcom FAQ | Firmware Recommendations | DD-WRT Wiki | DD-WRT Builds
strangedata
DD-WRT Novice


Joined: 17 Apr 2010
Posts: 7

PostPosted: Tue Jul 13, 2010 12:29 am    Post subject: Reply with quote
I haven't been able to install optware the right way on my router because, I believe, it's a big endian mips, and the optware is only available for little endian archs IIRC.

All the packages I've installed were downloaded from:
http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/

Maybe this is the problem...
buddee
DD-WRT Guru


Joined: 06 Feb 2010
Posts: 1170
Location: Wiederkehr Village, AR

PostPosted: Tue Jul 13, 2010 12:59 am    Post subject: Reply with quote
strangedata wrote:
I haven't been able to install optware the right way on my router because, I believe, it's a big endian mips, and the optware is only available for little endian archs IIRC.

All the packages I've installed were downloaded from:
http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/

Maybe this is the problem...


What router (make & model) are you trying to install to? If its a WNR3500L then it should be no probs, i installed it for my friend just yesterday to his WNR3500L

_________________
Forum Rules and Guidelines | Peacock-Broadcom FAQ | Firmware Recommendations | DD-WRT Wiki | DD-WRT Builds
strangedata
DD-WRT Novice


Joined: 17 Apr 2010
Posts: 7

PostPosted: Tue Jul 13, 2010 1:19 am    Post subject: Reply with quote
It's actually a TP-Link TL-WR1043ND.

Is the WNR3500L a bid endian as well?

Thanks!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum