[cavan-init] add function swap_init

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>
[cavan-init] change swap.img size to  4G

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>