View Single Post
Posts: 190 | Thanked: 5 times | Joined on Nov 2005 @ Bee-u-tee-ful Garden Home, Oregon
#14
daf-

Great work - both the find of the mailing list post (I did a search but failed to read all the articles) as well as the cfdisk package (I'd found the source package but ignored it because of the utf8 references - I didn't think there would be other useful bits).

I was excited to post that I'd gotten swap working but I see I'm a bit late.

This is much easier than what I did: I partitioned my MMC into a 32MB swap and 32MB ext2fs and am in the process of mounting it at /var/lib/install so all packages get installed on the MMC.

I saw a few odd things at first - the box reported no free memory right after I did a swapon and it shutdown once. You said you had problems with 32MB as well?

I'm not sure I've done everything correctly though - my configuration looks like this:

/home/user # cat /etc/fstab
rootfs / rootfs defaults,errors=remount-ro,noatime 0 0
/dev/mmcblk0p1 none swap sw 0 0
/dev/mmcblk0p2 /brad ext3 defaults 0 0

/home/user # fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 64 MB, 64225280 bytes
4 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 128 * 512 = 65536 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 488 31216 82 Linux swap
/dev/mmcblk0p2 489 980 31488 83 Linux

I still need to add 'swapon /dev/mmcblk0p1' somewhere though, and sort out why I have to manually mount my ext2fs file system but otherwise... I'm getting there :-)