alarm/sunxi-tools fixes