Skip to content

Instantly share code, notes, and snippets.

@rtucker
Created August 30, 2009 19:10
Show Gist options
  • Save rtucker/178083 to your computer and use it in GitHub Desktop.
Save rtucker/178083 to your computer and use it in GitHub Desktop.
#!/bin/sh
# lspci -vvv -s 01:00.0
# 01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF
# [...]
# Region 0: Memory at f8000000 (32-bit, prefetchable) [size=64M]
# allowing 0x100000 (1MiB) for "other stuff", we specify the range
# as starting from 0xf8100000 and going for 0x3f00000 (63MiB).
echo Loading slram module...
modprobe slram map=VRAM,0xf8100000,+0x3f00000
echo Loading mtdchar/mtdblock modules...
modprobe mtdchar
modprobe mtdblock
echo Initializing swap...
mkswap /dev/mtdblock0
echo Activating swap...
swapon -p 100 /dev/mtdblock0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment