On 2 June 2015 at 13:20, Leif Lindholm <leif.lindholm@linaro.org> wrote:
On Tue, Jun 02, 2015 at 11:59:09AM +0100, Ryan Harkin wrote:
> I think the best way is to define Shell.efi as the default boot entry and
> then to provide startup.nsh on a boot device.

I would very strongly advise against this.

> startup.nsh then contains a command to boot the kernel, eg:
>
>     Image dtb=file.dtb initrd=ramdisk.img <kernel commandline>
>
> But if you want a default BDS option to boot the kernel directly, you can
> also do this with type 0 device, set PcdDefaultBootDevicePath to be the
> path to your kernel image, then set PcdDefaultBootArgument to something
> like:
>
>     dtb=file.dtb initrd=ramdisk.img <kernel commandline>

Specifying dtb= on the command line is not supported when enabling
Secure Boot. Which may not be a problem now, but will be in the future
if we build our infrastructure around this.

> i.e the same as before, only leave out the filename of the Image file.
>
> I wouldn't use all that other stuff.

"That other stuff" is also known as the UEFI boot mechanism.

And it's not suitable for use, so we should not be using it ;-)

 
If we are
not using it, we should not be calling it UEFI.

/
    Leif