Check u-boot weather if running in RAM.

N/A

Signed-off-by: liminghao <liminghao@xiaomi.com>