linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Jim Chapman <jim.chapman@iname.com>
To: "linuxppc-embedded@lists.linuxppc.org"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: configuring swap on a diskless mpc860 embedded target
Date: Thu, 18 Nov 1999 14:39:27 +0000	[thread overview]
Message-ID: <38340F9F.E7A9CC63@iname.com> (raw)


Is anyone using an NFS-mounted swap file on an mpc860 diskless system?

I created a swap file on the embedded target using

dd if=/dev/zero of=/SWAPFILE bs=1k count=8192
mkswap /SWAPFILE

But when I try to enable swapping using "swapon /SWAPFILE", linux
complains that it can't find a swap signature in the file. I've looked
at the file using a hex dump and it seems to be in the right place (10
characters at offset 4096-10). Adding some debug printk's, I can see
that sys_swapon() reads in random data (usually NULLs, but not always)
into a swap_header struct. I get the same result with v0 and v1 swap
file formats.

I tried creating the swap file on my PowerMac G3 (running linux-2.2.10)
but that yielded the same result.

My kernel is the embedded 2.2.13 running on a custom mpc860 board. The
system's NFS root is served from a cheapie x86 system running
linux-2.2.13.

Any thoughts?

-Jim


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~1999-11-18 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-18 14:39 Jim Chapman [this message]
1999-11-18 15:47 ` configuring swap on a diskless mpc860 embedded target Dan Malek
1999-11-19  9:50 ` Kenneth Johansson
1999-11-19 11:39   ` Leif Lindholm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38340F9F.E7A9CC63@iname.com \
    --to=jim.chapman@iname.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).