public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: Jun Nie <jun.nie@linaro.org>
Cc: Linaro UEFI Mailman List <linaro-uefi@lists.linaro.org>,
	edk2-devel@lists.01.org, Ronald.Cron@arm.com,
	Leif Lindholm <leif.lindholm@linaro.org>
Subject: Re: UEFI LinuxLoader app usage
Date: Thu, 09 Feb 2017 08:53:45 -0800	[thread overview]
Message-ID: <929A72F9-4A56-45D5-9985-F896413042CB@apple.com> (raw)
In-Reply-To: <CABymUCMxN1=fqpkOO+O9e50PjX_ZZKSECc0bDb_L7QTom9vxyQ@mail.gmail.com>


> On Feb 9, 2017, at 6:05 AM, Jun Nie <jun.nie@linaro.org> wrote:
> 
> 2017-02-09 21:44 GMT+08:00 Jun Nie <jun.nie@linaro.org>:
>> I am new to UEFI and trying to boot Linux with LinuxLoader app. But I
>> cannot find detail information for below questions. Could anyone point
>> out where I can find related information or example code? Thanks for
>> your time!
>> 
>> 1. How to feed command line to this app so that ProcessAppCommandLine() can
>> process it?
> I know this app support parsing command line from shell. I am seeking
> method to launch this app from BDS directly without shell but cannot
> find where to specify value to LoadedImage->LoadOptions so that this
> app can get command line from it.
> 

The mechanism in EFI is the NVRAM variable for the boot option. See EFI_LOAD_OPTION.
https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Uefi/UefiSpec.h#L2037 <https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Uefi/UefiSpec.h#L2037>

The UI to create boot variables is implementation dependent. When we designed it conceptually we thought the OS installer would be the primary entity writing the boot option as it was the entity installing the OS loader. 

I think there is a shell command to set boot options, I'm not sure if it lets you set the OptionalData in the EFI_LOAD_OPTION. 

Thanks,

Andrew Fish


>> 
>> 2. And how should I generate  device path string for raw blockIO
>> device with specified offset/size? UEFI 2.6 spec does not provide much
>> information in 9.4.5 Media Device Path Rules.
>> 
>> Thank you!
>> Jun
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



      parent reply	other threads:[~2017-02-09 16:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CABymUCMj37yh5MWH+pHjqV4W3trghhVqmeanAihT5-uWrEP3=g@mail.gmail.com>
2017-02-09 14:05 ` UEFI LinuxLoader app usage Jun Nie
2017-02-09 14:58   ` Leif Lindholm
2017-02-09 16:53   ` Andrew Fish [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=929A72F9-4A56-45D5-9985-F896413042CB@apple.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox