https://blog.night-shade.org.uk/2015/05/booting-a-raspberry-pi2-with-u-boot-and-hyp-enabled/
u-boot.bin binary that will work on the Raspberry Pi2, transfer this to your Raspberry Pi and change the kernel in config.txt to read:
kernel=u-boot.bin
For the next part you will need a serial console on your Raspberry Pi because the Pi will not autoboot this time. Reboot your Pi and you should see the following message on your serial console:
U-Boot 2015.04-00631-gace97d2 (May 03 2015 - 10:52:52) DRAM: 944 MiB WARNING: Caches not enabled RPI: Board rev 16 outside known range RPI Unknown model MMC: bcm2835_sdhci: 0 In: serial Out: lcd Err: lcd Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0
I suggest that you “hand boot” the Pi the first time, to make sure everything works.
# Tell Linux that it is booting on a Raspberry Pi2 setenv machid 0x00000c42 # Set the kernel boot command line setenv bootargs "earlyprintk console=tty0 console=ttyAMA0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait noinitrd" # Save these changes to u-boot's environment saveenv # Load the existing Linux kernel into RAM fatload mmc 0:1 ${kernel_addr_r} kernel7.img # Boot the kernel we have just loaded bootz ${kernel_addr_r}