I own a GP2X, which is a linux-based video game console.

It has 64 MO of RAM, but only 32 of them is managed by the MMU, the other 32 being a flat storage memory, not directly usable by the system.

However, it is accessible through /dev/mem, between the addresses 32M and 64M.

I would like to create a ramdisk on this flat memory segment, and mount it as swap.

Any idea how I could do that?