On Mon, Aug 10, 2015 at 3:27 PM, Haojian Zhuang <haojian.zhuang@outlook.com> wrote:
At first, grub is now required to boot Linux.

OK, I will add Grub to my config. Can you provide some pointers on how to generate the required files? It looks like I need grubaa64.efi and maybe a grub.cfg?
 
In the second, all boot entries are always hardcoded even before grub integrated. Since someone may not have serial port to monitor, I have to create all boot entries by default. It could avoid hikey becoming brick by accident. But developer can change it. The key is 'autoboot' that you could find it in the wiki of hikey UEFI.

@ enable autoboot that will create all boot entries and boot automatically.
#sudo fastboot oem autoboot 1

@ disable autoboot
#sudo fastboot oem autoboot 0

If you disable the autoboot, you could add any boot entry by UEFI boot manager as you wish.

Nice!
 

At last, don't change HiKey.dsc for creating any boot entry. It's not good.

Got it :) Hopefully I can use 96boards/edk2 unmodified, if I can manage to setup grub correctly that is.

Thanks,
-- 
Jerome
 

Regards
Haojian


Date: Mon, 10 Aug 2015 15:18:12 +0200
From: jerome.forissier@linaro.org
To: dev@lists.96boards.org
Subject: [Dev] HiKey boot issue with recent 96boards/edk2


Hi,

I need some help with EDK2 on HiKey (1). After updating my hikey_optee project (2) with the latest 96boards/edk2 (3), I can't boot anymore. Is Grub now required to boot Linux? It seems that boot menu entries are hardcoded in (4), or am I missing something?. I could not really tell by reviewing the commit logs. Well in any case I'm getting the following menu:

~~~~~~~~
 Fail to start BootNext.
 The default boot selection will start in   1 seconds
 [1] fastboot
 [2] grub on eMMC
 [3] grub on SD
 [4] Shell
 [5] Boot Manager
 Start: 
~~~~~~~~

Entries 1-3 seem to do nothing, and just return to the same menu. Prior to this, EDK2 would boot Linux immediately as en EFI application, thanks to some entries in HiKey.dsc (5), which now seems to be ignored (are they really? similar entries are still present in 96boards/hikey which tends to indicate they're not obsolete).

What should I do to boot my kernel? I'd rather avoid adding Grub to the boot sequence, which is already complex enough IMHO, but I can of course do that if it is the recommended architecture. Now, if I could simply adjust my HiKey.dsc, that would be great...


Thanks,
-- 
Jerome


_______________________________________________ Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev