public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Leif Lindholm <leif.lindholm@linaro.org>
To: Jun Nie <jun.nie@linaro.org>
Cc: linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org,
	Ronald.Cron@arm.com
Subject: Re: UEFI LinuxLoader app usage
Date: Thu, 9 Feb 2017 14:58:53 +0000	[thread overview]
Message-ID: <20170209145853.GD16034@bivouac.eciton.net> (raw)
In-Reply-To: <CABymUCMxN1=fqpkOO+O9e50PjX_ZZKSECc0bDb_L7QTom9vxyQ@mail.gmail.com>

Hi Jun,

On Thu, Feb 09, 2017 at 10:05:50PM +0800, Jun Nie 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 LinuxLoader was a severely unreliable non-UEFI-compliant
component which was deleted from the edk2 repository in November last
year. Unless your Linux kernel is older than version 3.16 (64-bit) or
4.5 (32-bit), there is no reason to use it.

And if it is, it is worth looking for alternative solutions.

> > 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.

You say raw blockIO device - what does this mean?
If the system produces a raw block device from something like an
eMMC, then I would recommend putting a partition table on it, and
finding the desired offset from this.

Best Regards,

Leif


  reply	other threads:[~2017-02-09 14:58 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 [this message]
2017-02-09 16:53   ` Andrew Fish

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=20170209145853.GD16034@bivouac.eciton.net \
    --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