This page describes the procedure for USB booting on Hikey board using UEFI.

Tool Chain to be used

The build has been done using toolchain Linaro GCC 4.9-2015.02.

UEFI building and flashing

The detailed procedure is given in link to build and flash UEFI for Hikey board.

USB booting

1. Disconnect Fastboot USB cable, as there is a hardware limitation on hikey that both OTG and Host don't work together.

2. Connect the USB Mass storage device to any of the USB Host connector. Make sure that Mass storage device formatted as FAT and contains files required for booting.

3. Power on the Hikey board.

4. Stop at the UEFI prompt, it should show something like below on Hikey board

[1] fastboot
        - VenHw(B549F005-4BD4-4020-A0CB-06F42BDA68C3)/HD(6,GPT,5C0F213C-17E1-4149-88C8-8B50FB4EC70E,0x7000,0x20000)/\EFI\BOOT\FASTBOOT.EFI
[2] boot from eMMC
        - VenHw(B549F005-4BD4-4020-A0CB-06F42BDA68C3)/HD(6,GPT,5C0F213C-17E1-4149-88C8-8B50FB4EC70E,0x7000,0x20000)/\EFI\BOOT\GRUBAA64.EFI
[3] boot from SD card
        - VenHw(594BFE73-5E18-4F12-8119-19DB8C5FC849)/HD(1,MBR,0x00000000,0x3F,0x21FC0)/Image
        - Arguments: dtb=hi6220-hikey.dtb console=ttyAMA3,115200 earlycon=pl011,0xf7113000 root=/dev/mmcblk1p2 rw rootwait initrd=initrd.img efi=noruntime
[4] Shell
[5] Boot Manager

5. Choose option "Boot Manager" and then choose "Add Boot Device Entry"

6. Now, you can see USB mass storage device FAT partitions listed as below

Start: 5
[1] Add Boot Device Entry
[2] Update Boot Device Entry
[3] Remove Boot Device Entry
[4] Reorder Boot Device Entries
[5] Update FDT path
[6] Set Boot Timeout
[7] Return to main menu
Choice: 1
[1] BOOT IMG (63 MB)
        - VenHw(B549F005-4BD4-4020-A0CB-06F42BDA68C3)/HD(6,GPT,5C0F213C-17E1-4149-88C8-8B50FB4EC70E,0x7000,0x20000)
[2] USB (7385 MB)
        - PciRoot(0x0)/Pci(0x0,0x0)/USB(0x0,0x0)/USB(0x0,0x0)/HD(1,MBR,0x00000000,0x20,0xE74BE0)
[3] VenHw(594BFE73-5E18-4F12-8119-19DB8C5FC849)
        - VenHw(594BFE73-5E18-4F12-8119-19DB8C5FC849)

7. Now, select the appropriate option and files to boot from USB.

Boards/Hikey/Setup/USBBoot (last modified 2015-12-02 00:35:34)