Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Jul 2007
#1
I am trying to make OS2006 use swap partition. OS booted from card.
Can someone give me idea how to fix this?

Here is structure of my card:
BusyBox v1.1.3 (Debian 3:1.1.3-3.sdk3) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia770-49:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk0p2 2048 1960 88 96% /mnt/initfs
none 512 36 476 7% /mnt/initfs/tmp
/dev/mmcblk0p2 616668 407156 178188 70% /
none 512 36 476 7% /tmp
none 1024 44 980 4% /dev
Nokia770-49:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 2.0M 1.9M 88.0k 96% /mnt/initfs
none 512.0k 36.0k 476.0k 7% /mnt/initfs/tmp
/dev/mmcblk0p2 602.2M 397.6M 174.0M 70% /
none 512.0k 36.0k 476.0k 7% /tmp
none 1.0M 44.0k 980.0k 4% /dev
Nokia770-49:~# sfdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 61984 cylinders, 4 heads, 16 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 61984/4/16).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 0+ 152 153- 1228941 6 FAT16
/dev/mmcblk0p2 153 230 78 626535 83 Linux
/dev/mmcblk0p3 231 245 15 120487+ 82 Linux swap
/dev/mmcblk0p4 0 - 0 0 0 Empty
Nokia770-49:~# sfdisk -d /dev/mmcblk0
# partition table of /dev/mmcblk0
unit: sectors

/dev/mmcblk0p1 : start= 63, size= 2457882, Id= 6
/dev/mmcblk0p2 : start= 2457945, size= 1253070, Id=83
/dev/mmcblk0p3 : start= 3711015, size= 240975, Id=82
/dev/mmcblk0p4 : start= 0, size= 0, Id= 0
Nokia770-49:~# free
total used free shared buffers
Mem: 62184 60800 1384 0 920
Swap: 0 0 0
Total: 62184 60800 1384
Nokia770-49:~# cat /proc/swaps
Nokia770-49:~# swapon /dev/mmcblk0p3
swapon: /dev/mmcblk0p3: Invalid argument
Nokia770-49:~# swapon -a
swapon: /dev/mmcblk0p3: Invalid argument
 
Posts: 21 | Thanked: 0 times | Joined on Aug 2007 @ Dresden, Germany
#2
Hi shoora!

Never did this by myself on Nokia but on the desktop there must be a mkswap command before any swapon - i.e. one should create a swap filesystem:
mkswap /dev/mmcblk0p3

WBR,

alexib
__________________
Nokia 770 ITOS 2006
 
Posts: 3 | Thanked: 0 times | Joined on Jul 2007
#3
Originally Posted by alexib View Post
Hi shoora!

Never did this by myself on Nokia but on the desktop there must be a mkswap command before any swapon - i.e. one should create a swap filesystem:
mkswap /dev/mmcblk0p3

WBR,

alexib
Thanks!
In a meantime I found answer myself. I can find standalone mkswap utility for 770.
Instead I found right here http://mummola.cs.tut.fi/n770/files/...etc1_armel.deb
yet another busybox _with_ mkswap implemented.
Now everything works!
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:54.