I quickly downloaded and built BusyBox v1.10.0. But it still gave the same 
"hole" problem. See below.

Are there any debug flags I can turn on ? I'll start going through the 
documentation. I'm relatively new to BusyBox, and I'm wondering if I'm just 
missing something out required to create a swapfile.

I made BusyBox using the following commands:

make defconfig
export ARCH=powerpc
export CROSS_COMPILE=ppc_6xx-
PATH=$PATH:/home/jm0069/ws/MCU/MCU_dev/MCU/Tools/ELDK/usr/bin/
make

/var/tmp $ dd if=/dev/zero of=swapfile bs=1M count=20
20+0 records in
20+0 records out
/var/tmp $ ls -l
-rw-r--r--    1 root     0        20971520 Jan  2 08:31 swapfile
/var/tmp $ mkswap swapfile
Setting up swapspace version 1, size = 20967424 bytes
/var/tmp $ swapon swapfile
swapon: swapfile has holes
swapon: swapfile: Invalid argument
/var/tmp $ swapon --help
BusyBox v1.10.0 (2008-03-26 17:58:17 CET) multi-call binary

Usage: swapon [-a] [DEVICE]

Start swapping on DEVICE

Options:
        -a      Start swapping on all swap devices

/var/tmp $

Regards,
Jon.

Ubidyne GmbH
Lise-Meitner-Straße 14
D-89081 Ulm

mail      [EMAIL PROTECTED]
web       www.ubidyne.com
 
Registered office: Ulm
District court of Ulm: HRB 5295
Managing Directors:
Dipl. Ing. Ken Hawk
Dipl. Ing. Beat Müller
Dr. Clemens Rheinfelder

-----Original Message-----
From: Bernhard Fischer [mailto:[EMAIL PROTECTED] 
Sent: 26 March 2008 15:14
To: Jonathan Moore
Cc: [email protected]
Subject: Re: swapon: swapfile has holes - blocksize ?

On Wed, Mar 26, 2008 at 02:43:04PM +0100, Jonathan Moore wrote:
>I'm trying to setup a simple swapfile, using the commands shown below.
> 
>I'm having trouble with swapon. I've read some previous posting regarding 
>blocksize, but I've not been able to determine if this is an issue requiring a 
>fix. Should this be expected with BusyBox version 1.7.1, ppc32 ? I've tried 
>various blocksizes, but still the hole issue remains.

Can you reproduce this with the current release (1.10.0) or, even better, with 
svn trunk?

TIA,
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to