On Thu, 18 Mar 1999, Philip Blundell wrote:

> If you apply the -philb kernel patch you can say `swap=/dev/..' on the kernel 
> command line.  I'm not sure if swap files will work that way.

Ah, should've checked.  Yup, I specify `swap=/tmp/swap' on the kernel
command-line, but I get `invalid swap file', and a complaint about 
not being able to find the swap file signature.

Looking at mkswap.c, this is unsurprising: the swap file signature
is stored in the last few bytes of the first page; if the page
sizes differ between mkswap on the x86 NFS host (where I created
the swap file) and the A5000, obviously it won't locate the signature.

Of course, A5000 pages are 32kB, and the x86 pages are, well...
differently sized (someone fill me in).  This means I have to mildly
frob the source; specifcally fix the call that reads the page size
using getpagesize().  All I need to know is what this command returns
under Linux on an A5000, and I can built an A5000-friendly mkswap.

-- 
Chris <[EMAIL PROTECTED]>                         ( http://www.fluff.org/chris )


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to