various changes to get uboot working