Clean up commented legacy code and fix a compile warning

Signed-off-by: Junjie Mao <eternal.n08@gmail.com>
Use uboot kernel image for arm

Signed-off-by: Junjie Mao <eternal.n08@gmail.com>