From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mptbQ-0002V8-32 for mharc-grub-devel@gnu.org; Wed, 24 Nov 2021 09:50:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mptbO-0002TQ-U6 for grub-devel@gnu.org; Wed, 24 Nov 2021 09:50:26 -0500 Received: from [2607:f8b0:4864:20::730] (port=39715 helo=mail-qk1-x730.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mptbK-0002GO-W4 for grub-devel@gnu.org; Wed, 24 Nov 2021 09:50:25 -0500 Received: by mail-qk1-x730.google.com with SMTP id b67so3051552qkg.6 for ; Wed, 24 Nov 2021 06:50:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LtBA7GMq5BsqD0IotC/TGbs0FKPQ1wrfXRV5hy0kiHs=; b=Ibiwq6Uj4OAfhtrpRsQPEQJwrbLvCZsJhRbJ7mFcbUKZ1S5m1SlD+mgrjlbYShpPRP vhBVB2b8DKzEl6MT9TW5zve7Mwqh1+7VV1FMZ1gN8BLfMt5sTTcMJz3KesiIWIVQ8NmE u+XQDFOAjG4gpeeoCMV4FGMTiDee3kXHnM/5oVSaexlviXjxg7KChlgZcWLDQlgBxqLr LTrVMr8vAT5i5GE2V+OQ7BeB86NsWCCfreNteAFWowRo8Hw0kZ6+I7vFVCmobbpT6ZoG H0Fp3AHuEi5M5Eejl1PQR+X7tXyEGaV7JJD2I8GBViyJWG5BD1pZB3zB7qfCtAwSLtZu +0kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=LtBA7GMq5BsqD0IotC/TGbs0FKPQ1wrfXRV5hy0kiHs=; b=A7EO8lZje5P0Zr3fCoNyzZaUT5vCcmbK/3hucaP2WJqufOBeOArIy7+nONxGtdEMe6 2+p9mLEwr4ifONCq8yaijqh7Ol/XP2idHGmWoTEYNd50mtVBNVP5uUZEN9csW9c4cZo1 09P66Skprr5dvkmctrIUwE9OLuwPHTVArFPuski9Oe9avjZHtoxacONIs3EMOeLsJ5v8 HCfmUTQLM+KGu8ZNiz6Xx78jNCJknVyh7WSh5M+by4yT2THCSof8QizhFFsqzFk69NEu 4IF6D/hGFH6jKzt8J5eMU8r4U7QCouGG1ghTKHe2fO8UWSQWNv3RQe5b7Zf4EVu/vNmF Pbtg== X-Gm-Message-State: AOAM531BNHGiSi1hR9CIz/bDHmkDjPm3NAGMJ1bbe6BHSpSUOmS8HzN9 dpAnLPMTGjckQbnCnFE6krAnvJ3wXQ2FMt/OFnw= X-Google-Smtp-Source: ABdhPJw6m9yJbI1XdgJnCd1snefswvVYBJfS5iQCxSAJdIUJR3lokTYL5ZpDp5vLfZpaP7r0sYyrGK6BrU8FYV54eU0= X-Received: by 2002:a37:9cf:: with SMTP id 198mr6532871qkj.308.1637765421646; Wed, 24 Nov 2021 06:50:21 -0800 (PST) MIME-Version: 1.0 References: <20211028203118.7908-1-arei@altlinux.org> In-Reply-To: <20211028203118.7908-1-arei@altlinux.org> From: Fu Wei Date: Wed, 24 Nov 2021 22:50:10 +0800 Message-ID: Subject: Re: [PATCH v3 0/7] Add LoadFile2 and riscv Linux loader To: Nikita Ermakov Cc: GRUB development mailing list , Ard Biesheuvel , Atish Patra , Daniel Kiper , Heinrich Schuchardt , Leif Lindholm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::730 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=tekkamanninja@gmail.com; helo=mail-qk1-x730.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2021 14:50:27 -0000 Hi Nikita, Great thanks for updating V3, I have tried them on RISC-V Hardware (Starfive StarLight/VisionFive, and Allwinner D1 Nezha), they are working well, boot into Fedora. My repo is here : https://github.com/tekkamanninja/grub/tree/riscv_devel_Nikita_V3 For whole patchset: Tested-by: Fu Wei Nikita Ermakov =E4=BA=8E2021=E5=B9=B410=E6=9C=8829=E6= =97=A5=E5=91=A8=E4=BA=94 =E4=B8=8A=E5=8D=884:32=E5=86=99=E9=81=93=EF=BC=9A > > Hello, > > This is the third version of the patch series. In v3 the series was rebas= ed > on top of the master branch. > > This series contains patches to add support for LoadFile2 protocol to loa= d > initrd on EFI systems. Also it contains patches to load Linux kernel with= EFI > stub on riscv platforms and unites arm and riscv codes together into comm= on > loader code for EFI systems. > > Ard Biesheuvel (3): > efi: add definition of LoadFile2 protocol > efi: implemented LoadFile2 initrd loading protocol for Linux > linux: ignore FDT unless we need to modify it > > Atish Patra (3): > loader: Move arm64 linux loader to common code > RISC-V: Update image header > RISC-V: Use common linux loader > > Nikita Ermakov (1): > loader: drop argv[] argument in grub_initrd_load() > > grub-core/Makefile.core.def | 8 +- > grub-core/commands/efi/lsefi.c | 1 + > grub-core/loader/arm/linux.c | 2 +- > grub-core/loader/efi/fdt.c | 7 +- > grub-core/loader/{arm64 =3D> efi}/linux.c | 143 +++++++++++++++++++--- > grub-core/loader/i386/linux.c | 2 +- > grub-core/loader/i386/pc/linux.c | 2 +- > grub-core/loader/i386/xen.c | 3 +- > grub-core/loader/ia64/efi/linux.c | 2 +- > grub-core/loader/linux.c | 4 +- > grub-core/loader/mips/linux.c | 2 +- > grub-core/loader/powerpc/ieee1275/linux.c | 2 +- > grub-core/loader/riscv/linux.c | 59 --------- > grub-core/loader/sparc64/ieee1275/linux.c | 2 +- > include/grub/arm/linux.h | 2 +- > include/grub/arm64/linux.h | 2 +- > include/grub/efi/api.h | 15 +++ > include/grub/linux.h | 2 +- > include/grub/riscv32/linux.h | 16 +-- > include/grub/riscv64/linux.h | 16 +-- > 20 files changed, 185 insertions(+), 107 deletions(-) > rename grub-core/loader/{arm64 =3D> efi}/linux.c (72%) > delete mode 100644 grub-core/loader/riscv/linux.c > > -- > 2.33.1 >