This is useful because it will allow the ZedBoard, with little RAM (512BM), to install packages that otherwise couldn't be installed. Note that the actual path does not matter as long as the same path is used throughout. Also, these changes do NOT remain when the ZedBoard is rebooted.
dd if=/dev/zero bs=1MiB count=2048 of=/home/analog/swap.img
sudo mkswap /home/analog/swap.img
sudo swapon /home/analog/swap.img
After this, the swappiness value needs to be configured. Without setting the
swappiness value, the device will remain, for as long as it can, using only
the physical RAM. Therefore, the swappiness value can be changed.