From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mx.groups.io with SMTP id smtpd.web08.5696.1623109914506933920 for ; Mon, 07 Jun 2021 16:51:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=qT+0upvV; spf=pass (domain: nuviainc.com, ip: 209.85.128.52, mailfrom: leif@nuviainc.com) Received: by mail-wm1-f52.google.com with SMTP id l11-20020a05600c4f0bb029017a7cd488f5so701535wmq.0 for ; Mon, 07 Jun 2021 16:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LXiGyL7VpRcnY0vtUtUua2eIqpEtwhhoLgB3x+FqLiM=; b=qT+0upvVNq6WmbuJI3MvkOC5WdM0TDsEJgzejL4G0YUR188v2Y8cOppR3VDeFaq+Q2 z2ZF+8lECaK/sDHQsb4blu/JXhQNQHxuNrgGvDWwx7/Kv6adIYBeNFw8kAauItb3PePo 8Oeb5C9raTkYtNuA/1cZBKHBGV7fVGf9AszBu1HyF+v5IvwaF6lQGfrhgnr4yUL4R6yc m49+8hwMp1C2lZIyOcgOb9vEZMeAPivHGchaDlqQQNSh2R95g9S/HhQajWaSSw8TLt+J DN1Ywt37rAWi+s6Cr8PJPEg8eFItjW5w2bepMYUh1Hm8ZveryL8vzrZ0DXg600Oow4Ma YH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LXiGyL7VpRcnY0vtUtUua2eIqpEtwhhoLgB3x+FqLiM=; b=sGHOHQqRxhNBVYdF1mBFcp4Kq9PNG2PJ9PD9p3CLsOD/ocz8CyTQMfyq3d8lHSOyG4 bByKtLcTen6bbjo8a1G0MgQmHFqFHJddKu5J2z34eoI2R7yNaTPaBiqBANcW3KRHpsHr 9LTk4UbI3kepVUuIBro0sWkVu3U9p4Y3Awe2DyfS93R0aCXKFO6v1Rer7WTMB20Nc8VD T7mvPHKqy13UPilzg616Zi7glC9LbLRGxQIL3KDRkbxRJkqAQma0ieUUnzaYXFnlUoXF ub4xoNCpgR/8ZPMTV1vch5apWBiHoybt+XW0qxyqnE9q2jy/jI+Uy57COrylI4qrScMu /F3A== X-Gm-Message-State: AOAM530kKLG8+6ShCCUx3SoglbJeQxkO+/1VQn9flSR7nkc9Hug76bCf CMJxBdBvOp88Cjwgnd+fpnsPGw== X-Google-Smtp-Source: ABdhPJxjpUB0kakA7ziAI/zZ0RKc/OQQ3bSZn15QaHc93JooytRv4xbBAO3llC0CX7p0dq30+mGc0g== X-Received: by 2002:a1c:b403:: with SMTP id d3mr19084331wmf.79.1623109912695; Mon, 07 Jun 2021 16:51:52 -0700 (PDT) Return-Path: Received: from leviathan (cpc1-cmbg19-2-0-cust915.5-4.cable.virginm.net. [82.27.183.148]) by smtp.gmail.com with ESMTPSA id z11sm16820973wrs.7.2021.06.07.16.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 16:51:52 -0700 (PDT) Date: Tue, 8 Jun 2021 00:51:50 +0100 From: "Leif Lindholm" To: Nhi Pham Cc: devel@edk2.groups.io, Thang Nguyen , Chuong Tran , Phong Vo , Michael D Kinney , Ard Biesheuvel , Nate DeSimone Subject: Re: [edk2-platforms][PATCH v2 31/32] Platform/Ampere: Introduce the LinuxBootPkg Message-ID: <20210607235150.sil4d73h7qkoiqra@leviathan> References: <20210526100724.5359-1-nhi@os.amperecomputing.com> <20210526100724.5359-33-nhi@os.amperecomputing.com> MIME-Version: 1.0 In-Reply-To: <20210526100724.5359-33-nhi@os.amperecomputing.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 26, 2021 at 17:07:23 +0700, Nhi Pham wrote: > LinuxBoot is a firmware that replaces specific firmware functionality > like the UEFI DXE phase with a Linux kernel and runtime. At the end of > the DXE phase, UEFI will hand over the control to the LinuxBoot kernel. > > This package contains the LinuxBoot binary (flashkernel) which is built > and added manually by following the instructions in the Readme.md > ("Platform/Ampere/LinuxBootPkg/AArch64/Readme.md"). > > Cc: Thang Nguyen > Cc: Chuong Tran > Cc: Phong Vo > Cc: Leif Lindholm > Cc: Michael D Kinney > Cc: Ard Biesheuvel > Cc: Nate DeSimone > > Signed-off-by: Nhi Pham Reviewed-by: Leif Lindholm / Leif > --- > Platform/Ampere/LinuxBootPkg/LinuxBoot.inf | 17 ++++++++++++ > Platform/Ampere/LinuxBootPkg/AArch64/Readme.md | 29 ++++++++++++++++++++ > 2 files changed, 46 insertions(+) > > diff --git a/Platform/Ampere/LinuxBootPkg/LinuxBoot.inf b/Platform/Ampere/LinuxBootPkg/LinuxBoot.inf > new file mode 100644 > index 000000000000..5e8f6f83dfb2 > --- /dev/null > +++ b/Platform/Ampere/LinuxBootPkg/LinuxBoot.inf > @@ -0,0 +1,17 @@ > +## @file > +# > +# Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.
> +# > +# SPDX-License-Identifier: BSD-2-Clause-Patent > +# > +## > + > +[Defines] > + INF_VERSION = 0x0001001B > + BASE_NAME = LinuxBoot > + FILE_GUID = D834A5AD-459C-4AED-B0D0-8CBCB28838D7 > + MODULE_TYPE = UEFI_APPLICATION > + VERSION_STRING = 1.0 > + > +[Binaries.AArch64] > + PE32|AArch64/flashkernel|* > diff --git a/Platform/Ampere/LinuxBootPkg/AArch64/Readme.md b/Platform/Ampere/LinuxBootPkg/AArch64/Readme.md > new file mode 100644 > index 000000000000..92c6c3165eac > --- /dev/null > +++ b/Platform/Ampere/LinuxBootPkg/AArch64/Readme.md > @@ -0,0 +1,29 @@ > +# flashkernel > + > +The LinuxBoot image, named flashkernel, is required to build the final EDK2 image with LinuxBoot support. > +The flashkernel image consists of [Linux](https://kernel.org) kernel and initramfs generated using [u-root](https://github.com/u-root/u-root). > + > +## Overview > + > +LinuxBoot is a firmware that replaces specific firmware functionality > +like the UEFI DXE phase with a Linux kernel and runtime. It is built-in > +UEFI image like an application as it will be executed at the end of DXE phase. > + > +The flashkernel is built completely from the [linuxboot/mainboards](https://github.com/linuxboot/mainboards) repository. > + > +## How to build > + > +1. Clone the `linuxboot/mainboards` repository: > + > + ```Bash > + git clone https://github.com/linuxboot/mainboards.git > + ``` > + > +2. Build with the following command: > + > + ```Bash > + cd ampere/jade > + make fetch flashkernel > + ``` > + > +Once the build is done, copy the flashkernel into the edk2-platform under the `Platform/Ampere/LinuxBootPkg/AArch64` directory. > -- > 2.17.1 >