All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: Daniel Kiper <dkiper@net-space.pl>,
	Atish Patra <atish.patra@wdc.com>,
	grub-devel@gnu.org,
	David Abdurachmanov <david.abdurachmanov@sifive.com>,
	Leif Lindholm <leif@nuviainc.com>,
	Alexander Graf <agraf@csgraf.de>, Chester Lin <clin@suse.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>
Subject: Re: [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux
Date: Mon, 27 Apr 2020 20:54:43 +0000	[thread overview]
Message-ID: <4C16BBE4-25D5-4B35-98BF-2984B7BDBB03@gmx.de> (raw)
In-Reply-To: <CAMj1kXFF268icK-+5YeTFSZk+UfRZgYL3N-oB5ckZ4O_ErRsmg@mail.gmail.com>

Am April 27, 2020 8:47:51 PM UTC schrieb Ard Biesheuvel <ardb@kernel.org>:
>On Mon, 27 Apr 2020 at 22:47, Heinrich Schuchardt <xypron.glpk@gmx.de>
>wrote:
>>
>> Am April 27, 2020 7:39:38 PM UTC schrieb Ard Biesheuvel
><ardb@kernel.org>:
>> >On Mon, 27 Apr 2020 at 21:36, Heinrich Schuchardt
><xypron.glpk@gmx.de>
>> >wrote:
>> >>
>> >> On 4/27/20 1:01 PM, Daniel Kiper wrote:
>> >> > On Mon, Apr 27, 2020 at 08:15:41AM +0200, Ard Biesheuvel wrote:
>> >> >> On Sun, 26 Apr 2020 at 21:40, Atish Patra <atish.patra@wdc.com>
>> >wrote:
>> >> >>>
>> >> >>> This series adds grub loader support for RISC-V Linux. Thanks
>to
>> >the awesome
>> >> >>> initial RISC-V support added by Alex, we just needed a loader
>for
>> >RISC-V to
>> >> >>> load and execute Linux using UEFI protocol.
>> >> >>>
>> >> >>> Fortunately, ARM64 Linux loader is written in an architecture
>> >agnostic manner
>> >> >>> so thatgeneric RISC-V can easily reuse the loader code. Thus,
>the
>> >first patch
>> >> >>> just moves the ARM64 code to common code. I have compile
>tested
>> >for
>> >> >>> ARM64/ARM32. Even though it doesn't introduce any functional
>> >change
>> >> >>> for ARM/ARM64, any real testing will be helpful.
>> >> >>
>> >> >> May I suggest that we not blindly adopt the ARM code here, but
>> >> >> instead, use the new initrd loading protocol that removes the
>need
>> >for
>> >> >> GRUB to modify or even know about the device tree at all?
>> >>
>> >> Does this protocol exist in EDK2 by now?
>> >>
>> >
>> >Yes. It exists as a shell command, and as a load option for OVMF.
>> >
>> >> In U-Boot there is a basic implementation which can provide a
>single
>> >> initrd image with a hardcoded file name. The file_path argument
>> >passed
>> >> to U-Boot is ignored due to Ilias' security concerns when he wrote
>> >the
>> >> patch.
>> >>
>> >> GRUB is only needed if we have multiple kernels to choose from
>with
>> >> distinct initial ramdisks.
>> >>
>> >> Please, describe what you expect the initrd loading protocol to do
>> >when
>> >> called from GRUB. How will the ramdisk fitting the kernel chosen
>in
>> >GRUB
>> >> be identified?
>> >>
>> >
>> >The same what GRUB's 'initrd' command does. Whichever initrd you
>> >select with it is the one that gets returned by the protocol.
>>
>> Will GRUB provide the absolute device path in parameter file_path?
>>
>
>Which parameter 'file_path" is that?

See:

https://github.com/trini/u-boot/blob/master/lib/efi_loader/efi_load_initrd.c#L80

I hope we are talking about the same protocol.



      parent reply	other threads:[~2020-04-27 20:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-26 19:40 [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux Atish Patra
2020-04-26 19:40 ` [PATCH RFC/RFT 1/3] loader: Move arm64 linux loader to common code Atish Patra
2020-04-26 23:01   ` Heinrich Schuchardt
2020-04-26 19:40 ` [PATCH RFC/RFT 2/3] RISC-V: Update image header Atish Patra
2020-04-26 23:02   ` Heinrich Schuchardt
2020-04-26 19:40 ` [PATCH RFC/RFT 3/3] RISC-V: Use common linux loader Atish Patra
2020-04-26 23:02   ` Heinrich Schuchardt
2020-04-27  6:15 ` [PATCH RFC/RFT 0/3] Add grub loader support for RISC-V Linux Ard Biesheuvel
2020-04-27 11:01   ` Daniel Kiper
2020-04-27 19:35     ` Heinrich Schuchardt
2020-04-27 19:39       ` Ard Biesheuvel
2020-04-27 20:47         ` Heinrich Schuchardt
2020-04-27 20:47           ` Ard Biesheuvel
2020-04-27 20:52             ` Ard Biesheuvel
2020-04-27 20:58               ` Heinrich Schuchardt
2020-04-27 21:15                 ` Heinrich Schuchardt
2020-04-27 22:10                   ` Ard Biesheuvel
2020-04-28 18:21                     ` Atish Patra
2020-04-29 11:22                       ` Leif Lindholm
2020-04-30  6:07                         ` Atish Patra
2020-04-27 20:54             ` Heinrich Schuchardt [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-all 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=4C16BBE4-25D5-4B35-98BF-2984B7BDBB03@gmx.de \
    --to=xypron.glpk@gmx.de \
    --cc=agraf@csgraf.de \
    --cc=ardb@kernel.org \
    --cc=atish.patra@wdc.com \
    --cc=clin@suse.com \
    --cc=david.abdurachmanov@sifive.com \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=leif@nuviainc.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.