Hi,
How to add swapping over NFS support in davinci kernel?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Please clarify the question. I don't think I understand what you are looking for.
regards.
I am not a regular DM 3xx user but I assume all our kernels support booting via NFS if that is what you need. Then it is important to specify correct bootargs.
Something like this:
bootargs_nfs=console=ttyS2,115200n8 noinitrd rw ip=xx.xx.205.79 root=/dev/nfs nfsroot=xx.xx.205.139:/home/jars/source/filesys, nolock mem=128M
Details should be on the Wiki or in PSP docs.
Alternatively you might use other filesys media and add an NFS share later. But that usually requires some changes to the filesys and Linux init. Not all our PSP filesystems support that out of the box. However Angstroem filesystems usually have that working. So try these.
Regards.
Hi Frank,
I am working on DM365 board, in my board have not sufficient RAM and Flash(for virtual support) memory to run applications. So, I am not able to use flash as virtual/swap memory. I am looking for how to add swapping over NFS support in davinci kernel i.e kernel running on dm365 uses HOST(NFS server) memory as virtual memory.
Dear Ashwani,
in that case I have to pass as I never tried to setup a swap file via NFS. However according to Linux philosophy where everything is a file anyway it might work with some tricks. Usually swap files reside on disk partitions. I suggest you search the web for methods of mounting swap files. Once you can mount a normal file as swap space it might work via NFS. Might be slow ...
Does you system have SDcard interface? A memory card would be another option of course.
Regards.
Thanks Frank,
Davinci kernel support booting via NFS and it is working fine.
please see:
8.3. Swapping over NFS in below link:
http://www.linux.org/docs/ldp/howto/Network-boot-HOWTO/x542.html.
I am not able to find these options in davinci kernel:
a) Swapping via network sockets (EXPERIMENTAL)
b) Swapping via NFS

It looks like this is a little outdated (minimum kernel 2.2!). Now the method might have been replaced by something else or completely removed from the mainline kernels. At the time it was written it was experimental... Also the link to the full doc doesn't exist anymore.
You need a real Linux guru - suggest you try a mailing list for Linux users.
Regards.
Thaks Frank,
I have also checked another method swapping over NFS without kernel support.
http://paulfedora.wordpress.com/2010/06/18/adding-swap-over-nfs-for-koji-builders/#comment-235
I have followed the steps as explained in above link.
but when I tried mount loop device over /swap0 (mount -o loop /swap0),getting following messages:
#mount -o loop /swap0
mount: mounting /dev/loop0 on /swap0 failed: Invalid argument
and not able to mount swap0 on NFS server.