From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takahiro Akashi Date: Wed, 14 Apr 2021 16:13:18 +0900 Subject: [PATCH 11/13] board: synquacer: Add DeveloperBox 96boards EE support In-Reply-To: References: <161832714362.562320.8024090839631691588.stgit@localhost> <161832788118.562320.11063528179837203251.stgit@localhost> <20210413174753.GT1310@bill-the-cat> <20210414012737.GA33366@laputa> <20210414044839.GA38515@laputa> Message-ID: <20210414071318.GD38515@laputa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Apr 14, 2021 at 03:29:23PM +0900, Masami Hiramatsu wrote: > Hi Takahiro, > > 2021?4?14?(?) 13:48 Takahiro Akashi : > > > > > > So why not define UEFI load options (BOOTxxxx) and use UEFI boot manager > > > > ("bootefi bootmgr")? > > > > That is the way how UEFI (at least boot manager) boots the kernel. > > > > > > Good point! Actually, I'm not sure how to define the BOOTxxxx in > > > config.h (I only > > > know how to include efivars file when build). Could you tell me how to do it? > > > I would like to rewrite the default boot commands. > > > > For example, > > => efidebug boot add 1 USBBOOT usb 0:1 /EFI/BOOT/bootaa64.efi > > => efidebug boot add 2 MMCBOOT mmc 0:1 /EFI/BOOT/bootaa64.efi > > => efidebug boot order 1 2 > > => bootefi bootmgr > > Hmm, but this can not be embedded in the build process, can this? Probably there are a couple of ways; You may put them in "pre_boot_environment_command" if you don't mind :) But it would be best to run them as part of OS installation process. Or you may want to provide a default efivars file(?). > > > > Since "BOOTxxx" are non-volatile variables, we don't have to > > set them again once those commands are run. > > What is the default behavior of "bootefi bootmgr" if there is no > BOOTxxxx is set? Nothing will happen. > If it just do nothing and exit, I think I can add it to the top of > CONFIG_BOOTCOMMAND > so that U-Boot can try it first. > (BOOTxxxx will be set by user after boot) > > > But distro_bootcmd can also detect and try to boot "bootaa64.efi" anyway. > > (I'm not sure about the order of devices to detect though.) > > Hmm, interesting. OK, I'll try to enable distro_bootcmd. I'm pretty sure it will work. -Takahiro Akashi > Thank you, > > > > > -Takahiro Akashi > > > > > Thank you, > > > > > > -- > > > Masami Hiramatsu > > > > -- > Masami Hiramatsu