Fix build error and did some changes in bl.

Signed-off-by: cctsao1008 <chiacheng.tsao@gmail.com>