Add a miniterm support when booting from ddr.

Signed-off-by: Haifeng Yan <yanhaifeng@gmail.com>